Debian Codegraph @

texmf-dist/tex/generic/expex/epltxchapno.sty

raw
1 \ProvidesPackage{epltxchapno}%
2 [2014/01/27 v1.0 ExPex-LaTex chapter numbering integration (JF)]
3 \RequirePackage{expex}
4
5 % epltxchapno.sty is for use in conjunction with LaTex classes which use
6 % \chapter (book.cls, scrbook.cls, report.cls, and memoir.cls at least).
7 % \excnt is set to 1 at the beginning of each chapter and examples are
8 % numbered (n.1), (n.2), etc. in chapter n. The \deftag/\getref
9 % mechanism produces the desired reference.
10
11 \@ifundefined{if@mainmatter}{\newif\if@mainmatter\@mainmattertrue}\relax
12 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
13 \if@mainmatter
14 \refstepcounter{chapter}%
15 \excnt=1
16 \typeout{\@chapapp\space\thechapter.}%
17 \addcontentsline{toc}{chapter}%
18 {\protect\numberline{\thechapter}#1}%
19 \else
20 \addcontentsline{toc}{chapter}{#1}%
21 \fi
22 \else
23 \addcontentsline{toc}{chapter}{#1}%
24 \fi
25 \chaptermark{#1}%
26 \addtocontents{lof}{\protect\addvspace{10\p@}}%
27 \addtocontents{lot}{\protect\addvspace{10\p@}}%
28 \if@twocolumn
29 \@topnewpage[\@makechapterhead{#2}]%
30 \else
31 \@makechapterhead{#2}%
32 \@afterheading
33 \fi}
34 \lingset{exnotype=chapter.arabic}
35