Org latex: make minted boxes look nicer
Lighter colour and rounded corners
This commit is contained in:
parent
7658089365
commit
3b06b7c406
17
config.org
17
config.org
|
@ -6603,15 +6603,16 @@ We also want a particular preamble when minted is used,
|
||||||
}
|
}
|
||||||
|
|
||||||
\\BeforeBeginEnvironment{minted}{
|
\\BeforeBeginEnvironment{minted}{
|
||||||
\\begin{tcolorbox}[
|
\\begin{tcolorbox}[%
|
||||||
enhanced,
|
enhanced,
|
||||||
overlay={\\fill[white!90!black] (frame.south west) rectangle ([xshift=2.8em]frame.north west);},
|
overlay={\\fill[white!95!black] ([xshift=2.8em]frame.north west) {[rounded corners=3pt] --
|
||||||
colback=white!95!black,
|
(frame.north west) -- (frame.south west) } -- ([xshift=2.8em]frame.south west) -- cycle;},
|
||||||
colframe=white!95!black, % make frame colour same as background
|
colback=white!98!black,
|
||||||
breakable,% Allow white breaks
|
colframe=white!98!black,
|
||||||
arc=0pt,outer arc=0pt,sharp corners, % sharp corners
|
breakable,
|
||||||
boxsep=0pt,left=0pt,right=0pt,top=0pt,bottom=0pt % no margin/paddding
|
arc=3pt,outer arc=3pt,
|
||||||
]
|
boxsep=0pt,left=0pt,right=0pt,top=0pt,bottom=0pt%
|
||||||
|
]%
|
||||||
}
|
}
|
||||||
\\AfterEndEnvironment{minted}{\\end{tcolorbox}}
|
\\AfterEndEnvironment{minted}{\\end{tcolorbox}}
|
||||||
\\renewcommand\\theFancyVerbLine{\\color{black!60!white}\\arabic{FancyVerbLine}} % minted line numbering
|
\\renewcommand\\theFancyVerbLine{\\color{black!60!white}\\arabic{FancyVerbLine}} % minted line numbering
|
||||||
|
|
Loading…
Reference in a new issue