Skip to content

Commit 7a6f0b0

Browse files
committed
Add initial glossary
Includes a workaround from Stack Exchange: https://tex.stackexchange.com/a/85700
1 parent b609233 commit 7a6f0b0

File tree

6 files changed

+28
-3
lines changed

6 files changed

+28
-3
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,5 +188,4 @@ TSWLatexianTemp*
188188

189189
## Generated LaTeX files:
190190
*.tex
191-
!book.tex
192-
src/auto/
191+
src/auto/

src/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
!book.tex
2+
!footer.tex
3+
!glossary.tex

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ all.pdf: all.tex
3737

3838
all.tex: book.tex $(TEXFILES)
3939
$(PANDOC) $(PANDOC_FLAGS) -N --toc -o $@ \
40-
$(foreach texfile,$(TEXFILES),-A $(texfile)) $<
40+
$(foreach texfile,$(TEXFILES),-A $(texfile)) -A footer.tex $<
4141

4242

4343
%.tex: %.lidr

src/book.tex

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,18 @@
2323
papersize: b5
2424
geometry: margin=1in
2525
header-includes:
26+
- \makeatletter
27+
- \let\RequirePackage\original@RequirePackage
28+
- \let\usepackage\RequirePackage
29+
- \makeatother
30+
-
2631
- \usepackage{minted}
32+
- \usemintedstyle{lovelace}
33+
-
34+
- \usepackage[xindy]{glossaries}
35+
- \makeglossaries
36+
- \input{glossary}
37+
-
2738
- \usepackage{todonotes}
2839
include-before: \frontmatter
2940
---

src/footer.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
\printglossaries

src/glossary.tex

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
\longnewglossaryentry{idris-add-clause}{
2+
name=\mintinline[]{elisp}{idris-add-clause},
3+
sort=i
4+
}
5+
{
6+
\mintinline[]{elisp}{(idris-add-clause PROOF)}
7+
8+
\mintinline[]{text}{M-RET d} in Spacemacs.
9+
10+
Add clauses to the declaration at point.
11+
}

0 commit comments

Comments
 (0)