Skip to content

Commit b893483

Browse files
committed
New Release
Former-commit-id: 64705eb
1 parent 455d3c9 commit b893483

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Style/artratex.sty

+9-9
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,14 @@
173173
%---------------------------------------------------------------------------%
174174
%->> Detect class and counter
175175
%---------------------------------------------------------------------------%
176-
\newcommand*{\ifcounter}[1]{% check if counter exists
176+
\newcommand*{\artxifcnt}[1]{% check if counter exists
177177
\ifcsname c@#1\endcsname%
178178
\expandafter\@firstoftwo%
179179
\else%
180180
\expandafter\@secondoftwo%
181181
\fi
182182
}
183-
\ifcounter{chapter}{\def\maincounter{chapter}}{\def\maincounter{section}}
183+
\artxifcnt{chapter}{\def\artxmaincnt{chapter}}{\def\artxmaincnt{section}}%
184184
%---------------------------------------------------------------------------%
185185
%->> Required packages
186186
%---------------------------------------------------------------------------%
@@ -190,7 +190,7 @@
190190
\RequirePackage{amsmath,amsthm,amssymb}% math structures, theorems, and extended symbols
191191
\theoremstyle{plain}% for theorems, lemmas, propositions, etc
192192
\providecommand{\theoremname}{Theorem}%
193-
\newtheorem{theorem}{\theoremname}[\maincounter]
193+
\newtheorem{theorem}{\theoremname}[\artxmaincnt]
194194
\providecommand{\axiomname}{Axiom}%
195195
\newtheorem{axiom}[theorem]{\axiomname}
196196
\providecommand{\lemmaname}{Lemma}%
@@ -205,9 +205,9 @@
205205
\newtheorem{conjecture}[theorem]{\conjecturename}
206206
\theoremstyle{definition}% for definitions and examples
207207
\providecommand{\definitionname}{Definition}%
208-
\newtheorem{definition}{\definitionname}[\maincounter]
208+
\newtheorem{definition}{\definitionname}[\artxmaincnt]
209209
\providecommand{\examplename}{Example}%
210-
\newtheorem{example}{\examplename}[\maincounter]
210+
\newtheorem{example}{\examplename}[\artxmaincnt]
211211
\theoremstyle{remark}% for remarks and notes
212212
\providecommand{\remarkname}{Remark}%
213213
\newtheorem*{remark}{\remarkname}
@@ -507,19 +507,19 @@
507507
%-
508508
%-> Macro for adding link to toc and bookmark
509509
%-
510-
\def\munch#1{}% auxiliary command
510+
\long\def\artxaux#1{}% auxiliary command
511511
\newcommand{\intotocnostar}[3]{% [<\chapter|...>,<*>,<title>]
512512
#1#2{% excute command
513513
\phantomsection% create bookmark link
514-
\addcontentsline{toc}{\expandafter\munch\string#1}{#3}% add content #3 to toc as #1
514+
\addcontentsline{toc}{\expandafter\artxaux\string#1}{#3}% add content #3 to toc as #1
515515
#3%
516516
}
517517
\markboth{\MakeUppercase{#3}}{}% set header mark
518518
}
519-
\newcommand{\intotocstar}[3]{% [<\chapter|...>,<extra commands>,<title>]
519+
\newcommand{\intotocstar}[3][\artxmaincnt]{% [<chapter|...>,<extra commands>,<title>]
520520
#2% excute command
521521
\phantomsection% create bookmark link
522-
\addcontentsline{toc}{\expandafter\munch\string#1}{#3}% add content #3 to toc as #1
522+
\addcontentsline{toc}{#1}{#3}% add content #3 to toc as #1
523523
\markboth{\MakeUppercase{#3}}{}% set header mark
524524
}
525525
\newcommand{\intotoc}{\@ifstar{\intotocstar}{\intotocnostar}}% swap starred and non-starred versions

Thesis.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
%-> Backmatter: bibliography, glossary, index
7979
%-
8080
\backmatter% initialize the environment
81-
\intotoc*{\chapter}{\cleardoublepage}{\bibname}% add link to toc
81+
\intotoc*{\cleardoublepage}{\bibname}% add link to toc
8282
\bibliography{Biblio/ref}% bibliography
8383
\input{Tex/Backmatter}% other information
8484
\end{document}

模板使用说明.pdf.REMOVED.git-id

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8beb4723e42aff5edccfe4652a0ee42adc006ae1
1+
f94dc0e6131e0c4cb121b3fb952f72ffa6b8ec27

0 commit comments

Comments
 (0)