- Fix Boxout default format.
- Add colors and macros for code snippet syntax highlighting. - Change default mono font weight back regular.
This commit is contained in:
@@ -83,7 +83,7 @@
|
|||||||
\tl_if_empty:nTF {#3} {
|
\tl_if_empty:nTF {#3} {
|
||||||
% No header
|
% No header
|
||||||
\expanded{\noexpand\begin{tblrBoxout}{\l_Boxout_innerspec_tl}}
|
\expanded{\noexpand\begin{tblrBoxout}{\l_Boxout_innerspec_tl}}
|
||||||
\__Boxout_format:\ignorespaces#4\\
|
\__Boxout_default_format:\__Boxout_format:\ignorespaces#4\\
|
||||||
\end{tblrBoxout}
|
\end{tblrBoxout}
|
||||||
}{
|
}{
|
||||||
% Yes header
|
% Yes header
|
||||||
|
|||||||
@@ -155,6 +155,13 @@
|
|||||||
|
|
||||||
% Layout preview frame color.
|
% Layout preview frame color.
|
||||||
\colorlet{layoutColor}{PrimeGray}
|
\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.
|
% Page and text colors.
|
||||||
\colorlet{pageColor}{white}
|
\colorlet{pageColor}{white}
|
||||||
@@ -188,6 +195,13 @@
|
|||||||
|
|
||||||
% Layout preview frame color.
|
% Layout preview frame color.
|
||||||
\colorlet{layoutColor}{PrimePaleBlue}
|
\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}
|
\pagecolor{pageColor}
|
||||||
@@ -211,4 +225,10 @@
|
|||||||
\def\boxedcolortext{\strut{}#1}%
|
\def\boxedcolortext{\strut{}#1}%
|
||||||
}%
|
}%
|
||||||
\fcolorbox{boxedcoloroutline}{#2}{\small\color{#3}\boxedcolortext}%
|
\fcolorbox{boxedcoloroutline}{#2}{\small\color{#3}\boxedcolortext}%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\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}}
|
||||||
@@ -34,9 +34,9 @@
|
|||||||
\setmonofont{RobotoMono}[
|
\setmonofont{RobotoMono}[
|
||||||
Path = {\fontpath/RobotoMono/},
|
Path = {\fontpath/RobotoMono/},
|
||||||
Extension = .ttf,
|
Extension = .ttf,
|
||||||
UprightFont = *-Medium,
|
UprightFont = *-Regular,
|
||||||
BoldFont = *-Bold,
|
BoldFont = *-Bold,
|
||||||
ItalicFont = *-MediumItalic,
|
ItalicFont = *-Italic,
|
||||||
BoldItalicFont = *-BoldItalic,
|
BoldItalicFont = *-BoldItalic,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user