diff --git a/packages/Boxout.sty b/packages/Boxout.sty index de5675c..e6600bd 100644 --- a/packages/Boxout.sty +++ b/packages/Boxout.sty @@ -83,7 +83,7 @@ \tl_if_empty:nTF {#3} { % No header \expanded{\noexpand\begin{tblrBoxout}{\l_Boxout_innerspec_tl}} - \__Boxout_format:\ignorespaces#4\\ + \__Boxout_default_format:\__Boxout_format:\ignorespaces#4\\ \end{tblrBoxout} }{ % Yes header diff --git a/packages/Color.sty b/packages/Color.sty index 07076be..2feae23 100644 --- a/packages/Color.sty +++ b/packages/Color.sty @@ -155,6 +155,13 @@ % Layout preview frame color. \colorlet{layoutColor}{PrimeGray} + + % Code snippet syntax highlighting colors. + \colorlet{codeKeywordColor}{PrimeLightBlue} + \colorlet{codeOperatorColor}{PrimeLightOrange} + \colorlet{codeCommentColor}{PrimeLightMint} + \colorlet{codeNumberColor}{PrimeLightPink} + \colorlet{codeStringColor}{PrimeLightLime} } { % Page and text colors. \colorlet{pageColor}{white} @@ -188,6 +195,13 @@ % Layout preview frame color. \colorlet{layoutColor}{PrimePaleBlue} + + % Code snippet syntax highlighting colors. + \colorlet{codeKeywordColor}{PrimeDarkBlue} + \colorlet{codeOperatorColor}{PrimeDarkOrange} + \colorlet{codeCommentColor}{PrimeDarkMint} + \colorlet{codeNumberColor}{PrimeDarkPink} + \colorlet{codeStringColor}{PrimeDarkLime} } \pagecolor{pageColor} @@ -211,4 +225,10 @@ \def\boxedcolortext{\strut{}#1}% }% \fcolorbox{boxedcoloroutline}{#2}{\small\color{#3}\boxedcolortext}% -} \ No newline at end of file +} + +\NewDocumentCommand{\codekw}{m}{{\color{codeKeywordColor}#1}} +\NewDocumentCommand{\codeop}{m}{{\color{codeOperatorColor}#1}} +\NewDocumentCommand{\codecm}{m}{{\color{codeCommentColor}#1}} +\NewDocumentCommand{\codenm}{m}{{\color{codeNumberColor}#1}} +\NewDocumentCommand{\codest}{m}{{\color{codeStringColor}#1}} \ No newline at end of file diff --git a/packages/Fonts.sty b/packages/Fonts.sty index 8dcae6a..bec99b6 100644 --- a/packages/Fonts.sty +++ b/packages/Fonts.sty @@ -34,9 +34,9 @@ \setmonofont{RobotoMono}[ Path = {\fontpath/RobotoMono/}, Extension = .ttf, - UprightFont = *-Medium, + UprightFont = *-Regular, BoldFont = *-Bold, - ItalicFont = *-MediumItalic, + ItalicFont = *-Italic, BoldItalicFont = *-BoldItalic, ]