mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
made source code easier to copy
This commit is contained in:
parent
0d636fb93c
commit
1a9f693f6d
3 changed files with 13 additions and 0 deletions
4
documents/source-code-minted/README.md
Normal file
4
documents/source-code-minted/README.md
Normal file
|
@ -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).
|
Binary file not shown.
|
@ -4,6 +4,15 @@
|
||||||
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
|
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
|
||||||
\usepackage{minted} % needed for the inclusion of source code
|
\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}
|
\begin{document}
|
||||||
\section{Section}
|
\section{Section}
|
||||||
\subsection{MySubSection}
|
\subsection{MySubSection}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue