diff --git a/documents/source-code-minted/README.md b/documents/source-code-minted/README.md new file mode 100644 index 0000000..66daaf0 --- /dev/null +++ b/documents/source-code-minted/README.md @@ -0,0 +1,4 @@ +Credits +======= +Thanks to [cyberSingularity](http://tex.stackexchange.com/users/17427/cybersingularity) +for [his help](http://tex.stackexchange.com/a/83218/5645). diff --git a/documents/source-code-minted/minted-code-inclusion.pdf b/documents/source-code-minted/minted-code-inclusion.pdf index de6f9e4..39b8bf9 100644 Binary files a/documents/source-code-minted/minted-code-inclusion.pdf and b/documents/source-code-minted/minted-code-inclusion.pdf differ diff --git a/documents/source-code-minted/minted-code-inclusion.tex b/documents/source-code-minted/minted-code-inclusion.tex index 455cc6b..60a728f 100644 --- a/documents/source-code-minted/minted-code-inclusion.tex +++ b/documents/source-code-minted/minted-code-inclusion.tex @@ -4,6 +4,15 @@ \usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf \usepackage{minted} % needed for the inclusion of source code +% from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref +\usepackage{accsupp} +\newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}} + + +%default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}} +\let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version +\def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}} + \begin{document} \section{Section} \subsection{MySubSection}