Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132941 views
License: OTHER
1
\newcommand {\framedgraphic}[2] {
2
\begin{frame}{#1}
3
\begin{center}
4
\includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#2}
5
\end{center}
6
\end{frame}
7
}
8
9
\hypersetup{%
10
breaklinks=true,
11
linktocpage=false,
12
colorlinks=true,
13
urlcolor=blue,
14
linkcolor=blue,
15
citecolor=black
16
}
17
18
\newcommand{\myCode}[1]{\colorbox{gray!30}{#1}}
19
20
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
21
% Make source code easier to copy %
22
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
23
% from http://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref
24
\usepackage{accsupp}
25
\newcommand\emptyaccsupp[1]{\BeginAccSupp{ActualText={}}#1\EndAccSupp{}}
26
27
28
%default definition is: \def\theFancyVerbLine{\rmfamily\tiny\arabic{FancyVerbLine}}
29
\let\theHFancyVerbLine\theFancyVerbLine% don't apply our patch to hyperref's version
30
\def\theFancyVerbLine{\rmfamily\tiny\emptyaccsupp{\arabic{FancyVerbLine}}}
31
32