Skip to content

Commit 8ba0b89

Browse files
authored
add support for \beginappendices (#52)
* add test for appendix numbering * try to create a macro for simple appendix * use a name that is not taken * rename command \beginappendices * fix sample
1 parent 0e65188 commit 8ba0b89

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ RUN tlmgr update --self && \
4242
newunicodechar \
4343
tools \
4444
changepage \
45-
draftwatermark
45+
draftwatermark \
46+
appendix
4647

4748
RUN apk upgrade && apk add --no-cache \
4849
bash \

sample3.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,14 @@ contents longer than one page.
264264

265265
Test?
266266

267-
---
267+
---
268+
269+
\beginappendices
270+
271+
# First Appendix
272+
273+
I'm thinking A is a good one here.
274+
275+
# Second Appendix
276+
277+
I'm thinking B is a good one here.

template/eisvogel.latex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,14 @@ $endif$
698698
\gdef\clearpageafterfirst{\clearpage}%
699699
}
700700

701+
% Allow TCG documents to use '\beginappendices' to easily mark the transition to appendices.
702+
\usepackage{appendix}
703+
\newcommand{\beginappendices}{
704+
\appendix
705+
\appendixpage
706+
\addappheadtotoc
707+
}
708+
701709
\newcommand{\coverbg}{/resources/img/greentop.png}
702710

703711
$if(template)$

0 commit comments

Comments
 (0)