- Update readme.
- Create document-level aliases for \fp_to_dim:n and a couple constants. - Clean up Fonts.sty. - Customize bullets in itemize lists.
This commit is contained in:
@@ -43,14 +43,8 @@
|
||||
\str_const:Nn \c_BigFloat_type_str {generic}
|
||||
\fp_const:Nn \c_BigFloat_offset_fp {2.0}
|
||||
|
||||
\ProvideLength{\BigFloatOverhang}[\dim_use:N \c_BigFloat_overhang_dim]
|
||||
\NewDocumentCommand{\BigFloatOffset}{O{}}{
|
||||
\str_if_empty:NTF #1 {
|
||||
\fp_use:N \c_BigFloat_offset_fp
|
||||
} {
|
||||
\fp_set:Ne \c_BigFloat_offset_fp {#1}
|
||||
}
|
||||
}
|
||||
\let\BigFloatOverhang\c_BigFloat_overhang_dim
|
||||
\let\BigFloatOffset\c_BigFloat_offset_fp
|
||||
|
||||
\dim_new:N \l_BigFloat_workoverhang_dim
|
||||
|
||||
|
||||
@@ -51,7 +51,6 @@
|
||||
|
||||
% Main font: Roboto Serif (Light)
|
||||
\setmainfont{RobotoSerif}[
|
||||
%Path = {\fontpath/},
|
||||
Extension = .ttf,
|
||||
UprightFont = *-Light,
|
||||
BoldFont = *-SemiBold,
|
||||
@@ -62,7 +61,6 @@
|
||||
|
||||
% % Sans serif font: Roboto (Medium).
|
||||
\setsansfont{Roboto}[
|
||||
%Path = {\fontpath/},
|
||||
Extension = .ttf,
|
||||
UprightFont = *-Medium,
|
||||
BoldFont = *-Bold,
|
||||
@@ -73,7 +71,6 @@
|
||||
|
||||
% Monospace font: Roboto Mono
|
||||
\setmonofont{RobotoMono}[
|
||||
%Path = {\fontpath/},
|
||||
Extension = .ttf,
|
||||
UprightFont = *-Regular,
|
||||
BoldFont = *-Bold,
|
||||
@@ -84,7 +81,6 @@
|
||||
|
||||
% Headings & Titles font: Roboto Slab (Semibold).
|
||||
\newfontfamily{\sbfamily}{RobotoSlab}[
|
||||
%Path = {\fontpath/},
|
||||
Extension = .ttf,
|
||||
UprightFont = *-SemiBold,
|
||||
BoldFont = *-Black,
|
||||
@@ -97,9 +93,9 @@
|
||||
|
||||
% \setmathrm{RobotoSerif}
|
||||
|
||||
\NewDocumentCommand{\serif}{+m}{{\rmfamily#1}}
|
||||
\NewDocumentCommand{\sans}{+m}{{\sffamily#1}}
|
||||
\NewDocumentCommand{\mono}{+m}{{\ttfamily{#1}}}
|
||||
\NewDocumentCommand{\serif}{+m}{{\rmfamily{}#1}}
|
||||
\NewDocumentCommand{\sans}{+m}{{\sffamily{}#1}}
|
||||
\NewDocumentCommand{\mono}{+m}{{\ttfamily{}#1}}
|
||||
\NewDocumentCommand{\slab}{+m}{{\sbfamily{}#1}}
|
||||
\NewDocumentCommand{\code}{+m}{\mono{\small{}#1}}
|
||||
|
||||
@@ -111,6 +107,12 @@
|
||||
% Line-breaking dot.
|
||||
\NewDocumentCommand{\bdot}{}{.\zws}
|
||||
|
||||
% Bullets for itemize lists.
|
||||
\renewcommand{\labelitemi}{▪}
|
||||
\renewcommand{\labelitemii}{⬩}
|
||||
\renewcommand{\labelitemiii}{‣}
|
||||
\renewcommand{\labelitemiv}{•}
|
||||
|
||||
%--------------------------- MenuKeys Configuration ----------------------------
|
||||
|
||||
\newmenucolortheme{autoModeColor}{named}{pageColor}{textColor}{textColor}[pageColor][textColor][textColor]
|
||||
@@ -147,4 +149,4 @@
|
||||
\NewDocumentCommand{\TabKey}{}{\keys{\TabString}}
|
||||
|
||||
% Suppress warning about obsolete font encodings because we're using Unicode.
|
||||
\@tw@hyphenatepaths@warnigfalse %[sic]
|
||||
\@tw@hyphenatepaths@warnigfalse % [sic]
|
||||
@@ -12,6 +12,8 @@
|
||||
\setlength{#1}{#2}%
|
||||
}
|
||||
|
||||
\let\FPToDim\fp_to_dim:n
|
||||
|
||||
% Redefine the commands geometry uses to draw the page frame to customize the
|
||||
% color.
|
||||
\renewcommand{\Gm@vrule}{\color{layoutColor}\vrule width 0.2pt height\textheight depth\z@}
|
||||
|
||||
Reference in New Issue
Block a user