| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656 |
- # plain Verbatim environment:
- [Verb]
- breplace = \begin{Verbatim}
- ereplace = \end{Verbatim}
- # white background, rules above and below, with a title box "Code"
- [CodeRule]
- breplace = \vspace{4pt}
- \begin{Verbatim}[numbers=none,frame=lines,label=\fbox{{\tiny %(boxtext)s}},fontsize=\%(fontsize)s,
- labelposition=topline,framesep=2.5mm,framerule=1pt]
- ereplace = \end{Verbatim}
- boxtext = Code
- fontsize = fontsize{9pt}{9pt}
- # white background, rules above and below, with a title box "Terminal"
- [CodeTerminal]
- breplace = \vspace{4pt}
- \begin{Verbatim}[numbers=none,frame=lines,label=\fbox{{\tiny %(boxtext)s}},fontsize=\%(fontsize)s,
- labelposition=topline,framesep=2.5mm,framerule=0.7pt]
- ereplace = \end{Verbatim}
- fontsize = fontsize{9pt}{9pt}
- boxtext = Terminal
- # more plain Verbatim environment
- [Code]
- breplace = \begin{Verbatim}[fontsize=\%(fontsize)s,tabsize=8,baselinestretch=%(bstretch)s]
- ereplace = \end{Verbatim}
- \noindent
- bstretch = 0.85
- fontsize = fontsize{9pt}{9pt}
- # as Code, but with line numbers
- [CodeLineNo]
- breplace = \begin{Verbatim}[numbers=left,fontsize=\%(fontsize)s,tabsize=8,baselinestretch=%(bstretch)s]
- ereplace = \end{Verbatim}
- \noindent
- bstretch = 0.85
- fontsize = fontsize{9pt}{9pt}
- # as Code, but indented:
- [CodeIndented]
- breplace = \begin{Verbatim}[fontsize=\%(fontsize)s,tabsize=8,baselinestretch=%(bstretch)s,
- fontfamily=tt,xleftmargin=7mm]
- ereplace = \end{Verbatim}
- \noindent
- bstretch = 0.85
- fontsize = fontsize{9pt}{9pt}
- # as CodeIndented, but larger font (10pt9:
- [CodeIndented10]
- breplace = \begin{Verbatim}[fontsize=\%(fontsize)s,tabsize=8,baselinestretch=%(bstretch)s,
- fontfamily=tt,xleftmargin=7mm]
- ereplace = \end{Verbatim}
- \noindent
- bstretch = 0.85
- fontsize = fontsize{10pt}{10pt}
- # Verbatim environments arising from the package pythonhighlight.sty,
- # now extended to anslistings.sty. Python_ANSt is with a title ("Python"),
- # while Python_ANS is without the title. Similar for other languages.
- [Python_ANSt]
- breplace = \begin{python}
- ereplace = \end{python}
- [Python_ANS]
- breplace = \begin{python:nt}
- ereplace = \end{python:nt}
- [Cpp_ANSt]
- breplace = \begin{c++}
- ereplace = \end{c++}
- [Cpp_ANS]
- breplace = \begin{c++:nt}
- ereplace = \end{c++:nt}
- [Matlab_ANS]
- breplace = \begin{matlab}
- ereplace = \end{matlab}
- [Bash_ANSt]
- breplace = \begin{bash}
- ereplace = \end{bash}
- [Bash_ANS]
- breplace = \begin{bash:nt}
- ereplace = \end{bash:nt}
- [Swig_ANSt]
- breplace = \begin{swigcode}
- ereplace = \end{swigcode}
- [Swig_ANS]
- breplace = \begin{swigcode:nt}
- ereplace = \end{swigcode:nt}
- [gencode_ANSt]
- breplace = \begin{gencode}
- ereplace = \end{gencode}
- [gencode_ANS]
- breplace = \begin{gencode:nt}
- ereplace = \end{gencode:nt}
- [UFL_ANSt]
- breplace = \begin{uflcode}
- ereplace = \end{uflcode}
- [UFL_ANS]
- breplace = \begin{uflcode:nt}
- ereplace = \end{uflcode:nt}
- [Output_ANSt]
- breplace = \begin{progoutput}
- ereplace = \end{progoutput}
- [Output_ANS]
- breplace = \begin{progoutput:nt}
- ereplace = \end{progoutput:nt}
- # Several minted styles (requires minted LaTeX package and Pygments)
- [Minted_Python]
- breplace = \begin{minted}[fontsize=\%(fontsize)s,linenos=false,mathescape,baselinestretch=%(bstretch)s,fontfamily=tt,xleftmargin=7mm]{python}
- ereplace = \end{minted}
- \noindent
- bstretch = 1.0
- fontsize = fontsize{9pt}{9pt}
- [Minted_Cython]
- breplace = \begin{minted}[fontsize=\%(fontsize)s,linenos=false,mathescape,baselinestretch=%(bstretch)s,fontfamily=tt,xleftmargin=7mm]{cython}
- ereplace = \end{minted}
- \noindent
- bstretch = 1.0
- fontsize = fontsize{9pt}{9pt}
- [Minted_Cpp]
- breplace = \begin{minted}[fontsize=\%(fontsize)s,linenos=false,mathescape,baselinestretch=%(bstretch)s,fontfamily=tt,xleftmargin=7mm]{c++}
- ereplace = \end{minted}
- \noindent
- bstretch = 1.0
- fontsize = fontsize{9pt}{9pt}
- [Minted_C]
- breplace = \begin{minted}[fontsize=\%(fontsize)s,linenos=false,mathescape,baselinestretch=%(bstretch)s,fontfamily=tt,xleftmargin=7mm]{c}
- ereplace = \end{minted}
- \noindent
- bstretch = 1.0
- fontsize = fontsize{9pt}{9pt}
- [Minted_Fortran]
- breplace = \begin{minted}[fontsize=\%(fontsize)s,linenos=false,mathescape,baselinestretch=%(bstretch)s,fontfamily=tt,xleftmargin=7mm]{fortran}
- ereplace = \end{minted}
- \noindent
- bstretch = 1.0
- fontsize = fontsize{9pt}{9pt}
- [Minted_Matlab]
- breplace = \begin{minted}[fontsize=\%(fontsize)s,linenos=false,mathescape,baselinestretch=%(bstretch)s,fontfamily=tt,xleftmargin=7mm]{matlab}
- ereplace = \end{minted}
- \noindent
- bstretch = 1.0
- fontsize = fontsize{9pt}{9pt}
- [Minted_Bash]
- breplace = \begin{minted}[fontsize=\%(fontsize)s,linenos=false,mathescape,baselinestretch=%(bstretch)s,fontfamily=tt,xleftmargin=7mm]{bash}
- ereplace = \end{minted}
- \noindent
- bstretch = 1.0
- fontsize = fontsize{9pt}{9pt}
- [Minted_Perl]
- breplace = \begin{minted}[fontsize=\%(fontsize)s,linenos=false,mathescape,baselinestretch=%(bstretch)s,fontfamily=tt,xleftmargin=7mm]{perl}
- ereplace = \end{minted}
- \noindent
- bstretch = 1.0
- fontsize = fontsize{9pt}{9pt}
- # warning box, pink background, warning sign
- [Warnings]
- breplace = \definecolor{warnback}{rgb}{1.0, 0.8235294, 0.8235294}
- \setlength{\fboxrule}{2pt}
- \begin{center}
- \fcolorbox{black}{warnback}{
- \begin{minipage}{0.8\textwidth}
- \includegraphics[height=0.3in]{warning.eps}
- \vskip-0.3in\hskip1.5in{\large\bf WARNING} \\[0.2cm]
- ereplace = \end{minipage}}
- \end{center}
- \setlength{\fboxrule}{0.4pt} %% Back to default
- # tip box, light blue background, "i" (info) sign
- [Tip]
- breplace = \definecolor{tipback}{rgb}{0.87843, 0.95686, 1.0}
- \setlength{\fboxrule}{2pt}
- \begin{center}
- \fcolorbox{black}{tipback}{
- \begin{minipage}{0.8\textwidth}
- \includegraphics[height=0.3in]{tip.eps}
- \vskip-0.3in\hskip1.5in{\large\bf TIP} \\[0.2cm]
- ereplace = \end{minipage}}
- \end{center}
- \setlength{\fboxrule}{0.4pt} %% Back to default
- # note box, "i" (info) sign
- [Note]
- breplace = \definecolor{noteback}{rgb}{0.988235, 0.964706, 0.862745}
- \setlength{\fboxrule}{2pt}
- \begin{center}
- \fcolorbox{black}{noteback}{
- \begin{minipage}{0.8\textwidth}
- \includegraphics[height=0.3in]{tip.eps}
- \vskip-0.3in\hskip1.5in{\large\bf NOTE} \\[0.2cm]
- ereplace = \end{minipage}}
- \end{center}
- \setlength{\fboxrule}{0.4pt} %% Back to default
- # colored box, can handle multiple pages
- [Blue]
- shadecolor = 0.87843, 0.95686, 1.0
- envname = Blue
- define = True
- newenv = \providecommand{\shadedskip}{}
- \definecolor{shadecolor}{rgb}{%(shadecolor)s}
- \renewenvironment{shadedskip}{
- \def\FrameCommand{\colorbox{shadecolor}}\FrameRule0.6pt
- \MakeFramed {\FrameRestore}\vskip3mm}{\vskip0mm\endMakeFramed}
- \providecommand{\shadedquote%(envname)s}{}
- \renewenvironment{shadedquote%(envname)s}[1][]{
- \bgroup\rmfamily
- \fboxsep=0mm\relax
- \begin{shadedskip}
- \list{}{\parsep=-2mm\parskip=0mm\topsep=0pt\leftmargin=2mm
- \rightmargin=2\leftmargin\leftmargin=4pt\relax}
- \item\relax}
- {\endlist\end{shadedskip}\egroup}
- breplace = \begin{shadedquote%(envname)s}
- # \centering{\large\bf Program} \\[0.2cm]
- \fontsize{9pt}{9pt}
- \begin{Verbatim}
- ereplace = \end{Verbatim}
- \end{shadedquote%(envname)s}
- \noindent
- # colored box, can handle multiple pages
- # \fcolorbox{black}{yellow}
- [BlueFrame]
- shadecolor = 0.87843, 0.95686, 1.0
- envname = BlueFrame
- define = True
- newenv = \providecommand{\shadedskip}{}
- \definecolor{shadecolor}{rgb}{%(shadecolor)s}
- \renewenvironment{shadedskip}{
- \def\FrameCommand{\fcolorbox{black}{shadecolor}}\FrameRule0.6pt
- \MakeFramed {\FrameRestore}\vskip3mm}{\vskip0mm\endMakeFramed}
- \providecommand{\shadedquote%(envname)s}{}
- \renewenvironment{shadedquote%(envname)s}[1][]{
- \bgroup\rmfamily
- \fboxsep=0mm\relax
- \begin{shadedskip}
- \list{}{\parsep=-2mm\parskip=0mm\topsep=0pt\leftmargin=2mm
- \rightmargin=2\leftmargin\leftmargin=4pt\relax}
- \item\relax}
- {\endlist\end{shadedskip}\egroup}
- breplace = \begin{shadedquote%(envname)s}
- # \centering{\large\bf Program} \\[0.2cm]
- \fontsize{9pt}{9pt}
- \begin{Verbatim}
- ereplace = \end{Verbatim}
- \end{shadedquote%(envname)s}
- \noindent
- # colored box with left vertical bar, can handle multiple pages
- [BlueBar]
- shadecolor = 0.87843, 0.95686, 1.0
- barcolor = 0.7, 0.95686, 1
- envname = BlueBar
- define = True
- newenv = \providecommand{\shadedwbar}{}
- \definecolor{shadecolor}{rgb}{%(shadecolor)s}
- \renewenvironment{shadedwbar}{
- \def\FrameCommand{\color[rgb]{%(barcolor)s}\vrule width 1mm\normalcolor\colorbox{shadecolor}}\FrameRule0.6pt
- \MakeFramed {\advance\hsize-2mm\FrameRestore}\vskip3mm}{\vskip0mm\endMakeFramed}
- \providecommand{\shadedquote%(envname)s}{}
- \renewenvironment{shadedquote%(envname)s}[1][]{
- \bgroup\rmfamily
- \fboxsep=0mm\relax
- \begin{shadedwbar}
- \list{}{\parsep=-2mm\parskip=0mm\topsep=0pt\leftmargin=2mm
- \rightmargin=2\leftmargin\leftmargin=4pt\relax}
- \item\relax}
- {\endlist\end{shadedwbar}\egroup}
- breplace = \begin{shadedquote%(envname)s}
- # \centering{\large\bf Program} \\[0.2cm]
- \fontsize{9pt}{9pt}
- \begin{Verbatim}
- ereplace = \end{Verbatim}
- \end{shadedquote%(envname)s}
- \noindent
- # colored box, can handle multiple pages
- [Red]
- shadecolor = 1, 0.97, 0.85
- envname = Red
- define = True
- newenv = \providecommand{\shadedskip}{}
- \definecolor{shadecolor}{rgb}{%(shadecolor)s}
- \renewenvironment{shadedskip}{
- \def\FrameCommand{\colorbox{shadecolor}}\FrameRule0.6pt
- \MakeFramed {\FrameRestore}\vskip3mm}{\vskip0mm\endMakeFramed}
- \providecommand{\shadedquote%(envname)s}{}
- \renewenvironment{shadedquote%(envname)s}[1][]{
- \bgroup\rmfamily
- \fboxsep=0mm\relax
- \begin{shadedskip}
- \list{}{\parsep=-2mm\parskip=0mm\topsep=0pt\leftmargin=2mm
- \rightmargin=2\leftmargin\leftmargin=4pt\relax}
- \item\relax}
- {\endlist\end{shadedskip}\egroup}
- breplace = \begin{shadedquote%(envname)s}
- # \centering{\large\bf Program} \\[0.2cm]
- \fontsize{9pt}{9pt}
- \begin{Verbatim}
- ereplace = \end{Verbatim}
- \end{shadedquote%(envname)s}
- \noindent
- # colored box, can handle multiple pages
- [RedFrame]
- shadecolor = 1, 0.97, 0.85
- envname = RedFrame
- define = True
- newenv = \providecommand{\shadedskip}{}
- \definecolor{shadecolor}{rgb}{%(shadecolor)s}
- \renewenvironment{shadedskip}{
- \def\FrameCommand{\fcolorbox{black}{shadecolor}}\FrameRule0.6pt
- \MakeFramed {\FrameRestore}\vskip3mm}{\vskip0mm\endMakeFramed}
- \providecommand{\shadedquote%(envname)s}{}
- \renewenvironment{shadedquote%(envname)s}[1][]{
- \bgroup\rmfamily
- \fboxsep=0mm\relax
- \begin{shadedskip}
- \list{}{\parsep=-2mm\parskip=0mm\topsep=0pt\leftmargin=2mm
- \rightmargin=2\leftmargin\leftmargin=4pt\relax}
- \item\relax}
- {\endlist\end{shadedskip}\egroup}
- breplace = \begin{shadedquote%(envname)s}
- # \centering{\large\bf Program} \\[0.2cm]
- \fontsize{9pt}{9pt}
- \begin{Verbatim}
- ereplace = \end{Verbatim}
- \end{shadedquote%(envname)s}
- \noindent
- # colored box with left vertical bar, can handle multiple pages
- [RedBar]
- shadecolor = 1, 0.97, 0.85
- barcolor = 1, 0.85, 0.85
- envname = RedBar
- define = True
- newenv = \providecommand{\shadedwbar}{}
- \definecolor{shadecolor}{rgb}{%(shadecolor)s}
- \renewenvironment{shadedwbar}{
- \def\FrameCommand{\color[rgb]{%(barcolor)s}\vrule width 1mm\normalcolor\colorbox{shadecolor}}\FrameRule0.6pt
- \MakeFramed {\advance\hsize-2mm\FrameRestore}\vskip3mm}{\vskip0mm\endMakeFramed}
- \providecommand{\shadedquote%(envname)s}{}
- \renewenvironment{shadedquote%(envname)s}[1][]{
- \bgroup\rmfamily
- \fboxsep=0mm\relax
- \begin{shadedwbar}
- \list{}{\parsep=-2mm\parskip=0mm\topsep=0pt\leftmargin=2mm
- \rightmargin=2\leftmargin\leftmargin=4pt\relax}
- \item\relax}
- {\endlist\end{shadedwbar}\egroup}
- breplace = \begin{shadedquote%(envname)s}
- # \centering{\large\bf Program} \\[0.2cm]
- \fontsize{9pt}{9pt}
- \begin{Verbatim}
- ereplace = \end{Verbatim}
- \end{shadedquote%(envname)s}
- \noindent
- # colored box, can handle multiple pages
- [Yellow]
- shadecolor = 1.0, 1.0, 0.7
- envname = Yellow
- define = True
- newenv = \providecommand{\shadedskip}{}
- \definecolor{shadecolor}{rgb}{%(shadecolor)s}
- \renewenvironment{shadedskip}{
- \def\FrameCommand{\colorbox{shadecolor}}\FrameRule0.6pt
- \MakeFramed {\FrameRestore}\vskip3mm}{\vskip0mm\endMakeFramed}
- \providecommand{\shadedquote%(envname)s}{}
- \renewenvironment{shadedquote%(envname)s}[1][]{
- \bgroup\rmfamily
- \fboxsep=0mm\relax
- \begin{shadedskip}
- \list{}{\parsep=-2mm\parskip=0mm\topsep=0pt\leftmargin=2mm
- \rightmargin=2\leftmargin\leftmargin=4pt\relax}
- \item\relax}
- {\endlist\end{shadedskip}\egroup}
- breplace = \begin{shadedquote%(envname)s}
- # \centering{\large\bf Program} \\[0.2cm]
- \fontsize{9pt}{9pt}
- \begin{Verbatim}
- ereplace = \end{Verbatim}
- \end{shadedquote%(envname)s}
- \noindent
- # colored box, can handle multiple pages
- [Gray]
- envname = Gray
- define = True
- newenv = \providecommand{\shadedskip}{}
- \definecolor{shadecolor}{gray}{0.93}
- \renewenvironment{shadedskip}{
- \def\FrameCommand{\colorbox{shadecolor}}\FrameRule0.6pt
- \MakeFramed {\FrameRestore}\vskip3mm}{\vskip0mm\endMakeFramed}
- \providecommand{\shadedquote%(envname)s}{}
- \renewenvironment{shadedquote%(envname)s}[1][]{
- \bgroup\rmfamily
- \fboxsep=0mm\relax
- \begin{shadedskip}
- \list{}{\parsep=-2mm\parskip=0mm\topsep=0pt\leftmargin=2mm
- \rightmargin=2\leftmargin\leftmargin=4pt\relax}
- \item\relax}
- {\endlist\end{shadedskip}\egroup}
- breplace = \begin{shadedquote%(envname)s}
- # \centering{\large\bf Program} \\[0.2cm]
- \fontsize{9pt}{9pt}
- \begin{Verbatim}
- ereplace = \end{Verbatim}
- \end{shadedquote%(envname)s}
- \noindent
- # light blue shaded box, can handle multiple pages, "snippet" to the right
- [Blue_snippet]
- define = True
- newenv = \providecommand{\shadedquoteBluesnippet}{}
- \renewenvironment{shadedquoteBluesnippet}[1][]{
- \definecolor{shadecolor}{rgb}{0.87843, 0.95686, 1.0}
- \definecolor{shadetitle}{rgb}{0.5, 0.95686, 1}
- \bgroup\rmfamily
- \fboxsep=0mm\relax
- \begin{shaded}
- {{\hfill\tiny\textsf{\textcolor{shadetitle}{Snippet\ \ }}}}
- \list{}{\parsep=-2mm\parskip=0mm\topsep=0pt\leftmargin=2mm
- \rightmargin=2\leftmargin\leftmargin=4pt\relax}
- \item\relax}
- {\endlist{\textcolor{shadecolor}{\ }}\end{shaded}\egroup}
- breplace = \begin{shadedquoteBluesnippet}
- # \centering{\large\bf Program} \\[0.2cm]
- \fontsize{9pt}{9pt}
- \begin{Verbatim}
- ereplace = \end{Verbatim}
- \end{shadedquoteBluesnippet}
- \noindent
- # light blue, shaded box, can not handle multiple pages (sp = single page)
- [Blue_singlepage]
- breplace = \begin{SaveVerbatim}{Snippet}
- ereplace = \end{SaveVerbatim}
- \setlength{\fboxrule}{0pt}
- \begin{center}
- \definecolor{shadecolor}{rgb}{0.87843, 0.95686, 1.0}
- \fcolorbox{black}{shadecolor}{
- \begin{minipage}{0.97\textwidth}
- # \centering{\large\bf Program snippet} \\[0.2cm]
- \raggedright
- \fontsize{9pt}{9pt}\selectfont{\BUseVerbatim{Snippet}}
- \end{minipage}}
- \end{center}
- \setlength{\fboxrule}{0.4pt} %% Back to default
- \noindent
- # light gray, shaded box, can not handle multiple pages (sp = single page)
- [Gray_singlepage]
- breplace = \begin{SaveVerbatim}{Programsingle}
- ereplace = \end{SaveVerbatim}
- \setlength{\fboxrule}{0pt}
- \begin{center}
- \definecolor{shadecolor}{gray}{0.93}
- \fcolorbox{black}{shadecolor}{
- \begin{minipage}{0.97\textwidth}
- # \centering{\large\bf Program line} \\[0.2cm]
- \raggedright
- \fontsize{9pt}{9pt}\selectfont{\BUseVerbatim{Programsingle}}
- \end{minipage}}
- \end{center}
- \setlength{\fboxrule}{0.4pt} %% Back to default
- \noindent
- # Tiago Quintino's code environment
- [PythonTiago]
- breplace = \lstset{language=Python}
- \lstset{frame=single,numbers=left,numberstyle=\tiny,numbersep=6pt,
- stepnumber=2}
- \lstset{framexleftmargin=0mm,
- framexrightmargin=0mm,
- frame=shadowbox,
- rulesepcolor=\color{dgray}}
- {\fontsize{9pt}{9pt}
- \begin{lstlisting}
- ereplace = \end{lstlisting}}\vspace{3mm}
- # Tiago Quintino's code environment
- [CppTiago]
- breplace = \lstset{language=[ISO]{C++}}
- \lstset{frame=single,numbers=left,numberstyle=\tiny,numbersep=6pt,
- stepnumber=2}
- \lstset{framexleftmargin=0mm,
- framexrightmargin=0mm,
- frame=shadowbox,
- rulesepcolor=\color{dgray}}
- {\fontsize{9pt}{9pt}
- \begin{lstlisting}
- ereplace = \end{lstlisting}}\vspace{3mm}
- # old FEniCS style code environment
- [oldFEniCS]
- define = True
- newenv = \providecommand{\fenicscode}{}
- \renewenvironment{fenicscode}[1]{
- \center\tabular{c}\hline\\ \footnotesize
- \minipage{#1\textwidth}\verbatim}
- {\endverbatim\endminipage\\ \\ \hline\endtabular\endcenter}
- breplace = \begin{fenicscode}{0.9}
- ereplace = \end{fenicscode}
- # old FEniCS style code environment
- [oldFEniCSsmall]
- define = True
- newenv = \providecommand{\fenicscodesmall}{}
- \renewenvironment{fenicscodesmall}[1]{
- \center\footnotesize\minipage{#1\textwidth}\verbatim}
- {\endverbatim\endminipage\endcenter}
- breplace = \begin{fenicscodesmall}{0.9}
- ereplace = \end{fenicscodesmall}
- # NOTE: The CodeGrayWhite1/2 redefine \FancyVerbFormatLine and this
- # will affect all forthcoming styles that use fancyvrb (quite many!).
- # Be careful with this environment
- # Code with gray background and white split between lines:
- [CodeGrayWhite1]
- breplace = \definecolor{Light}{gray}{.80}
- \renewcommand{\FancyVerbFormatLine}[1]{\colorbox{Light}{\makebox[\linewidth][l]{#1}}}
- \begin{Verbatim}[fontsize=\%(fontsize)s,numbers=left,tabsize=8,baselinestretch=%(bstretch)s,fontfamily=tt,xleftmargin=7mm]
- ereplace = \end{Verbatim}
- \noindent
- bstretch = 0.85
- fontsize = fontsize{9pt}{9pt}
- # as CodeGrayWhite1, but no line numbers:
- [CodeGrayWhite2]
- breplace = \definecolor{Light}{gray}{.80}
- \renewcommand{\FancyVerbFormatLine}[1]{\colorbox{Light}{\makebox[\linewidth][l]{#1}}}
- \begin{Verbatim}[fontsize=\%(fontsize)s,tabsize=8,baselinestretch=%(bstretch)s,fontfamily=tt,xleftmargin=7mm]
- ereplace = \end{Verbatim}
- \noindent
- bstretch = 0.85
- fontsize = fontsize{9pt}{9pt}
- [inline_code]
- font = 10
- [preprocess]
- #defines = T2
- #undefines = T2
- #includes = /home/some/body/myfile
- [names]
- # the names below are just examples - new names can be
- # defined instead or in addition to those listed here
- # computer code in quote environment (gives a left margin):
- ccq = CodeIndented
- # computer code with no left margin:
- cc = Code
- # computer code with line numbering:
- ccl = CodeLineNo
- # program box:
- pro = BlueBar
- pypro = BlueBar
- cypro = BlueBar
- cpppro = BlueBar
- cpro = BlueBar
- fpro = BlueBar
- plpro = BlueBar
- shpro = BlueBar
- mpro = BlueBar
- # computer code box (snippet, not complete program):
- cod = Blue
- pycod = Blue
- cycod = Blue
- cppcod = Blue
- ccod = Blue
- fcod = Blue
- plcod = Blue
- shcod = Blue
- mcod = Blue
- # computer code box (snippet, not complete program):
- #ccod = Cpp_ANS
- #cppcod = Cpp_ANS
- #pycod = Python_ANS
- #cycod = Cython_ANS
- #cans = Cpp_ANS
- cppans = Cpp_ANS
- pyans = Python_ANS
- bashans= Bash_ANS
- swigans= Swig_ANS
- uflans = UFL_ANS
- # computer code box (snippet, not complete program):
- #sni = Blue_snippet
- sni = Blue
- # data file:
- dat = CodeIndented
- # data file snippet:
- dsni = CodeIndented
- # system commands (in terminal window):
- sys = CodeTerminal
- # one-line system command (in terminal window):
- slin = Code
- # IPython interactive session:
- ipy = Code
- # standard interactive python session:
- py = Code
- # execution of a Python program ("run python"):
- rpy = CodeTerminal
- # one-line program code:
- plin = Code
- # verbatim environment:
- ver = Verb
- # warning box:
- warn = Warnings
- # tip box:
- rule = Tip
- # note box:
- summ = Note
|