Skip to content
Snippets Groups Projects

Full rebase of Marco's changes

Open Simon Schuster requested to merge marcos-full-changes-rebased into master
2 files
+ 5
3
Compare changes
  • Side-by-side
  • Inline
Files
2
  • 76de7ae8
    ```caption``` automatically loads ```hypcap``` with correct settings for
    moving a hyperlink target to the begin of the surrounding floating environment.
    When ```hypcap``` has been loaded manually before, the target of links
    to minted-provided listings is placed at the caption, which is below the
    listing.
    
    While the ```hypcap``` option is a default setting for ```caption```,
    setting it explicitly helps documentation.
+ 3
3
@@ -190,13 +190,13 @@ Program code should be omitted, but if absolutely necessary, it should be set as
\begin{listing}
\inputminted{C}{example.c}
\caption{Listing from example file, fully included}
\captionof{listing}{Listing from example file, fully included}
\label{lst:example-full}
\end{listing}
\begin{listing}
\inputminted[firstline=1, lastline=2]{C}{example.c}
\caption{Listing from example file, partially included}
\captionof{listing}{Listing from example file, partially included}
\label{lst:example-partial}
\end{listing}
@@ -209,7 +209,7 @@ Program code should be omitted, but if absolutely necessary, it should be set as
}
}
\end{minted}
\caption{Listing defined in document}
\captionof{listing}{Listing defined in document}
\label{lst:example-document}
\end{listing}
Loading