- Change underscores in file names to hyphens.
- Make color names clearer. - Clean up commonincludes.
@@ -35,8 +35,6 @@
|
|||||||
|
|
||||||
\RequirePackage{hyperref}
|
\RequirePackage{hyperref}
|
||||||
|
|
||||||
%\RequirePackage{hypcap}
|
|
||||||
|
|
||||||
\RequirePackage{ifthen}
|
\RequirePackage{ifthen}
|
||||||
|
|
||||||
\RequirePackage{lua-widow-control}
|
\RequirePackage{lua-widow-control}
|
||||||
@@ -65,8 +63,6 @@
|
|||||||
% Color import and definition
|
% Color import and definition
|
||||||
\RequirePackage{xcolor}
|
\RequirePackage{xcolor}
|
||||||
|
|
||||||
\RequirePackage{xstring}
|
|
||||||
|
|
||||||
% A lot of other packages require Layout, so load it first.
|
% A lot of other packages require Layout, so load it first.
|
||||||
\RequirePackage{PrimeTeX/packages/Layout}
|
\RequirePackage{PrimeTeX/packages/Layout}
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 218 KiB After Width: | Height: | Size: 218 KiB |
|
Before Width: | Height: | Size: 207 KiB After Width: | Height: | Size: 207 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
@@ -8,15 +8,15 @@
|
|||||||
|
|
||||||
\NewTblrEnviron{tblrBoxout}
|
\NewTblrEnviron{tblrBoxout}
|
||||||
\SetTblrInner[tblrBoxout]{
|
\SetTblrInner[tblrBoxout]{
|
||||||
cells = {boxoutBG},
|
cells = {boxoutBGColor},
|
||||||
hborder{1} = {belowspace=\boxoutpadding},
|
hborder{1} = {belowspace=\boxoutpadding},
|
||||||
hborder{Z} = {abovespace=\boxoutpadding},
|
hborder{Z} = {abovespace=\boxoutpadding},
|
||||||
hlines = {0pt,boxoutBG},
|
hlines = {0pt,boxoutBGColor},
|
||||||
hline{1,Z} = {\boxoutrule,boxoutFG},
|
hline{1,Z} = {\boxoutrule,boxoutFGColor},
|
||||||
vborder{1} = {rightspace=\boxoutpadding},
|
vborder{1} = {rightspace=\boxoutpadding},
|
||||||
vborder{Z} = {leftspace=\boxoutpadding},
|
vborder{Z} = {leftspace=\boxoutpadding},
|
||||||
vlines = {0pt,boxoutBG},
|
vlines = {0pt,boxoutBGColor},
|
||||||
vline{1,Z} = {\boxoutrule,boxoutFG},
|
vline{1,Z} = {\boxoutrule,boxoutFGColor},
|
||||||
}
|
}
|
||||||
|
|
||||||
\tl_const:Nn \c_Boxout_innerspec_tl {colspec={X[l,h]}}
|
\tl_const:Nn \c_Boxout_innerspec_tl {colspec={X[l,h]}}
|
||||||
@@ -47,10 +47,10 @@
|
|||||||
}{ \group_begin:
|
}{ \group_begin:
|
||||||
\keys_set:nn{Boxout}{#1}
|
\keys_set:nn{Boxout}{#1}
|
||||||
\bool_if:nT \l_Boxout_warning_bool {
|
\bool_if:nT \l_Boxout_warning_bool {
|
||||||
\colorlet{boxoutBG}{warningBG}
|
\colorlet{boxoutBGColor}{warningBGColor}
|
||||||
\colorlet{boxoutFG}{warningFG}
|
\colorlet{boxoutFGColor}{warningFGColor}
|
||||||
}
|
}
|
||||||
\color{text}
|
\color{textColor}
|
||||||
\label{box:#2}
|
\label{box:#2}
|
||||||
\tl_if_empty:nTF {#3} {
|
\tl_if_empty:nTF {#3} {
|
||||||
\expanded{\noexpand\begin{tblrBoxout}{\l_Boxout_innerspec_tl}}
|
\expanded{\noexpand\begin{tblrBoxout}{\l_Boxout_innerspec_tl}}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
}%
|
}%
|
||||||
}
|
}
|
||||||
|
|
||||||
\cs_new_protected:Nn \__MyCaption_format_default: {\Centering\small\color{caption}}
|
\cs_new_protected:Nn \__MyCaption_format_default: {\Centering\small\color{captionColor}}
|
||||||
|
|
||||||
\keys_define:nn {MyCaption} {
|
\keys_define:nn {MyCaption} {
|
||||||
before .bool_set:N = \l_MyCaption_before_bool,
|
before .bool_set:N = \l_MyCaption_before_bool,
|
||||||
|
|||||||
@@ -122,58 +122,58 @@
|
|||||||
|
|
||||||
\ifthenelse{\boolean{isDarkMode}\AND\boolean{isElectronic}}{
|
\ifthenelse{\boolean{isDarkMode}\AND\boolean{isElectronic}}{
|
||||||
% Page and text colors.
|
% Page and text colors.
|
||||||
\colorlet{page}{PrimeDarkGray}
|
\colorlet{pageColor}{PrimeDarkGray}
|
||||||
\colorlet{text}{PrimePastelGray}
|
\colorlet{textColor}{PrimePastelGray}
|
||||||
|
|
||||||
\colorlet{caption}{PrimePastelBlue}
|
\colorlet{captionColor}{PrimePastelBlue}
|
||||||
|
|
||||||
\colorlet{marginText}{PrimePastelBlue}
|
\colorlet{marginTextColor}{PrimePastelBlue}
|
||||||
|
|
||||||
\colorlet{link}{PrimeLightBlue}
|
\colorlet{linkColor}{PrimeLightBlue}
|
||||||
|
|
||||||
% Banded table rows.
|
% Banded table rows.
|
||||||
\colorlet{bandedRow}{PrimeGray}
|
\colorlet{bandedRowColor}{PrimeGray}
|
||||||
|
|
||||||
% Boxout colors.
|
% Boxout colors.
|
||||||
\colorlet{boxoutBG}{PrimeDarkBlue}
|
\colorlet{boxoutBGColor}{PrimeDarkBlue}
|
||||||
\colorlet{boxoutFG}{PrimeLightBlue}
|
\colorlet{boxoutFGColor}{PrimeLightBlue}
|
||||||
|
|
||||||
% Warning Box colors.
|
% Warning Box colors.
|
||||||
\colorlet{warningBG}{PrimeDarkOrange}
|
\colorlet{warningBGColor}{PrimeDarkOrange}
|
||||||
\colorlet{warningFG}{PrimeOrange}
|
\colorlet{warningFGColor}{PrimeOrange}
|
||||||
|
|
||||||
% Layout preview frame color.
|
% Layout preview frame color.
|
||||||
\colorlet{layout}{PrimeGray}
|
\colorlet{layoutColor}{PrimeGray}
|
||||||
}{
|
}{
|
||||||
% Page and text colors.
|
% Page and text colors.
|
||||||
\colorlet{page}{white}
|
\colorlet{pageColor}{white}
|
||||||
\colorlet{text}{black}
|
\colorlet{textColor}{black}
|
||||||
|
|
||||||
\colorlet{caption}{PrimeDarkBlue}
|
\colorlet{captionColor}{PrimeDarkBlue}
|
||||||
|
|
||||||
\colorlet{marginText}{PrimeDarkBlue}
|
\colorlet{marginTextColor}{PrimeDarkBlue}
|
||||||
|
|
||||||
\colorlet{link}{PrimeBlue}
|
\colorlet{linkColor}{PrimeBlue}
|
||||||
|
|
||||||
% Banded table rows.
|
% Banded table rows.
|
||||||
\colorlet{bandedRow}{PrimePaleGray}
|
\colorlet{bandedRowColor}{PrimePaleGray}
|
||||||
|
|
||||||
% Boxout colors.
|
% Boxout colors.
|
||||||
\colorlet{boxoutBG}{PrimePaleBlue}
|
\colorlet{boxoutBGColor}{PrimePaleBlue}
|
||||||
\colorlet{boxoutFG}{PrimeBlue}
|
\colorlet{boxoutFGColor}{PrimeBlue}
|
||||||
|
|
||||||
% Warning Box colors.
|
% Warning Box colors.
|
||||||
\colorlet{warningBG}{PrimePastelOrange}
|
\colorlet{warningBGColor}{PrimePastelOrange}
|
||||||
\colorlet{warningFG}{PrimeBrightOrange}
|
\colorlet{warningFGColor}{PrimeBrightOrange}
|
||||||
|
|
||||||
% Layout preview frame color.
|
% Layout preview frame color.
|
||||||
\colorlet{layout}{PrimePaleBlue}
|
\colorlet{layoutColor}{PrimePaleBlue}
|
||||||
}
|
}
|
||||||
|
|
||||||
\pagecolor{page}
|
\pagecolor{pageColor}
|
||||||
\color{text}
|
\color{textColor}
|
||||||
|
|
||||||
\colorlet{boxedcoloroutline}{text}
|
\colorlet{boxedcoloroutline}{textColor}
|
||||||
|
|
||||||
\NewDocumentCommand{\boxedcolor}{
|
\NewDocumentCommand{\boxedcolor}{
|
||||||
% #1: Text inside box.
|
% #1: Text inside box.
|
||||||
|
|||||||
@@ -98,7 +98,7 @@
|
|||||||
}
|
}
|
||||||
\begin{minipage}{\linewidth}
|
\begin{minipage}{\linewidth}
|
||||||
\ifthenelse{\boolean{isDraft}}{
|
\ifthenelse{\boolean{isDraft}}{
|
||||||
{\color{layout}\rule{\textwidth}{1pt}\zws}
|
{\color{layoutColor}\rule{\textwidth}{1pt}\zws}
|
||||||
#2
|
#2
|
||||||
}{
|
}{
|
||||||
#2
|
#2
|
||||||
|
|||||||
@@ -61,13 +61,19 @@
|
|||||||
\NewDocumentCommand{\code}{m}{\mono{\small{}#1}}
|
\NewDocumentCommand{\code}{m}{\mono{\small{}#1}}
|
||||||
\NewDocumentCommand{\emoji}{m}{{\emfamily{}#1}}
|
\NewDocumentCommand{\emoji}{m}{{\emfamily{}#1}}
|
||||||
|
|
||||||
|
% Line-breaking zero-width space.
|
||||||
|
\NewDocumentCommand{\zws}{}{\hspace{0pt}}
|
||||||
|
% Line-breaking dot.
|
||||||
|
\NewDocumentCommand{\bdot}{}{.\zws}
|
||||||
|
|
||||||
|
% MenuKeys configuration.
|
||||||
\renewmenumacro{\directory}[/]{hyphenatepaths}
|
\renewmenumacro{\directory}[/]{hyphenatepaths}
|
||||||
\renewmenumacro{\keys}[+]{shadowedangularkeys}
|
\renewmenumacro{\keys}[+]{shadowedangularkeys}
|
||||||
\renewmenumacro{\menu}[>]{angularmenus}
|
\renewmenumacro{\menu}[>]{angularmenus}
|
||||||
|
|
||||||
\RenewDocumentCommand{\ctrlname}{}{$\wedge$}
|
\RenewDocumentCommand{\ctrlname}{}{$\wedge$}
|
||||||
|
|
||||||
% Line-breaking zero-width space
|
\NewDocumentCommand{\ControlString}{}{Ctrl\,\ctrl}
|
||||||
\NewDocumentCommand{\zws}{}{\hspace{0pt}}
|
\NewDocumentCommand{\EnterString}{}{Enter\,\return}
|
||||||
% Line-breaking dot
|
\NewDocumentCommand{\ShiftString}{}{Shift\,\shift}
|
||||||
\NewDocumentCommand{\bdot}{}{.\zws}
|
\NewDocumentCommand{\AltString}{}{Alt\,\altmac}
|
||||||
@@ -1,4 +1,10 @@
|
|||||||
\NeedsTeXFormat{LaTeX2e}
|
\NeedsTeXFormat{LaTeX2e}
|
||||||
\ProvidesPackage{PrimeTeX/packages/Index}[2025-07-09]
|
\ProvidesExplPackage{PrimeTeX/packages/Index}{2025-09-15}{1.0}{
|
||||||
|
Index commands.
|
||||||
|
}
|
||||||
|
|
||||||
\NewDocumentCommand{\idx}{m}{\StrSubstitute{#1}{!}{ }\index{#1}}
|
\NewDocumentCommand{\idx}{m}{
|
||||||
|
\str_set:Nn \l_tmpa_str {#1}
|
||||||
|
\str_replace_all:Nnn \l_tmpa_str {!} {~}
|
||||||
|
\index{\l_tmpa_str}
|
||||||
|
}
|
||||||
@@ -14,9 +14,9 @@
|
|||||||
|
|
||||||
% Redefine the commands geometry uses to draw the page frame to customize the
|
% Redefine the commands geometry uses to draw the page frame to customize the
|
||||||
% color.
|
% color.
|
||||||
\renewcommand{\Gm@vrule}{\color{layout}\vrule width 0.2pt height\textheight depth\z@}
|
\renewcommand{\Gm@vrule}{\color{layoutColor}\vrule width 0.2pt height\textheight depth\z@}
|
||||||
\renewcommand{\Gm@hrule}{\color{layout}\hrule height 0.2pt depth\z@ width\textwidth}
|
\renewcommand{\Gm@hrule}{\color{layoutColor}\hrule height 0.2pt depth\z@ width\textwidth}
|
||||||
\renewcommand{\Gm@hruled}{\color{layout}\hrule height\z@ depth0.2pt width\textwidth}
|
\renewcommand{\Gm@hruled}{\color{layoutColor}\hrule height\z@ depth0.2pt width\textwidth}
|
||||||
|
|
||||||
% Suppress "Underfull \hbox" infos.
|
% Suppress "Underfull \hbox" infos.
|
||||||
\hbadness=10000
|
\hbadness=10000
|
||||||
|
|||||||
@@ -14,11 +14,11 @@
|
|||||||
|
|
||||||
\ifthenelse{\boolean{isElectronic}}{
|
\ifthenelse{\boolean{isElectronic}}{
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
allcolors = link,
|
allcolors = linkColor,
|
||||||
}
|
}
|
||||||
}{
|
}{
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
allcolors = text,
|
allcolors = textColor,
|
||||||
pdfduplex = DuplexFlipLongEdge,
|
pdfduplex = DuplexFlipLongEdge,
|
||||||
pdfpagelayout = TwoPageRight,
|
pdfpagelayout = TwoPageRight,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,15 +17,15 @@
|
|||||||
- \textheight
|
- \textheight
|
||||||
},
|
},
|
||||||
yshift = {7pt}, % Just a magic number that lines up margin notes with their reference.
|
yshift = {7pt}, % Just a magic number that lines up margin notes with their reference.
|
||||||
style~recto~outer = {\RaggedRight\small\color{marginText}},
|
style~recto~outer = {\RaggedRight\small\color{marginTextColor}},
|
||||||
style~verso~outer = {\RaggedLeft\small\color{marginText}},
|
style~verso~outer = {\RaggedLeft\small\color{marginTextColor}},
|
||||||
}
|
}
|
||||||
|
|
||||||
\NewDocumentCommand{\MarginHyperSetup}{}{
|
\NewDocumentCommand{\MarginHyperSetup}{}{
|
||||||
\ifthenelse{\boolean{isElectronic}}{
|
\ifthenelse{\boolean{isElectronic}}{
|
||||||
\hypersetup{allcolors = link}
|
\hypersetup{allcolors = linkColor}
|
||||||
}{
|
}{
|
||||||
\hypersetup{allcolors = marginText}
|
\hypersetup{allcolors = marginTextColor}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
\marginalia{
|
\marginalia{
|
||||||
\MarginHyperSetup
|
\MarginHyperSetup
|
||||||
\begin{MyCaption}[
|
\begin{MyCaption}[
|
||||||
format={\RaggedOutside\small\color{caption}}
|
format={\RaggedOutside\small\color{captionColor}}
|
||||||
]{fig:#3}{#4}
|
]{fig:#3}{#4}
|
||||||
\Centering\includegraphics[keepaspectratio,#1]{#2}
|
\Centering\includegraphics[keepaspectratio,#1]{#2}
|
||||||
\end{MyCaption}
|
\end{MyCaption}
|
||||||
|
|||||||
@@ -15,20 +15,20 @@
|
|||||||
hline{2} = {0.4pt},
|
hline{2} = {0.4pt},
|
||||||
}
|
}
|
||||||
|
|
||||||
\DeclareTblrTemplate{remark-tag}{default}{
|
\DeclareTblrTemplate{remark-tag}{default}{%
|
||||||
\strong{\InsertTblrRemarkTag}
|
\strong{\InsertTblrRemarkTag}%
|
||||||
}
|
}
|
||||||
|
|
||||||
\NewTblrEnviron{tblrBanded}
|
\NewTblrEnviron{tblrBanded}
|
||||||
\SetTblrInner[tblrBanded]{
|
\SetTblrInner[tblrBanded]{
|
||||||
rowhead = 1,
|
rowhead = 1,
|
||||||
row{odd} = {bandedRow},
|
row{odd} = {bandedRowColor},
|
||||||
row{1} = {bg=page, font=\bfseries},
|
row{1} = {bg=pageColor, font=\bfseries},
|
||||||
hline{1,Z} = {0.6pt},
|
hline{1,Z} = {0.6pt},
|
||||||
hline{2} = {0.4pt},
|
hline{2} = {0.4pt},
|
||||||
}
|
}
|
||||||
|
|
||||||
\NewTblrTableCommand{\midtitle}[1][page]{
|
\NewTblrTableCommand{\midtitle}[1][pageColor]{
|
||||||
\SetCell[c=2]{
|
\SetCell[c=2]{
|
||||||
c,
|
c,
|
||||||
bg = #1,
|
bg = #1,
|
||||||
|
|||||||
@@ -19,11 +19,11 @@
|
|||||||
% Move the rule graphic to 0.25 in from the left edge of the
|
% Move the rule graphic to 0.25 in from the left edge of the
|
||||||
% paper and vertically centered on the heartbeat graphic.
|
% paper and vertically centered on the heartbeat graphic.
|
||||||
\put(-\oddsidemargin-0.75in,10pt){
|
\put(-\oddsidemargin-0.75in,10pt){
|
||||||
\includegraphics{#1prime_rule.pdf}
|
\includegraphics{#1prime-rule.pdf}
|
||||||
}
|
}
|
||||||
% The numbers here are just what looks good.
|
% The numbers here are just what looks good.
|
||||||
\put(100pt,0pt){
|
\put(100pt,0pt){
|
||||||
\includegraphics{#1prime_heartbeat.pdf}
|
\includegraphics{#1prime-heartbeat.pdf}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||