From 3f7240dbc7fd0733b2e0a6ebf284c1d4aca925de Mon Sep 17 00:00:00 2001 From: Alex Chi Date: Sat, 4 Sep 2021 14:27:02 +0800 Subject: [PATCH] docs: update readme (#54) --- .github/workflows/release.yml | 12 ++-- README.md | 54 ++++++++++++---- beamercolorthemesjtubeamer.sty | 2 +- beamerfontthemesjtubeamer.sty | 2 +- beamerinnerthemesjtubeamer.sty | 10 +-- beamerouterthemesjtubeamer.sty | 2 +- beamerthemesjtubeamer.sty | 10 +-- contents/basis.tex | 12 ++++ contents/introduction.tex | 12 ++++ contents/summary.tex | 12 ++++ contents/thesis.tex | 12 ++++ main.tex | 12 ++++ sjtucover.sty | 40 +----------- sjtuvi.sty | 2 +- src/source/beamercolorthemesjtubeamer.dtx | 2 +- src/source/beamerfontthemesjtubeamer.dtx | 2 +- src/source/beamerinnerthemesjtubeamer.dtx | 10 +-- src/source/beamerouterthemesjtubeamer.dtx | 2 +- src/source/beamerthemesjtubeamer.dtx | 10 +-- src/source/sjtucover.dtx | 76 +++++++++++------------ src/source/sjtuvi.dtx | 2 +- 21 files changed, 175 insertions(+), 123 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd9aec38..4d89419d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,7 +47,7 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: build/build-maxplus-blue.pdf - asset_name: doc-theme-maxplus-blue.pdf + asset_name: sjtulib-talk-maxplus-blue.pdf asset_content_type: application/pdf - name: add build-maxplus-red uses: actions/upload-release-asset@v1.0.1 @@ -56,7 +56,7 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: build/build-maxplus-red.pdf - asset_name: doc-theme-maxplus-red.pdf + asset_name: sjtulib-talk-maxplus-red.pdf asset_content_type: application/pdf - name: add build-max-red uses: actions/upload-release-asset@v1.0.1 @@ -65,7 +65,7 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: build/build-max-red.pdf - asset_name: doc-theme-max-red.pdf + asset_name: sjtulib-talk-max-red.pdf asset_content_type: application/pdf - name: add build-min-red uses: actions/upload-release-asset@v1.0.1 @@ -74,7 +74,7 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: build/build-min-red.pdf - asset_name: doc-theme-min-red.pdf + asset_name: sjtulib-talk-min-red.pdf asset_content_type: application/pdf - name: add covers uses: actions/upload-release-asset@v1.0.1 @@ -101,7 +101,7 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: src/build/distrib/ctan/sjtubeamer/sjtubeamerdevguide.pdf - asset_name: sjtubeamer-dev-guide.pdf + asset_name: sjtubeamerdevguide.pdf asset_content_type: application/pdf - name: add intro uses: actions/upload-release-asset@v1.0.1 @@ -110,5 +110,5 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: src/build/distrib/ctan/sjtubeamer/sjtubeamer.pdf - asset_name: sjtubeamer-intro.pdf + asset_name: sjtubeamer.pdf asset_content_type: application/pdf diff --git a/README.md b/README.md index b873064b..f7ee6093 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,10 @@ SJTUBeamer 是上海交通大学的非官方 Beamer 模版。您可以使用 SJT 目前的 `main.tex` 是一个示例文档《如何使用 LaTeX 排版论文》。您可以将里面的内容替换掉。下面是一个最简示例: +
+ +点击展开代码片段 + ```latex \documentclass[ % draft, % 草稿模式 @@ -110,26 +114,44 @@ int main(){ \end{document} ``` +
+ ## 使用方法 🧰 普通用户只需编辑 `main.tex` 即可开始使用。 -* Overleaf 用户可以直接下载 [最新版](https://github.com/sjtug/SJTUBeamer/archive/refs/heads/main.zip) 或 -[v1.5.0](https://github.com/sjtug/SJTUBeamer/releases/tag/v1.5.0) 的代码,上传至 Overleaf 使用。 -* 如果您希望在本地使用 SJTUBeamer 模版,请安装 TeXLive 套件,并通过 `latexmk -xelatex main.tex` 命令进行编译。 -* VSCode 用户可以使用 LaTeX Workshop 中的“Recipe: latexmk (latexmkrc)”进行编译。 - -您可以阅读 "Release" 中的 `sjtubeamer-intro.pdf` 以了解模版的参数和详细使用方法。 - -## 设计哲学 💭 - -简单易用,即使是 LaTeX 初学者也能轻松上手。 +### 模版下载与编译 + +* Overleaf + * 下载 [最新版](https://github.com/sjtug/SJTUBeamer/archive/refs/heads/main.zip) 压缩包。 + * 或下载 [v1.5.0](https://github.com/sjtug/SJTUBeamer/archive/refs/tags/v1.5.0.zip) 压缩包。 + * 上传至 Overleaf 使用即可。 + * Overleaf 的设置中需要选择“XeLaTeX”编译器编译。 +* 本地使用 + * 安装 TeXLive 套件。 + * 下载 [最新版](https://github.com/sjtug/SJTUBeamer/archive/refs/heads/main.zip) 压缩包。 + * 或下载 [v1.5.0](https://github.com/sjtug/SJTUBeamer/archive/refs/tags/v1.5.0.zip) 压缩包。 + * 或使用 git 克隆仓库 `git clone https://github.com/sjtug/SJTUBeamer/`。 + * 之后通过 `latexmk -xelatex main.tex` 命令进行编译即可。 + * VSCode 用户可以使用 LaTeX Workshop 中的 “Recipe: latexmk (latexmkrc)” 进行编译。 + +目前模版最新的稳定版是 v1.5.0。您可以在 [发布页](https://github.com/sjtug/SJTUBeamer/releases/tag/v1.5.0) 查看修改日志和更多资料。通常来说,SJTUBeamer 的一个稳定版本包括如下内容: + +* `sjtubeamer.pdf`: SJTUBeamer 用户文档。**强烈推荐在使用前阅读一遍 👍👍👍。** +* `sjtubeamerdevguide.pdf`: SJTUBeamer 开发指南。 +* `sjtulib-talk-max-red.pdf`: 示例文档《如何使用 LaTeX 排版论文》的 `max,red` 主题版本。 +* `sjtulib-talk-maxplus-blue.pdf`: 示例文档《如何使用 LaTeX 排版论文》的 `maxplus,blue` 主题版本。 +* `sjtulib-talk-maxplus-red.pdf`: 示例文档《如何使用 LaTeX 排版论文》的 `maxplus,red` 主题版本。 +* `sjtulib-talk-min-red.pdf`: 示例文档《如何使用 LaTeX 排版论文》的 `min,red` 主题版本。 +* `sample-all-covers.pdf`: 所有配色主题的封面封底。 +* `sjtubeamer-ctan.zip`: 包含所有文档和样式的压缩包。 +* SJTUBeamer 源代码。 ## 使用反馈与贡献代码 👷 * 您可以通过 GitHub Issue 反馈使用时碰到的问题。同时,也欢迎您提交 PR 帮助我们改进。 * 所有对模版的修改应该在 `.dtx` 文件中进行,而后用 l3build 生成 sty 文件。 -* 您可以阅读 "Release" 中的 `sjtubeamer-dev-guide.pdf` 以了解模版的实现细节与编译方法。 +* 您可以阅读发布页面中的《SJTUBeamer 开发指南》`sjtubeamerdevguide.pdf` 了解模版的实现细节与编译方法。 整个开发流程如下: @@ -144,9 +166,15 @@ int main(){ ## 展示 🧐 -您可以在 [v1.5.0](https://github.com/sjtug/SJTUBeamer/releases/tag/v1.5.0) 预览生成的四个主题的 pdf。 - ![cover-0](https://user-images.githubusercontent.com/4198311/131241659-90f0804b-d0b1-4bb9-b45c-7d3c81ace02a.png) ![cover-1](https://user-images.githubusercontent.com/4198311/131241665-2ced7884-7428-4967-8055-6ce47de7f8bd.png) ![cover-2](https://user-images.githubusercontent.com/4198311/131241668-cc47d9fb-14c4-4681-b95d-98400e9b8d77.png) ![cover-3](https://user-images.githubusercontent.com/4198311/131241669-ccf58f17-d35f-492d-8707-2cfdbd613107.png) + +## 许可证 + +SJTUBeamer 仓库同时包含 SJTUBeamer 包和一个示例文档。其中内容的许可证各不相同。您可以阅读各个文件的开头部分,了解该文件所使用的许可证。 + +* SJTUBeamer 包使用的许可证为 Apache-2.0。 +* SJTUBeamer 示例文档使用 CC-BY-SA 4.0 许可。 +* sjtuvi 和 sjtucover 库及其附属徽标、图片由上海交通大学持有版权。校属各单位及个人以经营为目的使用视觉形象识别系统,须向学校申请使用许可。校外单位及个人未经许可,不得制作或使用载有视觉形象识别系统的物品。 diff --git a/beamercolorthemesjtubeamer.sty b/beamercolorthemesjtubeamer.sty index 160c8af1..b3fc766e 100644 --- a/beamercolorthemesjtubeamer.sty +++ b/beamercolorthemesjtubeamer.sty @@ -21,7 +21,7 @@ %% limitations under the License. %% ------------------------------------------------------------------------ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{beamercolorthemesjtubeamer}[2021/09/03 sjtubeamer color theme v2.0.0] +\ProvidesPackage{beamercolorthemesjtubeamer}[2021/09/04 sjtubeamer color theme v2.0.0] \RequirePackage{sjtuvi} \DefineOption{color}{color}{red} \DefineOption{color}{color}{blue} diff --git a/beamerfontthemesjtubeamer.sty b/beamerfontthemesjtubeamer.sty index 0e3bd9e4..d5d38408 100644 --- a/beamerfontthemesjtubeamer.sty +++ b/beamerfontthemesjtubeamer.sty @@ -21,7 +21,7 @@ %% limitations under the License. %% ------------------------------------------------------------------------ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{beamerfontthemesjtubeamer}[2021/09/03 sjtubeamer font theme v2.0.0] +\ProvidesPackage{beamerfontthemesjtubeamer}[2021/09/04 sjtubeamer font theme v2.0.0] \RequirePackage{silence} \WarningFilter{latexfont}{Font shape} \usefonttheme{professionalfonts} diff --git a/beamerinnerthemesjtubeamer.sty b/beamerinnerthemesjtubeamer.sty index 2e9267c7..e3e79431 100644 --- a/beamerinnerthemesjtubeamer.sty +++ b/beamerinnerthemesjtubeamer.sty @@ -21,7 +21,7 @@ %% limitations under the License. %% ------------------------------------------------------------------------ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{beamerinnerthemesjtubeamer}[2021/09/03 sjtubeamer inner theme v2.0.0] +\ProvidesPackage{beamerinnerthemesjtubeamer}[2021/09/04 sjtubeamer inner theme v2.0.0] \RequirePackage{sjtuvi} \RequirePackage{tcolorbox} \DeclareOptionBeamer{maxplus}{\def\sjtubeamer@inner@cover{maxplus}} @@ -29,10 +29,10 @@ \DeclareOptionBeamer{min}{\def\sjtubeamer@inner@cover{min}} \DeclareOptionBeamer{my}{\def\sjtubeamer@inner@cover{my}} % reserved for customization \ExecuteOptionsBeamer{ -maxplus, -min, -my, -max, + maxplus, + min, + my, + max, } \DefineOption{inner}{lang}{cn} \DefineOption{inner}{lang}{en} diff --git a/beamerouterthemesjtubeamer.sty b/beamerouterthemesjtubeamer.sty index 4e6b73eb..d9d3566d 100644 --- a/beamerouterthemesjtubeamer.sty +++ b/beamerouterthemesjtubeamer.sty @@ -21,7 +21,7 @@ %% limitations under the License. %% ------------------------------------------------------------------------ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{beamerouterthemesjtubeamer}[2021/09/03 sjtubeamer outer theme v2.0.0] +\ProvidesPackage{beamerouterthemesjtubeamer}[2021/09/04 sjtubeamer outer theme v2.0.0] \RequirePackage{sjtuvi} \DefineOption{outer}{nav}{miniframes} \DefineOption{outer}{nav}{infolines} diff --git a/beamerthemesjtubeamer.sty b/beamerthemesjtubeamer.sty index 018d96fb..ecfd57d2 100644 --- a/beamerthemesjtubeamer.sty +++ b/beamerthemesjtubeamer.sty @@ -21,16 +21,16 @@ %% limitations under the License. %% ------------------------------------------------------------------------ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{beamerthemesjtubeamer}[2021/09/03 sjtubeamer parent theme v2.0.0] +\ProvidesPackage{beamerthemesjtubeamer}[2021/09/04 sjtubeamer parent theme v2.0.0] \DeclareOptionBeamer{maxplus}{\def\sjtubeamer@cover{maxplus}} \DeclareOptionBeamer{max}{\def\sjtubeamer@cover{max}} \DeclareOptionBeamer{min}{\def\sjtubeamer@cover{min}} \DeclareOptionBeamer{my}{\def\sjtubeamer@cover{my}} % reserved for customization \ExecuteOptionsBeamer{ -maxplus, -min, -my, -max, + maxplus, + min, + my, + max, } \DeclareOptionBeamer{red}{\def\sjtubeamer@color{red}} \DeclareOptionBeamer{blue}{\def\sjtubeamer@color{blue}} diff --git a/contents/basis.tex b/contents/basis.tex index 03b8fe5d..3addd2db 100644 --- a/contents/basis.tex +++ b/contents/basis.tex @@ -1,6 +1,18 @@ % !TeX encoding = UTF-8 % !TeX root = ../main.tex +%% ------------------------------------------------------------------------ +%% Copyright (C) 2021 SJTUG +%% +%% SJTUBeamer Example Document by SJTUG +%% +%% SJTUBeamer Example Document is licensed under a +%% Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. +%% +%% You should have received a copy of the license along with this +%% work. If not, see . +%% ----------------------------------------------------------------------- + \section{学术论文排版} \subsection{\LaTeX{} 排版入门} diff --git a/contents/introduction.tex b/contents/introduction.tex index 71c88fb6..346d5466 100644 --- a/contents/introduction.tex +++ b/contents/introduction.tex @@ -1,6 +1,18 @@ % !TeX encoding = UTF-8 % !TeX root = ../main.tex +%% ------------------------------------------------------------------------ +%% Copyright (C) 2021 SJTUG +%% +%% SJTUBeamer Example Document by SJTUG +%% +%% SJTUBeamer Example Document is licensed under a +%% Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. +%% +%% You should have received a copy of the license along with this +%% work. If not, see . +%% ----------------------------------------------------------------------- + \section{简介} \subsection{\TeX 与 \LaTeX} diff --git a/contents/summary.tex b/contents/summary.tex index 45a5aa84..675f6fe7 100644 --- a/contents/summary.tex +++ b/contents/summary.tex @@ -1,6 +1,18 @@ % !TeX encoding = UTF-8 % !TeX root = ../main.tex +%% ------------------------------------------------------------------------ +%% Copyright (C) 2021 SJTUG +%% +%% SJTUBeamer Example Document by SJTUG +%% +%% SJTUBeamer Example Document is licensed under a +%% Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. +%% +%% You should have received a copy of the license along with this +%% work. If not, see . +%% ----------------------------------------------------------------------- + \section{总结} \begin{frame}{常见 \LaTeX{} 困惑} diff --git a/contents/thesis.tex b/contents/thesis.tex index e1d40182..9e859d31 100644 --- a/contents/thesis.tex +++ b/contents/thesis.tex @@ -1,6 +1,18 @@ % !TeX encoding = UTF-8 % !TeX root = ../main.tex +%% ------------------------------------------------------------------------ +%% Copyright (C) 2021 SJTUG +%% +%% SJTUBeamer Example Document by SJTUG +%% +%% SJTUBeamer Example Document is licensed under a +%% Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. +%% +%% You should have received a copy of the license along with this +%% work. If not, see . +%% ----------------------------------------------------------------------- + \section{学位论文排版} \subsection{\SJTUThesis 上海交通大学学位论文模板} diff --git a/main.tex b/main.tex index a71e3455..05d70eee 100644 --- a/main.tex +++ b/main.tex @@ -1,5 +1,17 @@ % !TeX encoding = UTF-8 +%% ------------------------------------------------------------------------ +%% Copyright (C) 2021 SJTUG +%% +%% SJTUBeamer Example Document by SJTUG +%% +%% SJTUBeamer Example Document is licensed under a +%% Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. +%% +%% You should have received a copy of the license along with this +%% work. If not, see . +%% ----------------------------------------------------------------------- + \documentclass[xcolor=table,dvipsnames,svgnames,aspectratio=169]{ctexbeamer} % 可以通过 fontset=macnew / fontset=ubuntu / fontset=windows 选项切换字体集 diff --git a/sjtucover.sty b/sjtucover.sty index 00f90ed8..22ad7254 100644 --- a/sjtucover.sty +++ b/sjtucover.sty @@ -18,25 +18,17 @@ %% see https://vi.sjtu.edu.cn/index.php/articles/bulletin/16. %% ------------------------------------------------------------------------ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{sjtucover}[2021/09/03 cover library for sjtubeamer v2.0.0] +\ProvidesPackage{sjtucover}[2021/09/04 cover library for sjtubeamer v2.0.0] \RequirePackage{sjtuvi} \DeclareOptionBeamer{maxplus}{\def\sjtubeamer@sjtucover@cover{maxplus}} \DeclareOptionBeamer{max}{\def\sjtubeamer@sjtucover@cover{max}} \DeclareOptionBeamer{min}{\def\sjtubeamer@sjtucover@cover{min}} \DeclareOptionBeamer{my}{\def\sjtubeamer@sjtucover@cover{my}} % reserved for customization \ExecuteOptionsBeamer{ - %<*maxplus> maxplus, - % - %<*min> min, - % - %<*my> my, - % - %<*max> max, - % } \ProcessOptionsBeamer \defbeamertemplate*{title page}{maxplus}[1][] @@ -130,27 +122,13 @@ \defbeamertemplate*{title page}{min}[1][] { \vbox{} - % \end{macrocode} - % The background of the title page is implemented by a TikZ rectangle, which avoids the changing on \verb"background canvas" beamer color. - % - % In this definition environment, you could not change the beamer color. The older version redefines \verb"maketitle" command and switches the \verb"background canvas" color, which is harmful for decoupling. - % - % Use TikZ rectangle also avoids the unexpected shift because the risk of redefining the internal command is avoided. If there is any text before the title page, the \verb"\maketitle" will start from a new page. - % \begin{macrocode} \usebeamercolor{palette primary} \def\sjtubeamer@logocolor{palette primary.fg} \begin{tikzpicture}[overlay] \fill [palette primary.bg] (-0.2*\the\paperwidth,-1*\the\paperheight) rectangle (1*\the\paperwidth, 0.2*\the\paperheight); \end{tikzpicture} - % \end{macrocode} - % If it is in draftmode, no pattern will get rendered. - % \begin{macrocode} \ifbeamer@draftmode% - % \end{macrocode} - % Otherwise, the fade tile of stamp array will get covered on top of the background rectangle. - % \verb"stamparray" is defined in \verb"SJTUvi". Then, a fade right covers this array layer and a center fade covers the previous result. - % \begin{macrocode} \else% \begin{tikzpicture}[overlay] \stamparray{20pt} @@ -163,17 +141,9 @@ (0.2*\the\paperwidth,0) circle [radius=\the\paperwidth]; \end{tikzpicture} \fi% - % \end{macrocode} - % Set a constraint in the vertical mode to make the following contents centered in the middle of the slide. - % \begin{macrocode} \vfill \begingroup \centering - % \end{macrocode} - % \verb"resizebox" is used to adapt to all size of logo into 1cm height one. And it is the same in outer theme to make a 0.7cm logo. - % The institute is in \TeX{} code for typesetting. \verb"\beamer@shortinstitute" meta is used to avoid compressing on \verb"\par", while \verb"\insertinstitute" will force the input to spread on one signle line. The mode to use is depended on the \verb"language" option. Super small font could be made by \verb"fontsize". - % Here, we use the option from inner to get the language setting, if this package is used independently, only chinese mode is available. - % \begin{macrocode} \usebeamercolor{titlelike} \begin{beamercolorbox}{logo} \vskip8pt @@ -212,9 +182,6 @@ } \vskip8pt \end{beamercolorbox} - % \end{macrocode} - % Insert title, subtitle, author, and date. - % \begin{macrocode} \begin{beamercolorbox}[sep=8pt,#1]{title} \usebeamerfont{title}\inserttitle\par% \ifx\insertsubtitle\@empty% @@ -230,9 +197,6 @@ \begin{beamercolorbox}[sep=8pt,#1]{date} \usebeamerfont{date}\insertdate \end{beamercolorbox} - % \end{macrocode} - % Here insert the titlegraphic. The node position is set to \verb"above left" to make sure the bottom of the picture is aligned to the bottom of the date line. - % \begin{macrocode} \usebeamercolor{palette primary}% \ifx\inserttitlegraphic\@empty% \else @@ -344,7 +308,7 @@ } \defbeamertemplate*{bottom page}{min}[1][] { -\vbox{} + \vbox{} \usebeamercolor{palette primary} \usebeamercolor{palette secondary} \def\sjtubeamer@logocolor{palette primary.fg} diff --git a/sjtuvi.sty b/sjtuvi.sty index d663a8f8..1040f7e7 100644 --- a/sjtuvi.sty +++ b/sjtuvi.sty @@ -18,7 +18,7 @@ %% see https://vi.sjtu.edu.cn/index.php/articles/bulletin/16. %% ------------------------------------------------------------------------ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{sjtuvi}[2021/09/03 Visual Identity System library for sjtubeamer v2.0.0] +\ProvidesPackage{sjtuvi}[2021/09/04 Visual Identity System library for sjtubeamer v2.0.0] \def\DefineOption#1#2#3{ % #1: package % #2: key diff --git a/src/source/beamercolorthemesjtubeamer.dtx b/src/source/beamercolorthemesjtubeamer.dtx index 7cf31c5a..b11ce669 100644 --- a/src/source/beamercolorthemesjtubeamer.dtx +++ b/src/source/beamercolorthemesjtubeamer.dtx @@ -16,7 +16,7 @@ % \iffalse %<*package> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{beamercolorthemesjtubeamer}[2021/09/03 sjtubeamer color theme v2.0.0] +\ProvidesPackage{beamercolorthemesjtubeamer}[2021/09/04 sjtubeamer color theme v2.0.0] % % \fi % \CheckSum{0} diff --git a/src/source/beamerfontthemesjtubeamer.dtx b/src/source/beamerfontthemesjtubeamer.dtx index d9097f60..cf5c757b 100644 --- a/src/source/beamerfontthemesjtubeamer.dtx +++ b/src/source/beamerfontthemesjtubeamer.dtx @@ -16,7 +16,7 @@ % \iffalse %<*package> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{beamerfontthemesjtubeamer}[2021/09/03 sjtubeamer font theme v2.0.0] +\ProvidesPackage{beamerfontthemesjtubeamer}[2021/09/04 sjtubeamer font theme v2.0.0] % % \fi % \CheckSum{0} diff --git a/src/source/beamerinnerthemesjtubeamer.dtx b/src/source/beamerinnerthemesjtubeamer.dtx index 1cb5374b..d49dec54 100644 --- a/src/source/beamerinnerthemesjtubeamer.dtx +++ b/src/source/beamerinnerthemesjtubeamer.dtx @@ -16,7 +16,7 @@ % \iffalse %<*package> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{beamerinnerthemesjtubeamer}[2021/09/03 sjtubeamer inner theme v2.0.0] +\ProvidesPackage{beamerinnerthemesjtubeamer}[2021/09/04 sjtubeamer inner theme v2.0.0] % % \fi % \CheckSum{0} @@ -67,16 +67,16 @@ % \ExecuteOptionsBeamer{ %<*maxplus> -maxplus, + maxplus, % %<*min> -min, + min, % %<*my> -my, + my, % %<*max> -max, + max, % } % \end{macrocode} diff --git a/src/source/beamerouterthemesjtubeamer.dtx b/src/source/beamerouterthemesjtubeamer.dtx index 4e2c53a5..5c519278 100644 --- a/src/source/beamerouterthemesjtubeamer.dtx +++ b/src/source/beamerouterthemesjtubeamer.dtx @@ -16,7 +16,7 @@ % \iffalse %<*package> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{beamerouterthemesjtubeamer}[2021/09/03 sjtubeamer outer theme v2.0.0] +\ProvidesPackage{beamerouterthemesjtubeamer}[2021/09/04 sjtubeamer outer theme v2.0.0] % % \fi % \CheckSum{0} diff --git a/src/source/beamerthemesjtubeamer.dtx b/src/source/beamerthemesjtubeamer.dtx index ba036eb7..4d9f48e0 100644 --- a/src/source/beamerthemesjtubeamer.dtx +++ b/src/source/beamerthemesjtubeamer.dtx @@ -37,7 +37,7 @@ % ------------------------------------------------------------------- \fi % \iffalse \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{beamerthemesjtubeamer}[2021/09/03 sjtubeamer parent theme v2.0.0] +\ProvidesPackage{beamerthemesjtubeamer}[2021/09/04 sjtubeamer parent theme v2.0.0] % \fi % % \subsection{Parent Theme} @@ -83,16 +83,16 @@ % \begin{macrocode} \ExecuteOptionsBeamer{ %<*maxplus> -maxplus, + maxplus, % %<*min> -min, + min, % %<*my> -my, + my, % %<*max> -max, + max, % } % \end{macrocode} diff --git a/src/source/sjtucover.dtx b/src/source/sjtucover.dtx index b8f49117..25af2540 100644 --- a/src/source/sjtucover.dtx +++ b/src/source/sjtucover.dtx @@ -13,7 +13,7 @@ % \iffalse %<*package> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{sjtucover}[2021/09/03 cover library for sjtubeamer v2.0.0] +\ProvidesPackage{sjtucover}[2021/09/04 cover library for sjtubeamer v2.0.0] % % \fi % \CheckSum{0} @@ -49,18 +49,18 @@ \DeclareOptionBeamer{my}{\def\sjtubeamer@sjtucover@cover{my}} % reserved for customization % \ExecuteOptionsBeamer{ - %<*maxplus> +%<*maxplus> maxplus, - % - %<*min> +% +%<*min> min, - % - %<*my> +% +%<*my> my, - % - %<*max> +% +%<*max> max, - % +% } \ProcessOptionsBeamer % \end{macrocode} @@ -179,27 +179,27 @@ \defbeamertemplate*{title page}{min}[1][] { \vbox{} - % \end{macrocode} - % The background of the title page is implemented by a TikZ rectangle, which avoids the changing on \verb"background canvas" beamer color. - % - % In this definition environment, you could not change the beamer color. The older version redefines \verb"maketitle" command and switches the \verb"background canvas" color, which is harmful for decoupling. - % - % Use TikZ rectangle also avoids the unexpected shift because the risk of redefining the internal command is avoided. If there is any text before the title page, the \verb"\maketitle" will start from a new page. - % \begin{macrocode} +% \end{macrocode} +% The background of the title page is implemented by a TikZ rectangle, which avoids the changing on \verb"background canvas" beamer color. +% +% In this definition environment, you could not change the beamer color. The older version redefines \verb"maketitle" command and switches the \verb"background canvas" color, which is harmful for decoupling. +% +% Use TikZ rectangle also avoids the unexpected shift because the risk of redefining the internal command is avoided. If there is any text before the title page, the \verb"\maketitle" will start from a new page. +% \begin{macrocode} \usebeamercolor{palette primary} \def\sjtubeamer@logocolor{palette primary.fg} \begin{tikzpicture}[overlay] \fill [palette primary.bg] (-0.2*\the\paperwidth,-1*\the\paperheight) rectangle (1*\the\paperwidth, 0.2*\the\paperheight); \end{tikzpicture} - % \end{macrocode} - % If it is in draftmode, no pattern will get rendered. - % \begin{macrocode} +% \end{macrocode} +% If it is in draftmode, no pattern will get rendered. +% \begin{macrocode} \ifbeamer@draftmode% - % \end{macrocode} - % Otherwise, the fade tile of stamp array will get covered on top of the background rectangle. - % \verb"stamparray" is defined in \verb"SJTUvi". Then, a fade right covers this array layer and a center fade covers the previous result. - % \begin{macrocode} +% \end{macrocode} +% Otherwise, the fade tile of stamp array will get covered on top of the background rectangle. +% \verb"stamparray" is defined in \verb"SJTUvi". Then, a fade right covers this array layer and a center fade covers the previous result. +% \begin{macrocode} \else% \begin{tikzpicture}[overlay] \stamparray{20pt} @@ -212,17 +212,17 @@ (0.2*\the\paperwidth,0) circle [radius=\the\paperwidth]; \end{tikzpicture} \fi% - % \end{macrocode} - % Set a constraint in the vertical mode to make the following contents centered in the middle of the slide. - % \begin{macrocode} +% \end{macrocode} +% Set a constraint in the vertical mode to make the following contents centered in the middle of the slide. +% \begin{macrocode} \vfill \begingroup \centering - % \end{macrocode} - % \verb"resizebox" is used to adapt to all size of logo into 1cm height one. And it is the same in outer theme to make a 0.7cm logo. - % The institute is in \TeX{} code for typesetting. \verb"\beamer@shortinstitute" meta is used to avoid compressing on \verb"\par", while \verb"\insertinstitute" will force the input to spread on one signle line. The mode to use is depended on the \verb"language" option. Super small font could be made by \verb"fontsize". - % Here, we use the option from inner to get the language setting, if this package is used independently, only chinese mode is available. - % \begin{macrocode} +% \end{macrocode} +% \verb"resizebox" is used to adapt to all size of logo into 1cm height one. And it is the same in outer theme to make a 0.7cm logo. +% The institute is in \TeX{} code for typesetting. \verb"\beamer@shortinstitute" meta is used to avoid compressing on \verb"\par", while \verb"\insertinstitute" will force the input to spread on one signle line. The mode to use is depended on the \verb"language" option. Super small font could be made by \verb"fontsize". +% Here, we use the option from inner to get the language setting, if this package is used independently, only chinese mode is available. +% \begin{macrocode} \usebeamercolor{titlelike} \begin{beamercolorbox}{logo} \vskip8pt @@ -261,9 +261,9 @@ } \vskip8pt \end{beamercolorbox} - % \end{macrocode} - % Insert title, subtitle, author, and date. - % \begin{macrocode} +% \end{macrocode} +% Insert title, subtitle, author, and date. +% \begin{macrocode} \begin{beamercolorbox}[sep=8pt,#1]{title} \usebeamerfont{title}\inserttitle\par% \ifx\insertsubtitle\@empty% @@ -279,9 +279,9 @@ \begin{beamercolorbox}[sep=8pt,#1]{date} \usebeamerfont{date}\insertdate \end{beamercolorbox} - % \end{macrocode} - % Here insert the titlegraphic. The node position is set to \verb"above left" to make sure the bottom of the picture is aligned to the bottom of the date line. - % \begin{macrocode} +% \end{macrocode} +% Here insert the titlegraphic. The node position is set to \verb"above left" to make sure the bottom of the picture is aligned to the bottom of the date line. +% \begin{macrocode} \usebeamercolor{palette primary}% \ifx\inserttitlegraphic\@empty% \else @@ -423,7 +423,7 @@ % \end{macrocode} % Enter vertical mode. % \begin{macrocode} -\vbox{} + \vbox{} % \end{macrocode} % Create the background canvas and the three overlapping circles in the right. Use \verb"scope" to define the influence range. And use \verb"\clip" to make the clipping in the current range. % \begin{macrocode} diff --git a/src/source/sjtuvi.dtx b/src/source/sjtuvi.dtx index a80b476c..bdba342a 100644 --- a/src/source/sjtuvi.dtx +++ b/src/source/sjtuvi.dtx @@ -13,7 +13,7 @@ % \iffalse %<*package> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{sjtuvi}[2021/09/03 Visual Identity System library for sjtubeamer v2.0.0] +\ProvidesPackage{sjtuvi}[2021/09/04 Visual Identity System library for sjtubeamer v2.0.0] % % \fi % \CheckSum{0}