2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-29 07:47:57 +02:00
LaTeX-examples/presentations/Tutorenschlung/templates/myStyle.sty
2012-11-21 11:22:39 +01:00

30 lines
1 KiB
TeX

\newcommand {\framedgraphic}[2] {
\begin{frame}{#1}
\begin{center}
\includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}
\end{center}
\end{frame}
}
\hypersetup{%
breaklinks=true,
linktocpage=false,
colorlinks=true,
urlcolor=blue,
linkcolor=blue,
citecolor=black
}
\newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Make source code easier to copy %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 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}}}