diff --git a/CHANGELOG.md b/CHANGELOG.md index 32bdced..f8f86d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to ## [Unreleased] +## [v4.0.2] – 2024–05–24 + +### Added + +- Enhance documentation of `se2packages` regarding the usage of `minted` and the + grey-scale mode of `se2colors`. + ## [v4.0.1] – 2024–05–17 ### Fixed diff --git a/examples/se2thesis-master-thesis-example.pdf b/examples/se2thesis-master-thesis-example.pdf index 957e0b5..8dfda36 100644 Binary files a/examples/se2thesis-master-thesis-example.pdf and b/examples/se2thesis-master-thesis-example.pdf differ diff --git a/se2colors.dtx b/se2colors.dtx index ccea678..89763ba 100644 --- a/se2colors.dtx +++ b/se2colors.dtx @@ -231,7 +231,7 @@ % % Identify the package and give the overall version information. % \begin{macrocode} -\ProvidesExplPackage {se2colors} {2024-05-17} {4.0.1} +\ProvidesExplPackage {se2colors} {2024-05-24} {4.0.2} {A colour support package for the se2thesis bundle} % \end{macrocode} % diff --git a/se2fonts.dtx b/se2fonts.dtx index 741478e..9ba8421 100644 --- a/se2fonts.dtx +++ b/se2fonts.dtx @@ -151,7 +151,7 @@ % % Identify the package and give the overall version information. % \begin{macrocode} -\ProvidesExplPackage {se2fonts} {2024-05-17} {4.0.1} +\ProvidesExplPackage {se2fonts} {2024-05-24} {4.0.2} {A font-selection support package for the se2thesis bundle} % \end{macrocode} % diff --git a/se2packages.dtx b/se2packages.dtx index 4c28b13..328e456 100644 --- a/se2packages.dtx +++ b/se2packages.dtx @@ -125,6 +125,33 @@ % % Please be aware to use \emph{either} \pkg{minted} \emph{or} \pkg{listings}! % +% \emph{Attention:} The way how \pkg{minted} is implemented causes the resulting +% code to be typeset in gray scale, if you use the \pkg{se2colors} package with +% option |cmode=bw| or the \cls{se2thesis} class with |colormode=bw| (or their +% respective aliases). Students were requesting that they want to use the +% black-and-white mode of \pkg{se2color} because it saves lots of money when +% printing their thesis, while they want the colours in the syntax highlighting +% of \pkg{minted}. One can achieve this by adding hooks to the preamble of the +% document, after loading the \pkg{minted} package (which is recommend by +% setting |minted=true| as an option to \pkg{se2packages}): +% \begin{LaTeXdemo}[code only] +% \AddToHook{env/minted/begin}{\selectcolormodel{cmyk}} +% \AddToHook{cmd/mintinline/before}{\selectcolormodel{cmyk}} +% \end{LaTeXdemo} +% Thanks to Ulrike Fischer for pointing out this hook mechanism.\footnote{% +% \href{https://tex.stackexchange.com/a/718719/14622}{tex.stackexchange.com/a/718719/14622} +% } +% +% Another option, if you do not want colours in the \pkg{minted} output when you +% use the gray-scale mode of \pkg{se2colors} is the change the highlighting +% style, \pkg{minted} uses. The package for this provides the macro +% \cs{usemintedstyle}, which accepts a style available in your local +% \texttt{pygments} installation, see the \texttt{pygments} +% documentation\footnote{% +% \href{https://pygments.org/styles/}{pygments.org/styles/} +% } for an overview over the available styles; the |bw| style is explicitly +% designed for this kind of scenario. +% % \subsubsection{Designing Tables} % % A basically mandatory package to all users of tables @@ -443,7 +470,7 @@ % % Identify the package and give the overall version information. % \begin{macrocode} -\ProvidesExplPackage {se2packages} {2024-05-17} {4.0.1} +\ProvidesExplPackage {se2packages} {2024-05-24} {4.0.2} {Supporting packages for the se2thesis bundle} % \end{macrocode} % diff --git a/se2thesis.dtx b/se2thesis.dtx index ced3b91..5164bc0 100644 --- a/se2thesis.dtx +++ b/se2thesis.dtx @@ -607,7 +607,7 @@ % % Identify the class and give the overall version number. % \begin{macrocode} -\ProvidesExplClass {se2thesis} {2024-05-17} {4.0.1} +\ProvidesExplClass {se2thesis} {2024-05-24} {4.0.2} {A thesis class for the Chair of Software Engineering II} % \end{macrocode} % @@ -1655,7 +1655,7 @@ % We provide the following English translations. % % \begin{macrocode} -\ProvideDictionaryFor{English}{se2translations}[2024/05/17] +\ProvideDictionaryFor{English}{se2translations}[2024/05/24] \ProvideDictTranslation{abstract}{abstract} \ProvideDictTranslation{Abstract}{Abstract} \ProvideDictTranslation{acknowledgement}{acknowledgement} @@ -1706,7 +1706,7 @@ % We provide the following German translations. % % \begin{macrocode} -\ProvideDictionaryFor{German}{se2translations}[2024/05/17] +\ProvideDictionaryFor{German}{se2translations}[2024/05/24] \ProvideDictTranslation{abstract}{Zusammenfassung} \ProvideDictTranslation{Abstract}{Zusammenfassung} \ProvideDictTranslation{acknowledgement}{Danksagung}