mirror of https://gitlab.com/pamhyr/pamhyr2
doc: tools: LaTeX class minor change.
parent
8429d04b3a
commit
77c0dddee3
|
|
@ -100,13 +100,34 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
%%
|
||||||
|
%% Texttt
|
||||||
|
%%
|
||||||
|
|
||||||
|
\usepackage[htt]{hyphenat} % Make texttt split at end of line
|
||||||
|
|
||||||
%%
|
%%
|
||||||
%% Verbatim
|
%% Verbatim
|
||||||
%%
|
%%
|
||||||
|
|
||||||
\AtBeginEnvironment{verbatim}{\footnotesize}
|
\AtBeginEnvironment{verbatim}{\footnotesize}
|
||||||
|
|
||||||
|
%% Add box arrond of verbatim
|
||||||
|
\BeforeBeginEnvironment{verbatim}{\begin{tcolorbox}[boxsep=0pt, left=0.1cm, right=0.1cm, arc=0pt, boxrule=0.5pt, colback=white]}%
|
||||||
|
\AfterEndEnvironment{verbatim}{\end{tcolorbox}}%
|
||||||
|
|
||||||
|
\makeatletter
|
||||||
|
\AtBeginEnvironment{verbatim}{\dontdofcolorbox}
|
||||||
|
|
||||||
|
\def\dontdofcolorbox{\renewcommand\fcolorbox[4][]{##4}}
|
||||||
|
\makeatother
|
||||||
|
|
||||||
|
%%
|
||||||
%% Source code blocks
|
%% Source code blocks
|
||||||
|
%%
|
||||||
|
|
||||||
|
%% Use minted
|
||||||
\usepackage{minted}
|
\usepackage{minted}
|
||||||
\usemintedstyle{emacs}
|
\usemintedstyle{emacs}
|
||||||
\setminted[c]{fontsize=\footnotesize,encoding=utf8,linenos}
|
\setminted[c]{fontsize=\footnotesize,encoding=utf8,linenos}
|
||||||
|
|
@ -118,6 +139,7 @@
|
||||||
\setminted[text]{breaklines,fontsize=\footnotesize,encoding=utf8}
|
\setminted[text]{breaklines,fontsize=\footnotesize,encoding=utf8}
|
||||||
\setminted[llvm]{breaklines,fontsize=\footnotesize,encoding=utf8}
|
\setminted[llvm]{breaklines,fontsize=\footnotesize,encoding=utf8}
|
||||||
|
|
||||||
|
%% Add box arrond of minted
|
||||||
\BeforeBeginEnvironment{minted}{\begin{tcolorbox}[boxsep=0pt, left=0.1cm, right=0.1cm, arc=0pt, boxrule=0.5pt, colback=white]}%
|
\BeforeBeginEnvironment{minted}{\begin{tcolorbox}[boxsep=0pt, left=0.1cm, right=0.1cm, arc=0pt, boxrule=0.5pt, colback=white]}%
|
||||||
\AfterEndEnvironment{minted}{\end{tcolorbox}}%
|
\AfterEndEnvironment{minted}{\end{tcolorbox}}%
|
||||||
|
|
||||||
|
|
@ -126,12 +148,3 @@
|
||||||
|
|
||||||
\def\dontdofcolorbox{\renewcommand\fcolorbox[4][]{##4}}
|
\def\dontdofcolorbox{\renewcommand\fcolorbox[4][]{##4}}
|
||||||
\makeatother
|
\makeatother
|
||||||
|
|
||||||
\BeforeBeginEnvironment{verbatim}{\begin{tcolorbox}[boxsep=0pt, left=0.1cm, right=0.1cm, arc=0pt, boxrule=0.5pt, colback=white]}%
|
|
||||||
\AfterEndEnvironment{verbatim}{\end{tcolorbox}}%
|
|
||||||
|
|
||||||
\makeatletter
|
|
||||||
\AtBeginEnvironment{verbatim}{\dontdofcolorbox}
|
|
||||||
|
|
||||||
\def\dontdofcolorbox{\renewcommand\fcolorbox[4][]{##4}}
|
|
||||||
\makeatother
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue