From 3e02e2647d8908bfa3629b640a04611d52bcce52 Mon Sep 17 00:00:00 2001 From: Domipoke <42298508+Domipoke@users.noreply.github.com> Date: Wed, 29 Jul 2026 13:14:10 +0200 Subject: [PATCH] fix --- myformat.sty | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/myformat.sty b/myformat.sty index 245242e..4f1261c 100644 --- a/myformat.sty +++ b/myformat.sty @@ -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|} \ No newline at end of file + + +\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}}