1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
# codebox package
# Matthew Bertucci 1/6/2022 for v1.0.3
#include:expl3
#include:xtemplate
#include:l3keys2e
#include:xparse
#include:fontawesome5
#include:tcolorbox
# loads skins, xparse, breakable, minted, and listings tcolorbox libraries
# loads shapes.geometric tikzlibrary
#include:varwidth
#include:xcolor
#include:etoolbox
# from skins tcolorbox library
#include:tikz
# from breakable tcolorbox library
#include:pdfcol
# from minted tcolorbox library
#include:minted
# from listings tcolorbox library
#include:listings
#include:pdftexcmds
#include:shellesc
\begin{codebox}{title%text}#V
\begin{codebox}[options%keyvals]{title%text}#V
\end{codebox}
\begin{codebox*}{title%text}#V
\begin{codebox*}[options%keyvals]{title%text}#V
\end{codebox*}
\codefile{title%text}{file}#i
\codefile[options%keyvals]{title%text}{file}#i
\codefile*{title%text}{file}#i
\codefile*[options%keyvals]{title%text}{file}#i
\begin{codeview}{title%text}#V
\begin{codeview}[options%keyvals]{title%text}#V
\end{codeview}
\begin{codeview*}{title%text}#V
\begin{codeview*}[options%keyvals]{title%text}#V
\end{codeview*}
\cvfile{title%text}{file}#i
\cvfile[options%keyvals]{title%text}{file}#i
\cvfile*{title%text}{file}#i
\cvfile*[options%keyvals]{title%text}{file}#i
\codeset{options%keyvals}
#keyvals:\begin{codebox},\begin{codebox*},\codefile,\codefile*,\begin{codeview},\begin{codeview*},\cvfile,\cvfile*
minted#true,false
lang=%<source code lang%>
pretitle=%<title prefix%>
codestyle=%<highlight style%>
codesize=%<fontsize macro%>
comments=%<text%>
commentf=%<format macros%>
codestretch=%<factor%>
linenumsep=%<number%>
#endkeyvals
#keyvals:\begin{codeview},\begin{codeview*},\cvfile,\cvfile*
label=##l
#endkeyvals
\thecvcounter
cvgrayc#B
cvgray#B
cvgrayb#B
cvblue#B
chengse#B
|