Skip to content

Commit eb196d3

Browse files
committed
Add color to the table of contents in the PDF manual.
1 parent 77650d2 commit eb196d3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

make-release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ compile_osx
8888
make build/compiler/MANUAL.md
8989
pandoc build/compiler/MANUAL.md -o "${out}-manual.pdf" \
9090
--from markdown-raw_tex --template template.tex \
91-
--listings --toc --number-sections
91+
--listings --toc --number-sections \
92+
-V colorlinks=true -V toccolor=MidnightBlue
9293

9394
make build/compiler/USAGE.md
9495
pandoc build/compiler/USAGE.md -o "${out}-cross-compiler.pdf" \

template.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%%
1+
%
22
% Based on eisvogel.tex template, modified for FastBasic usage.
33
%
44
% Copyright (c) 2018, Pascal Wagler;
@@ -42,7 +42,7 @@
4242

4343
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
4444
\PassOptionsToPackage{hyphens}{url}
45-
\PassOptionsToPackage{svgnames*,table}{xcolor}
45+
\PassOptionsToPackage{dvipsnames,svgnames,x11names,svgnames*,table}{xcolor}
4646
%
4747
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$else$a4paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$,tablecaptionabove]{scrartcl}
4848
$if(beamer)$

0 commit comments

Comments
 (0)