- Rename PrimeBright color set to PrimeMedium to get rid of oxymoronic PrimeBrightGray color.
- Add higher-contrast gray text color. - Fix the star argument for \CenterFig. - Add argument to \BigFig for keyvals passed to \includegraphics. - Adjust \InlineGraphic offset. - Adjust paragraph and line spacing.
This commit is contained in:
@@ -55,7 +55,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
% Lightness ≈ 49%
|
% Lightness ≈ 49%
|
||||||
\definecolorset{HTML}{PrimeBright}{}{%
|
\definecolorset{HTML}{PrimeMedium}{}{%
|
||||||
Gray, 717588;% #717588
|
Gray, 717588;% #717588
|
||||||
Yellow, d4b725;% #d4b725
|
Yellow, d4b725;% #d4b725
|
||||||
Lime, 9ad425;% #9ad425
|
Lime, 9ad425;% #9ad425
|
||||||
@@ -133,7 +133,8 @@
|
|||||||
|
|
||||||
\colorlet{linkColor}{PrimeLightBlue}
|
\colorlet{linkColor}{PrimeLightBlue}
|
||||||
|
|
||||||
\colorlet{grayTextColor}{PrimeGray}
|
\colorlet{textDullGrayColor}{PrimeGray}
|
||||||
|
\colorlet{textGrayColor}{PrimeMediumGray}
|
||||||
|
|
||||||
% Banded table rows.
|
% Banded table rows.
|
||||||
\colorlet{bandedRowColor}{PrimeGray}
|
\colorlet{bandedRowColor}{PrimeGray}
|
||||||
@@ -175,7 +176,8 @@
|
|||||||
|
|
||||||
\colorlet{linkColor}{PrimeBlue}
|
\colorlet{linkColor}{PrimeBlue}
|
||||||
|
|
||||||
\colorlet{grayTextColor}{PrimeLightGray}
|
\colorlet{textDullGrayColor}{PrimeLightGray}
|
||||||
|
\colorlet{textGrayColor}{PrimeGray}
|
||||||
|
|
||||||
% Banded table rows.
|
% Banded table rows.
|
||||||
\colorlet{bandedRowColor}{PrimePaleGray}
|
\colorlet{bandedRowColor}{PrimePaleGray}
|
||||||
@@ -186,16 +188,16 @@
|
|||||||
|
|
||||||
% Warning Box colors.
|
% Warning Box colors.
|
||||||
\colorlet{dangerBGColor}{PrimePastelRed}
|
\colorlet{dangerBGColor}{PrimePastelRed}
|
||||||
\colorlet{dangerFGColor}{PrimeBrightRed}
|
\colorlet{dangerFGColor}{PrimeMediumRed}
|
||||||
|
|
||||||
\colorlet{warningBGColor}{PrimePastelOrange}
|
\colorlet{warningBGColor}{PrimePastelOrange}
|
||||||
\colorlet{warningFGColor}{PrimeBrightOrange}
|
\colorlet{warningFGColor}{PrimeMediumOrange}
|
||||||
|
|
||||||
\colorlet{infoBGColor}{PrimePastelYellow}
|
\colorlet{infoBGColor}{PrimePastelYellow}
|
||||||
\colorlet{infoFGColor}{PrimeBrightYellow}
|
\colorlet{infoFGColor}{PrimeMediumYellow}
|
||||||
|
|
||||||
\colorlet{tipBGColor}{PrimePastelMint}
|
\colorlet{tipBGColor}{PrimePastelMint}
|
||||||
\colorlet{tipFGColor}{PrimeBrightMint}
|
\colorlet{tipFGColor}{PrimeMediumMint}
|
||||||
|
|
||||||
% Layout preview frame color.
|
% Layout preview frame color.
|
||||||
\colorlet{layoutColor}{PrimePaleBlue}
|
\colorlet{layoutColor}{PrimePaleBlue}
|
||||||
@@ -215,7 +217,7 @@
|
|||||||
|
|
||||||
\NewDocumentCommand{\ColorText}{
|
\NewDocumentCommand{\ColorText}{
|
||||||
O{PrimeBlue}
|
O{PrimeBlue}
|
||||||
O{PrimeBrightBlue}
|
O{PrimeMediumBlue}
|
||||||
O{}
|
O{}
|
||||||
+m
|
+m
|
||||||
}{
|
}{
|
||||||
|
|||||||
@@ -134,16 +134,17 @@
|
|||||||
}{ \group_begin:
|
}{ \group_begin:
|
||||||
\keys_set:nn{CenterFig}{#2}
|
\keys_set:nn{CenterFig}{#2}
|
||||||
\str_set:Nn \l_CenterFig_passed_keys_str {#4}
|
\str_set:Nn \l_CenterFig_passed_keys_str {#4}
|
||||||
% \bool_if:nT {#1} {
|
|
||||||
% \str_put_left:Nn \l_CenterFig_passed_keys_str {width=\linewidth,}
|
|
||||||
% }
|
|
||||||
\clist_use_default:Nnnn \l_CenterFig_placement_str
|
\clist_use_default:Nnnn \l_CenterFig_placement_str
|
||||||
{\l_Float_placement_clist}
|
{\l_Float_placement_clist}
|
||||||
{\c_Float_placement_clist}
|
{\c_Float_placement_clist}
|
||||||
\expanded{\noexpand\begin{figure}[\l_CenterFig_placement_str]}
|
\expanded{\noexpand\begin{figure}[\l_CenterFig_placement_str]}
|
||||||
\begin{MyCaption}{fig:#5}{#6}
|
\begin{MyCaption}{fig:#5}{#6}
|
||||||
\Centering
|
\Centering
|
||||||
\includegraphics[keepaspectratio,#4]{#3}
|
\bool_if:nTF {#1} {
|
||||||
|
\includegraphics[keepaspectratio,width=\linewidth,#4]{#3}
|
||||||
|
}{
|
||||||
|
\includegraphics[keepaspectratio,#4]{#3}
|
||||||
|
}
|
||||||
\end{MyCaption}
|
\end{MyCaption}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
\group_end: }
|
\group_end: }
|
||||||
@@ -169,42 +170,47 @@
|
|||||||
\dim_new:N \l_BigFig_overhang_dim
|
\dim_new:N \l_BigFig_overhang_dim
|
||||||
|
|
||||||
\NewDocumentCommand{\BigFig}{
|
\NewDocumentCommand{\BigFig}{
|
||||||
% Key=value options.
|
% #1: Key=value options.
|
||||||
O{}
|
O{}
|
||||||
% Graphic file.
|
% #2: Graphic file.
|
||||||
m
|
m
|
||||||
% Label.
|
% #3: Key-value options passed to \includegraphics.
|
||||||
|
O{width=\linewidth}
|
||||||
|
% #4: Label.
|
||||||
>{\TrimSpaces}m
|
>{\TrimSpaces}m
|
||||||
% Caption.
|
% #5: Caption.
|
||||||
m
|
m
|
||||||
}{ \group_begin:
|
}{
|
||||||
\keys_set:nn{BigFig}{#1}
|
\group_begin:
|
||||||
\fp_compare:nNnTF {\l_BigFig_hres_fp} = {0} {
|
\keys_set:nn{BigFig}{#1}
|
||||||
\dim_set:Nn \l_BigFig_overhang_dim {\l_BigFloat_overhang_dim}
|
\fp_compare:nNnTF {\l_BigFig_hres_fp} = {0} {
|
||||||
}{
|
\dim_set:Nn \l_BigFig_overhang_dim {\l_BigFloat_overhang_dim}
|
||||||
\dim_set:Nn \l_BigFig_overhang_dim {
|
}{
|
||||||
\dim_eval:n{
|
\dim_set:Nn \l_BigFig_overhang_dim {
|
||||||
(\fp_to_dim:n{
|
\dim_eval:n{
|
||||||
\l_BigFig_scale_fp
|
(\fp_to_dim:n{
|
||||||
* \l_BigFig_hres_fp
|
\l_BigFig_scale_fp
|
||||||
/ \l_BigFig_dpi_fp
|
* \l_BigFig_hres_fp
|
||||||
* 72.27
|
/ \l_BigFig_dpi_fp
|
||||||
}
|
* 72.27
|
||||||
- \linewidth)
|
}
|
||||||
/ 3}
|
- \linewidth)
|
||||||
}
|
/ 3}
|
||||||
}{}
|
}
|
||||||
\begin{BigFloat}[
|
}{}
|
||||||
type = figure,
|
\begin{BigFloat}[
|
||||||
overhang = \l_BigFig_overhang_dim,
|
type = figure,
|
||||||
placement:e = \l_Float_placement_clist,
|
overhang = \l_BigFig_overhang_dim,
|
||||||
offset = \l_BigFloat_offset_fp,
|
placement:e = \l_Float_placement_clist,
|
||||||
]
|
offset = \l_BigFloat_offset_fp,
|
||||||
\begin{MyCaption}{fig:#3}{#4}
|
]
|
||||||
\includegraphics[keepaspectratio,width=\linewidth]{#2}
|
\begin{MyCaption}{fig:#4}{#5}
|
||||||
\end{MyCaption}
|
\Centering
|
||||||
\end{BigFloat}
|
\includegraphics[keepaspectratio,#3]{#2}
|
||||||
\group_end: }
|
\end{MyCaption}
|
||||||
|
\end{BigFloat}
|
||||||
|
\group_end:
|
||||||
|
}
|
||||||
|
|
||||||
\keys_define:nn{}{
|
\keys_define:nn{}{
|
||||||
DoubleBigFig .inherit:n = {BigFloat},
|
DoubleBigFig .inherit:n = {BigFloat},
|
||||||
|
|||||||
@@ -106,6 +106,11 @@
|
|||||||
\NewDocumentCommand{\slab}{+m}{{\sbfamily{}#1}}
|
\NewDocumentCommand{\slab}{+m}{{\sbfamily{}#1}}
|
||||||
\NewDocumentCommand{\code}{+m}{\mono{\small{}#1}}
|
\NewDocumentCommand{\code}{+m}{\mono{\small{}#1}}
|
||||||
|
|
||||||
|
% \AtBeginDocument{
|
||||||
|
% \fontsize{9pt}{12pt}
|
||||||
|
% \selectfont
|
||||||
|
% }
|
||||||
|
|
||||||
%------------------------------- Symbol Commands -------------------------------
|
%------------------------------- Symbol Commands -------------------------------
|
||||||
|
|
||||||
% Line-breaking zero-width space.
|
% Line-breaking zero-width space.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
\dim_const:Nn \c_Graphics_icon_dim {0.25in}
|
\dim_const:Nn \c_Graphics_icon_dim {0.25in}
|
||||||
|
|
||||||
\dim_const:Nn \c_InlineGraphic_offset_dim {-2pt}
|
\dim_const:Nn \c_InlineGraphic_offset_dim {-0.2em}
|
||||||
|
|
||||||
\NewDocumentCommand{\IconSize}{}{\c_Graphics_icon_dim}
|
\NewDocumentCommand{\IconSize}{}{\c_Graphics_icon_dim}
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,8 @@
|
|||||||
|
|
||||||
% Paragraph formatting.
|
% Paragraph formatting.
|
||||||
\setlength{\parindent}{0pt}
|
\setlength{\parindent}{0pt}
|
||||||
\setlength{\parskip}{6pt plus 3pt minus 3pt}
|
\setlength{\parskip}{0.5em plus 0.25em minus 0.25em}
|
||||||
|
\renewcommand{\baselinestretch}{1.08}
|
||||||
|
|
||||||
% Float Page Configuration
|
% Float Page Configuration
|
||||||
\renewcommand{\topfraction}{0.9} % max fraction of floats at top
|
\renewcommand{\topfraction}{0.9} % max fraction of floats at top
|
||||||
|
|||||||
Reference in New Issue
Block a user