diff options
Diffstat (limited to 'latexHeaders/code.sty')
| -rw-r--r-- | latexHeaders/code.sty | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/latexHeaders/code.sty b/latexHeaders/code.sty index 987f43d..af7f817 100644 --- a/latexHeaders/code.sty +++ b/latexHeaders/code.sty @@ -118,6 +118,18 @@ } } +\lst@AddToHook{DeInit}{% + \ifthenelse{\equal{\lst@name}{}}{}{% + \begin{minipage}[b][0pt]{\linewidth}% + \vspace{0pt}% + \hfill% + \begin{ocg}[printocg=never]{Source file names}{srcfiles}{0}% + \hfill\textcolor{gray}{\lst@name}% + \end{ocg}% + \end{minipage}% + }% +} + \newenvironment{btHighlight}[1][] {\begingroup\tikzset{bt@Highlight@par/.style={#1}}\begin{lrbox}{\@tempboxa}} {\end{lrbox}\bt@HL@box[bt@Highlight@par]{\@tempboxa}\endgroup} |
