Skip to content

Commit

Permalink
Listings rendered by minted are now also shown in the TOC
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Jan 24, 2018
1 parent 0dd6e97 commit de05740
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Changed
- URLs are typeset in monospaced font again. With the change of the font to Times Romen, it looks good in the monospaced font again.

### Fixed
- Listings rendered by minted are now also shown in the TOC

## [2.2.0] - 2018-01-19

### Added
Expand Down
5 changes: 3 additions & 2 deletions latexhints-minted-german.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ \section{minted}
% Cleveref and minted do not play together, so we have to use \lineref - seee https://tex.stackexchange.com/q/132420/9075
Man kann auch direkt auf eine Zeile verweisen: \lref{commentline}.

\begin{listing}[hb]
% Unbedingt Listing mit großem "l" benutzen, da sonst das Listing nicht im "Verzeichnis der Listings" auftaucht.
\begin{Listing}[hb]
\begin{minted}[linenos=true,escapeinside=||]{xml}
<listing name="third sample">
<!-- comment -->
Expand All @@ -14,4 +15,4 @@ \section{minted}
\end{minted}
\caption{XML-Dokument gerendert mittels minted}
\label{lst:xml}
\end{listing}
\end{Listing}

0 comments on commit de05740

Please sign in to comment.