Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed Jul 11, 2022
1 parent 17cad36 commit 3ab6c29
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions gWmaths.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
\ProvidesExplFile%
%</!sty&!cls>
{gWmaths}%
{2022/06/30} {0.6.4}%
{2022/07/11} {0.6.4}%
{COVID-19 Quarantine Accessible \TeX{} Project}%
%<*dtx>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cs_if_exist:cT{DocInput}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -1621,9 +1621,9 @@ John Pell
\bool_if:nF \gW@videolecture{
\RequestPackage{paralist} % `paralist` redefines {itemize}, {enumerate} environments
%\RequestPackage[ % `enumitem` redefines {itemize}, {enumerate} environments
% `enumitem` is substantially more complex than `paralist`
%shortlabels, % compatible with `enumerate`
%unboxed % avoid problems nesting environments
% `enumitem` is substantially more complex than `paralist`
%shortlabels, % compatible with `enumerate`
%unboxed % avoid problems nesting environments
%]{enumitem}
\RequestPackage{titling}% un-dumb \maketitle % see \pkg{titlesec}; incompatible w/ Beamer
}%\gW@videolecture
Expand Down Expand Up @@ -1964,6 +1964,15 @@ John Pell
\newenvironment{Solution}{\noindent{\it Solution.}}{}

%% TODO: switch this to alter \setparms@definition -> \theorem@headerfont rather than the name...but that will color the number too..?
%\xpatchcmd{\setparams@definition}{\def \theorem@headerfont }{\def \theorem@headerfont#1\ }%
%{ \xpatchcmd{\setparams@definition}{\}\def \theorem@separator \{}{ \textcolor{red}{#1}\ \}\def \theorem@separator \{} {}{} } {}
\xpatchcmd{\setparms@definition}{\csname th@plain\endcsname}{\th@plain}%
{}{}


\xpatchcmd{\mkheader@definition}{{definition}{definition}{Definition}}{{definition}{definition}{\textcolor{red}{Definition}}}%
{\let\Definition\definition} {}

\xpatchcmd{\mkheader@theorem}{{theorem}{theorem}{Theorem}}{{theorem}{theorem}{\textcolor{green}{Theorem}}}%
{\let\Theorem\theorem} {}
\xpatchcmd{\mkheader@corollary}{{corollary}{corollary}{Corollary}}{{corollary}{corollary}{\textcolor{violet}{Corollary}}}%
Expand All @@ -1972,8 +1981,6 @@ John Pell
{\let\Lemma\lemma} {}
\xpatchcmd{\mkheader@proposition}{{proposition}{proposition}{Proposition}}{{proposition}{proposition}{\textcolor{blue}{Proposition}}}%
{\let\Proposition\proposition} {}
\xpatchcmd{\mkheader@definition}{{definition}{definition}{Definition}}{{definition}{definition}{\textcolor{red}{Definition}}}%
{\let\Definition\definition} {}
}

% End environments
Expand Down

0 comments on commit 3ab6c29

Please sign in to comment.