fix
This commit is contained in:
+26
-3
@@ -30,7 +30,7 @@
|
||||
\renewcommand{\underline}[1]{\uline{#1}}
|
||||
|
||||
\RequirePackage{tabularx}
|
||||
\tcbuselibrary{skins,breakable}
|
||||
\tcbuselibrary{minted,skins,breakable}
|
||||
|
||||
|
||||
\sffamily
|
||||
@@ -118,5 +118,28 @@ delim_0 ",\~"
|
||||
bottom = 3mm,
|
||||
}
|
||||
|
||||
% \newcommand{\latexinline}[1]{\\\mintinline{latex}{#1}}
|
||||
\newcommand{\latexinline}[1]{\mint{latex}|#1|}
|
||||
|
||||
|
||||
\newtcblisting{codeblock}[2]{
|
||||
listing engine = minted,
|
||||
minted language = #2,
|
||||
minted options = {
|
||||
fontsize = \small,
|
||||
bgcolor = black!5,
|
||||
frame = single,
|
||||
framesep = 2mm,
|
||||
breaklines = true,
|
||||
#1,
|
||||
},
|
||||
colback = black!5,
|
||||
colframe = black!50,
|
||||
listing only,
|
||||
left = 5mm,
|
||||
right = 5mm,
|
||||
top = 3mm,
|
||||
bottom = 3mm,
|
||||
enhanced,
|
||||
breakable,
|
||||
center
|
||||
}
|
||||
\newcommand{\latexinline}[1]{\\\mintinline{latex}{#1}}
|
||||
|
||||
Reference in New Issue
Block a user