Loading sustech-setup.tex +2 −43 Changes for sustech-setup.tex: 2 added lines, 43 removed lines. Original line number Diff line number Diff line Loading @@ -137,6 +137,8 @@ % 定义所有的图片文件在 figures 子目录下 \graphicspath{{figures/}} % \enabledraftmode % 启用图片草稿模式,会以文字占位符替代图片,加快大量插入大尺寸图片时的编译速度,用于学位论文的调试,默认不启用 % 数学命令 \newcommand\dif{\mathop{}\!\mathrm{d}} % 微分符号 Loading Loading @@ -199,46 +201,3 @@ \newcolumntype{Z}{>{\raggedleft\arraybackslash}X} % A 居中对齐 \newcolumntype{A}{>{\centering\arraybackslash}X} % 表格旋转 \usepackage{rotating} \newcommand\undefcolumntype[1]{\expandafter\let\csname NC@find@#1\endcsname\relax} \newcommand\forcenewcolumntype[1]{\undefcolumntype{#1}\newcolumntype{#1}} % 定义draft模式的条件 \newif\ifdraftmode \draftmodefalse % 默认关闭draft模式 % 定义一个命令来开启draft模式 \newcommand{\enabledraftmode}{% \draftmodetrue \PassOptionsToPackage{draft}{graphicx} \PassOptionsToPackage{draft}{hyperref} \ifdefined\oldincludegraphics\else \let\oldincludegraphics\includegraphics \fi \renewcommand{\includegraphics}[2][]{% \begingroup \def\draftimagearg{##2}% \def\draftimageopts{##1}% \sbox0{\oldincludegraphics[##1]{##2}}% \fbox{\parbox[c][\ht0]{\wd0}{\centering Draft Image:\\\texttt{\draftimagearg}}}% \endgroup } \overfullrule=5pt % 显示溢出的箱子 } % 定义一个命令来关闭draft模式(如果需要的话) \newcommand{\disabledraftmode}{% \draftmodefalse \PassOptionsToPackage{final}{graphicx} \PassOptionsToPackage{final}{hyperref} \ifdefined\oldincludegraphics \let\includegraphics\oldincludegraphics \fi \overfullrule=0pt } No newline at end of file sustechthesis-example-report.tex +0 −2 Changes for sustechthesis-example-report.tex: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -32,8 +32,6 @@ % 5. 作者姓名、指导教师等 \input{sustech-setup} % \enabledraftmode % 启用草稿模式,会以文字占位符替代图片,加快大量插入大尺寸图片时的编译速度,用于学位论文的调试,默认不启用 \begin{document} % 封面 Loading sustechthesis-example.tex +0 −2 Changes for sustechthesis-example.tex: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -32,8 +32,6 @@ % 5. 修改degree-type的值, 默认academic代表生成学术型研究生毕业设计模板, 改为professional则将生成专业型研究生毕业设计模板。 \input{sustech-setup} % \enabledraftmode % 启用草稿模式,会以文字占位符替代图片,加快大量插入大尺寸图片时的编译速度,用于学位论文的调试,默认不启用 \begin{document} % 封面 Loading sustechthesis.dtx +40 −0 Changes for sustechthesis.dtx: 40 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2899,6 +2899,43 @@ \fi % \end{macrocode} % % 图片设置草稿模式 % \begin{macrocode} % 定义draft模式的条件 \newif\ifdraftmode \draftmodefalse % 默认关闭draft模式 % 定义一个命令来开启draft模式 \newcommand{\enabledraftmode}{% \draftmodetrue \PassOptionsToPackage{draft}{graphicx} \PassOptionsToPackage{draft}{hyperref} \ifdefined\oldincludegraphics\else \let\oldincludegraphics\includegraphics \fi \renewcommand{\includegraphics}[2][]{% \begingroup \def\draftimagearg{##2}% \def\draftimageopts{##1}% \sbox0{\oldincludegraphics[##1]{##2}}% \fbox{\parbox[c][\ht0]{\wd0}{\centering Draft Image:\\\texttt{\draftimagearg}}}% \endgroup } % 显示溢出的箱子 \overfullrule=5pt } % 定义一个命令来关闭draft模式 \newcommand{\disabledraftmode}{% \draftmodefalse \PassOptionsToPackage{final}{graphicx} \PassOptionsToPackage{final}{hyperref} \ifdefined\oldincludegraphics \let\includegraphics\oldincludegraphics \fi % 显示溢出的箱子 \overfullrule=0pt } % \end{macrocode} % % 各级标题格式设置。 % \begin{macrocode} \ctexset{% Loading Loading @@ -4507,6 +4544,9 @@ Thesis for the Degree of \degree@level@en@noun \ of \thu@degree@domain@en% }% }{% } \RequirePackage{rotating} \newcommand\undefcolumntype[1]{\expandafter\let\csname NC@find@#1\endcsname\relax} \newcommand\forcenewcolumntype[1]{\undefcolumntype{#1}\newcolumntype{#1}} % \end{macrocode} % \end{environment} % Loading Loading
sustech-setup.tex +2 −43 Changes for sustech-setup.tex: 2 added lines, 43 removed lines. Original line number Diff line number Diff line Loading @@ -137,6 +137,8 @@ % 定义所有的图片文件在 figures 子目录下 \graphicspath{{figures/}} % \enabledraftmode % 启用图片草稿模式,会以文字占位符替代图片,加快大量插入大尺寸图片时的编译速度,用于学位论文的调试,默认不启用 % 数学命令 \newcommand\dif{\mathop{}\!\mathrm{d}} % 微分符号 Loading Loading @@ -199,46 +201,3 @@ \newcolumntype{Z}{>{\raggedleft\arraybackslash}X} % A 居中对齐 \newcolumntype{A}{>{\centering\arraybackslash}X} % 表格旋转 \usepackage{rotating} \newcommand\undefcolumntype[1]{\expandafter\let\csname NC@find@#1\endcsname\relax} \newcommand\forcenewcolumntype[1]{\undefcolumntype{#1}\newcolumntype{#1}} % 定义draft模式的条件 \newif\ifdraftmode \draftmodefalse % 默认关闭draft模式 % 定义一个命令来开启draft模式 \newcommand{\enabledraftmode}{% \draftmodetrue \PassOptionsToPackage{draft}{graphicx} \PassOptionsToPackage{draft}{hyperref} \ifdefined\oldincludegraphics\else \let\oldincludegraphics\includegraphics \fi \renewcommand{\includegraphics}[2][]{% \begingroup \def\draftimagearg{##2}% \def\draftimageopts{##1}% \sbox0{\oldincludegraphics[##1]{##2}}% \fbox{\parbox[c][\ht0]{\wd0}{\centering Draft Image:\\\texttt{\draftimagearg}}}% \endgroup } \overfullrule=5pt % 显示溢出的箱子 } % 定义一个命令来关闭draft模式(如果需要的话) \newcommand{\disabledraftmode}{% \draftmodefalse \PassOptionsToPackage{final}{graphicx} \PassOptionsToPackage{final}{hyperref} \ifdefined\oldincludegraphics \let\includegraphics\oldincludegraphics \fi \overfullrule=0pt } No newline at end of file
sustechthesis-example-report.tex +0 −2 Changes for sustechthesis-example-report.tex: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -32,8 +32,6 @@ % 5. 作者姓名、指导教师等 \input{sustech-setup} % \enabledraftmode % 启用草稿模式,会以文字占位符替代图片,加快大量插入大尺寸图片时的编译速度,用于学位论文的调试,默认不启用 \begin{document} % 封面 Loading
sustechthesis-example.tex +0 −2 Changes for sustechthesis-example.tex: 0 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -32,8 +32,6 @@ % 5. 修改degree-type的值, 默认academic代表生成学术型研究生毕业设计模板, 改为professional则将生成专业型研究生毕业设计模板。 \input{sustech-setup} % \enabledraftmode % 启用草稿模式,会以文字占位符替代图片,加快大量插入大尺寸图片时的编译速度,用于学位论文的调试,默认不启用 \begin{document} % 封面 Loading
sustechthesis.dtx +40 −0 Changes for sustechthesis.dtx: 40 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2899,6 +2899,43 @@ \fi % \end{macrocode} % % 图片设置草稿模式 % \begin{macrocode} % 定义draft模式的条件 \newif\ifdraftmode \draftmodefalse % 默认关闭draft模式 % 定义一个命令来开启draft模式 \newcommand{\enabledraftmode}{% \draftmodetrue \PassOptionsToPackage{draft}{graphicx} \PassOptionsToPackage{draft}{hyperref} \ifdefined\oldincludegraphics\else \let\oldincludegraphics\includegraphics \fi \renewcommand{\includegraphics}[2][]{% \begingroup \def\draftimagearg{##2}% \def\draftimageopts{##1}% \sbox0{\oldincludegraphics[##1]{##2}}% \fbox{\parbox[c][\ht0]{\wd0}{\centering Draft Image:\\\texttt{\draftimagearg}}}% \endgroup } % 显示溢出的箱子 \overfullrule=5pt } % 定义一个命令来关闭draft模式 \newcommand{\disabledraftmode}{% \draftmodefalse \PassOptionsToPackage{final}{graphicx} \PassOptionsToPackage{final}{hyperref} \ifdefined\oldincludegraphics \let\includegraphics\oldincludegraphics \fi % 显示溢出的箱子 \overfullrule=0pt } % \end{macrocode} % % 各级标题格式设置。 % \begin{macrocode} \ctexset{% Loading Loading @@ -4507,6 +4544,9 @@ Thesis for the Degree of \degree@level@en@noun \ of \thu@degree@domain@en% }% }{% } \RequirePackage{rotating} \newcommand\undefcolumntype[1]{\expandafter\let\csname NC@find@#1\endcsname\relax} \newcommand\forcenewcolumntype[1]{\undefcolumntype{#1}\newcolumntype{#1}} % \end{macrocode} % \end{environment} % Loading