Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .latexmkrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
################
# nomenclature #
################
push @generated_exts, 'nlo', 'nls';
add_cus_dep("nlo", "nls", 0, "nlo2nls");
sub nlo2nls {
system("makeindex $_[0].nlo -s nomencl.ist -o $_[0].nls -t $_[0].nlg");
}
3 changes: 2 additions & 1 deletion yanputhesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@
%%-----------------------------------------------------------------------------%
\RequirePackage{appendix} % 添加附录功能
%%-----------------------------------------------------------------------------%
\RequirePackage{nomencl} % 添加符号表功能
\RequirePackage[intoc]{nomencl} % 添加符号表功能
\RequirePackage{multicol} % 页面具体尺寸信息
\makenomenclature % 单栏符号表
\@ifundefined{chapter}{\def\npu@nomsec{section}}{\def\npu@nomsec{chapter}}
Expand All @@ -348,6 +348,7 @@
% \setlength{\columnsep}{20pt}
% \begin{multicols}{2}[%
\csname\npu@nomsec\endcsname*{\nomname}
\@mkboth{\nomname}{\nomname}%
\if@intoc\addcontentsline{toc}{\npu@nomsec}{\nomname}\fi
\nompreamble % \raggedcolumns
% ]
Expand Down
3 changes: 2 additions & 1 deletion yanputhesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ int main()
% \end{macrocode}
% \markdtxchanges{v1.7.0}{2022/10/31}{使用单栏符号表}
% \begin{macrocode}
\RequirePackage{nomencl} % 添加符号表功能
\RequirePackage[intoc]{nomencl} % 添加符号表功能
\RequirePackage{multicol} % 页面具体尺寸信息
\makenomenclature % 单栏符号表
% https://tex.stackexchange.com/questions/78764/two-column-nomenclature
Expand All @@ -1141,6 +1141,7 @@ int main()
% \setlength{\columnsep}{20pt}
% \begin{multicols}{2}[%
\csname\npu@nomsec\endcsname*{\nomname}
\@mkboth{\nomname}{\nomname}%
\if@intoc\addcontentsline{toc}{\npu@nomsec}{\nomname}\fi
\nompreamble % \raggedcolumns
% ]
Expand Down