Skip to content

Commit

Permalink
Fix table of contents (#36)
Browse files Browse the repository at this point in the history
* Revert "remove obsolete package"

This reverts commit a00de8b.

* This should fix #35
  • Loading branch information
pasrom authored Jun 26, 2018
1 parent 7caf850 commit f6efda1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ branches:
branches:
only:
- master
- texlive-2018
- fix-table-of-contents
sudo: required

env:
Expand Down
11 changes: 10 additions & 1 deletion sty/CommandsFHV.sty
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,20 @@
\iftotallstlistings
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Listings}
\ifthenelse{\equal{\newLanguage}{ngerman}}{%
\addcontentsline{toc}{chapter}{\lstlistlistingname}
}{}
\lstlistoflistings
\newpage
\fi
\iftotalalgocfs
\cleardoublepage
\phantomsection
\ifthenelse{\equal{\newLanguage}{ngerman}}{%
\addcontentsline{toc}{chapter}{\listalgorithmcfname}
}{%
\addcontentsline{toc}{chapter}{\listalgorithmcfname}
}
\listofalgorithms
\newpage
\fi
Expand Down
2 changes: 1 addition & 1 deletion sty/Listings.sty
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%\usepackage[framed,numbered,autolinebreaks,useliterate]{./sty/mcode}
%
\ifthenelse{\equal{\newLanguage}{ngerman}}{%
\renewcommand{\lstlistlistingname}{Verzeichnis der Quellcodes}
\renewcommand\lstlistlistingname{Liste der Quellcodes}
\renewcommand{\lstlistingname}{Quellcode}
}{}
%
Expand Down
2 changes: 2 additions & 0 deletions sty/fhv.sty
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@
{\setlength{\emergencystretch}{1em}%
\appto\UrlBreaks{\do\1\do\2\do\3\do\4\do\5\do\6\do\7\do\8\do\9}
%
\usepackage[nottoc]{tocbibind} % no `Contents` in TOC
%
\usepackage{blindtext}
%
\usepackage[style=long,toc,acronym,automake]{glossaries} % need for table of contents, list of acronyms and glossary
Expand Down

0 comments on commit f6efda1

Please sign in to comment.