Skip to content

Commit

Permalink
rewrite ustcbeamer
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzz authored and zepinglee committed Mar 13, 2019
1 parent e09a16a commit 4800a70
Show file tree
Hide file tree
Showing 18 changed files with 294 additions and 205 deletions.
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
main.pdf

## Core latex/pdflatex auxiliary files:
*.aux
*.lof
Expand Down Expand Up @@ -66,6 +65,9 @@ acs-*.bib
# changes
*.soc

# comment
*.cut

# cprotect
*.cpt

Expand Down Expand Up @@ -204,9 +206,16 @@ pythontex-files-*/
# todonotes
*.tdo

# vhistory
*.hst
*.ver

# easy-todo
*.lod

# xcolor
*.xcp

# xmpincl
*.xmpi

Expand Down
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
MAIN = main
NAME = ustcbeamer
STYFILES = $(NAME).sty

SHELL = bash
LATEXMK = latexmk -xelatex

.PHONY : main sty clean all FORCE_MAKE

main : $(MAIN).pdf

all : main

sty : $(STYFILES)

$(MAIN).pdf : $(MAIN).tex $(STYFILES) FORCE_MAKE
$(LATEXMK) $<

clean : FORCE_MAKE
$(LATEXMK) -c $(MAIN).tex

distclean :
$(LATEXMK) -C $(MAIN).tex
34 changes: 25 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
# USTC Beamer 模板
# 中国科学技术大学Beamer模板

生成文档:
```
latexmk
```
本项目是基于 [thomasWeise/ustcSlides](https://github.com/thomasWeise/ustcSlides) 修改而来,加了几种不同的颜色主题。

清理临时文件:
```
latexmk -c
```
科大官网上有与之对应的[USTC公用PPT模板](http://lswhw.ustc.edu.cn/public/inc/editer/attached/file/20181106/20181106152958_72346.zip)

## 使用说明

`beamer.tex` 文件运行 `xelatex` 即可。模板 ustcbeamer 中定义了五个选项供选择:`ustcblue`, `ustcred`, `black`, `violet`, `blue`;分别对应了五种主题颜色。

建议使用 `ustcblue``ustcred`,两者均为[科大党委宣传部](http://lswhw.ustc.edu.cn/index.php/index/info/3370)规定的校徽标准红蓝配色。两个标准配色分别为:蓝 `cmyk(100,80,0,0)`、红 `cmyk(0,100,100,0)`,在 LaTeX 中使用需要除以 100。

本模板参考了 [thomasWeise/ustcSlides](https://github.com/thomasWeise/ustcSlides) 的,故而保留了 Thomas Weise 先生的原始配色(blue)。

此外,个人不太建议使用黑色(black),看上去像讣告。


## 下载地址

- GitHub Releases:https://github.com/ustctug/ustcbeamer/releases


## 其他

本人第一次做 LaTeX 模板,有什么问题望及时反馈,谢谢!

有其他的颜色或格式的需求可在github上反馈。
67 changes: 0 additions & 67 deletions beamerthemeUSTC.sty

This file was deleted.

Binary file added figures/ustc_background_1.pdf
Binary file not shown.
Binary file added figures/ustc_background_2.pdf
Binary file not shown.
Binary file added figures/ustc_background_3.pdf
Binary file not shown.
Binary file added figures/ustc_background_4.pdf
Binary file not shown.
Binary file added figures/ustc_background_5.pdf
Binary file not shown.
Binary file added figures/ustc_cover_1.pdf
Binary file not shown.
Binary file added figures/ustc_cover_2.pdf
Binary file not shown.
Binary file added figures/ustc_cover_3.pdf
Binary file not shown.
Binary file added figures/ustc_cover_4.pdf
Binary file not shown.
Binary file added figures/ustc_cover_5.pdf
Binary file not shown.
File renamed without changes.
16 changes: 3 additions & 13 deletions latexmkrc
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
$pdf_mode = 1;

$pdflatex = "xelatex -file-line-error -halt-on-error -interaction=nonstopmode -synctex=1 %O %S";
$xelatex = "xelatex -file-line-error -halt-on-error -interaction=nonstopmode -no-pdf -synctex=1 %O %S";
$xdvipdfmx="xdvipdfmx -E -o %D %O %S";

$pdf_mode = 1;
$dvi_mode = 0;
$postscript_mode = 0;
$xdvipdfmx = "xdvipdfmx -q -E -o %D %O %S";

$bibtex_use = 1.5;

$go_mode = 1;

$clean_ext = 'glo gls hd nav snm synctex.gz xdv';

$makeindex = 'makeindex -s gind.ist %O -o %D %S';
add_cus_dep('glo', 'gls', 0, 'makegls');
sub makegls {
system("makeindex -s gglo.ist -o \"$_[0].gls\" \"$_[0].glo\"");
}
Loading

0 comments on commit 4800a70

Please sign in to comment.