forked from sjtug/SJTUThesis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add v1 develop script (sjtug#762)
* feat: add v1 develop script Signed-off-by: Alex Chi <[email protected]> * update docs Signed-off-by: Alex Chi <[email protected]>
- Loading branch information
Showing
27 changed files
with
64 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -254,3 +254,5 @@ main.pdf | |
thesis-bot.yml | ||
|
||
build/ | ||
|
||
SJTUTeX-v1/ |
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,26 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
SJTUTEX_DIR="SJTUTeX-v1" | ||
|
||
if [ ! -d "${SJTUTEX_DIR}" ]; then | ||
git clone https://github.com/sjtug/SJTUTeX -b v1 ${SJTUTEX_DIR} | ||
fi | ||
|
||
cd ${SJTUTEX_DIR}/source | ||
xetex -interaction=nonstopmode sjtuthesis.ins | ||
cd ../../ | ||
|
||
rm -rf texmf/tex/latex/sjtuthesis | ||
mkdir texmf/tex/latex/sjtuthesis | ||
|
||
RELEASE_DIR="texmf/tex/latex/sjtuthesis" | ||
|
||
cp ${SJTUTEX_DIR}/source/sjtuthesis.cls ${RELEASE_DIR} | ||
cp ${SJTUTEX_DIR}/source/sjtuthesis-graduate.ltx ${RELEASE_DIR} | ||
cp ${SJTUTEX_DIR}/source/sjtuthesis-undergraduate.ltx ${RELEASE_DIR} | ||
cp -a ${SJTUTEX_DIR}/vi ${RELEASE_DIR} | ||
mkdir -p ${RELEASE_DIR}/fd | ||
cp ${SJTUTEX_DIR}/source/*-font-*.def ${RELEASE_DIR}/fd | ||
|
||
make main.pdf |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `cjkfont,adobe') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `cjkfont,fandol') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `cjkfont,founder') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `cjkfont,mac') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `cjkfont,ubuntu') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `cjkfont,windows') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `mathfont,cambria') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `mathfont,lm') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `mathfont,newcm') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `mathfont,pagella') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `mathfont,stixtwo') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `mathfont,termes') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `mathfont,xits') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `textfont,cambria') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `textfont,lm') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `textfont,newcm') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `textfont,pagella') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `textfont,stixtwo') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `textfont,termes') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `textfont,times') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `textfont,xits') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `graduate') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
@@ -72,6 +72,7 @@ | |
} | ||
} | ||
\renewcommand\cftchapfont{\bfseries\heiti} | ||
\renewcommand\cftchapleader{\normalfont\cftdotfill{\cftdotsep}} | ||
\NewDocumentEnvironment{abstract}{}{% | ||
\sjtu@chapter*[\sjtu@name@abstract@zh]{% | ||
\sjtu@info@title@zh \vskip 2ex | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `undergraduate') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
@@ -60,6 +60,8 @@ | |
subsection/format = \zihao{-4}\normalfont, | ||
} | ||
\renewcommand\cftchapfont{\normalfont} | ||
\renewcommand\cftchapleader{\normalfont\cftdotfill{\cftdotsep}} | ||
\renewcommand\cftchappagefont{\normalfont} | ||
\ifsjtu@type@bachelor | ||
\sjtusetup{ | ||
style = { | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
%% sjtuthesis.dtx (with options: `class') | ||
%% | ||
%% Copyright (C) 2009-2017 by weijianwen <[email protected]> | ||
%% (C) 2018-2021 by SJTUG | ||
%% (C) 2018-2022 by SJTUG | ||
%% | ||
%% This file may be distributed and/or modified under the | ||
%% conditions of the LaTeX Project Public License, either version 1.3c | ||
|
@@ -837,9 +837,6 @@ | |
\renewcommand\cftdot{\textperiodcentered} | ||
\fi | ||
\renewcommand\cftdotsep{1} | ||
\setlength{\cftbeforechapskip}{0pt} | ||
\renewcommand\cftchappagefont{\normalfont} | ||
\renewcommand\cftchapleader{\normalfont\cftdotfill{\cftdotsep}} | ||
\renewcommand\cftfigpresnum{\sjtu@name@figure~} | ||
\renewcommand\cfttabpresnum{\sjtu@name@table~} | ||
\AtEndPreamble{% | ||
|