-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Since TeX will automatically add `.tex` to the latexmkrc files, I name them `*.cfg` first then use a shell script to rename afterwards. - `fduthesis-en.ltx` -> `fduthesis-en.tex`. - Add `make-tds.sh`. - Now `get-doc-en.lua` can capture arguments from shell.
- Loading branch information
1 parent
501f8a8
commit 5f0da7a
Showing
5 changed files
with
49 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env sh | ||
|
||
mkdir -p TDS/doc/latex/fduthesis/ | ||
mkdir -p TDS/tex/latex/fduthesis/ | ||
mkdir -p TDS/source/latex/fduthesis/ | ||
mkdir -p TDS/temp/ | ||
|
||
cp source/*.dtx TDS/temp/ | ||
|
||
cd TDS/temp/ | ||
xetex fduthesis.dtx | ||
texlua ../../scripts/get-doc-en.lua "fduthesis.dtx" "fduthesis-en.tex" | ||
cd ../.. | ||
|
||
mv TDS/temp/*.dtx TDS/source/latex/fduthesis/ | ||
mv TDS/temp/*.ins TDS/source/latex/fduthesis/ | ||
mv TDS/temp/*.cls TDS/tex/latex/fduthesis/ | ||
mv TDS/temp/*.sty TDS/tex/latex/fduthesis/ | ||
mv TDS/temp/*.def TDS/tex/latex/fduthesis/ | ||
mv TDS/temp/*.tex TDS/doc/latex/fduthesis/ | ||
mv TDS/temp/README.md TDS/doc/latex/fduthesis/ | ||
mv TDS/temp/latexmkrc.cfg TDS/doc/latex/fduthesis/latexmkrc | ||
mv TDS/temp/latexmkrc-en.cfg TDS/doc/latex/fduthesis/latexmkrc-en | ||
cp source/*.pdf TDS/doc/latex/fduthesis/ | ||
|
||
cd TDS/ | ||
rm -r temp/ | ||
|
||
zip -r fduthesis.tds.zip . | ||
cd .. | ||
mv -f TDS/*.zip . | ||
|
||
rm -r TDS/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,10 +30,7 @@ | |
% fdulogo.sty, | ||
% fdulogo-example.tex, | ||
% fduthesis-cover.tex, | ||
% fudan-*.pdf, | ||
% fudan-*.png, | ||
% fduthesis-cover.pdf, | ||
% fduthesis-en.ltx, | ||
% fduthesis-en.tex, | ||
% fduthesis.pdf, | ||
% fduthesis-en.pdf, | ||
% latexmkrc, | ||
|
@@ -159,10 +156,7 @@ Copyright (C) 2017 by Xiangdong Zeng <[email protected]>. | |
fdulogo.sty, | ||
fdulogo-example.tex, | ||
fduthesis-cover.tex, | ||
fudan-*.pdf, | ||
fudan-*.png, | ||
fduthesis-cover.pdf, | ||
fduthesis-en.ltx, | ||
fduthesis-en.tex, | ||
fduthesis.pdf, | ||
fduthesis-en.pdf, | ||
latexmkrc, | ||
|
@@ -194,8 +188,10 @@ Copyright (C) 2017 by Xiangdong Zeng <[email protected]>. | |
\usedir{doc/latex/fduthesis} | ||
\nopreamble\nopostamble | ||
\file{README.md} {\from{\jobname.dtx}{readme}} | ||
\file{latexmkrc.} {\from{\jobname-doc.dtx}{latexmk}} | ||
\file{latexmkrc-en.} {\from{\jobname-doc.dtx}{latexmk-en}} | ||
% ``.cfg'' is only for internal/temporal use. | ||
% They will be renamed by external scripts. | ||
\file{latexmkrc.cfg} {\from{\jobname-doc.dtx}{latexmk}} | ||
\file{latexmkrc-en.cfg} {\from{\jobname-doc.dtx}{latexmk-en}} | ||
} | ||
|
||
\obeyspaces | ||
|
@@ -230,7 +226,7 @@ Copyright (C) 2017 by Xiangdong Zeng <[email protected]>. | |
%<class|class-en|doc|logo>\NeedsTeXFormat{LaTeX2e} | ||
%<class|class-en|doc|logo>\RequirePackage{expl3} | ||
%<*!(driver|install|ex-logo|cover)> | ||
%<!readme>\GetIdInfo $Id: fduthesis.dtx 0.5 2017-09-30 12:00:00Z Xiangdong Zeng <[email protected]> $ | ||
%<!readme>\GetIdInfo $Id: fduthesis.dtx 0.6 2017-11-30 12:00:00Z Xiangdong Zeng <[email protected]> $ | ||
%<class> {Thesis template for Fudan University} | ||
%<class>\ProvidesExplClass{\ExplFileName} | ||
%<class-en> {Thesis template for Fudan University (English version)} | ||
|
@@ -514,7 +510,7 @@ Copyright (C) 2017 by Xiangdong Zeng <[email protected]>. | |
% 较好的方法是使用 TDS 安装包: | ||
% \begin{itemize} | ||
% \item 从 GitHub 上下载 \cls{fduthesis} 的 | ||
% \href{https://git.io/vbIN2}{TDS 安装包}; | ||
% \href{https://git.io/vbIKa}{TDS 安装包}; | ||
% \item 按目录结构将 \file{fduthesis.tds.zip} 中的文件复制到 \TeX{} | ||
% 发行版的本地 TDS 根目录; | ||
% \item 执行 \bashcmd{texhash} 刷新文件名数据库以完成安装。 | ||
|
@@ -523,7 +519,7 @@ Copyright (C) 2017 by Xiangdong Zeng <[email protected]>. | |
%^^A! you need to download and install it from GitHub. Recommended | ||
%^^A! way is to use the TDS ZIP file: | ||
%^^A! \begin{itemize} | ||
%^^A! \item Download the href{https://git.io/vbIN2}{TDS ZIP file} | ||
%^^A! \item Download the href{https://git.io/vbIKa}{TDS ZIP file} | ||
%^^A! for \cls{fduthesis}; | ||
%^^A! \item Copy all the files in \file{fduthesis.tds.zip} into the | ||
%^^A! local TDS directory of \TeX{} distribution. | ||
|