|
125 | 125 | %
|
126 | 126 | % Please be aware to use \emph{either} \pkg{minted} \emph{or} \pkg{listings}!
|
127 | 127 | %
|
| 128 | +% \emph{Attention:} The way how \pkg{minted} is implemented causes the resulting |
| 129 | +% code to be typeset in gray scale, if you use the \pkg{se2colors} package with |
| 130 | +% option |cmode=bw| or the \cls{se2thesis} class with |colormode=bw| (or their |
| 131 | +% respective aliases). Students were requesting that they want to use the |
| 132 | +% black-and-white mode of \pkg{se2color} because it saves lots of money when |
| 133 | +% printing their thesis, while they want the colours in the syntax highlighting |
| 134 | +% of \pkg{minted}. One can achieve this by adding hooks to the preamble of the |
| 135 | +% document, after loading the \pkg{minted} package (which is recommend by |
| 136 | +% setting |minted=true| as an option to \pkg{se2packages}): |
| 137 | +% \begin{LaTeXdemo}[code only] |
| 138 | +% \AddToHook{env/minted/begin}{\selectcolormodel{cmyk}} |
| 139 | +% \AddToHook{cmd/mintinline/before}{\selectcolormodel{cmyk}} |
| 140 | +% \end{LaTeXdemo} |
| 141 | +% Thanks to Ulrike Fischer for pointing out this hook mechanism.\footnote{% |
| 142 | +% \href{https://tex.stackexchange.com/a/718719/14622}{tex.stackexchange.com/a/718719/14622} |
| 143 | +% } |
| 144 | +% |
| 145 | +% Another option, if you do not want colours in the \pkg{minted} output when you |
| 146 | +% use the gray-scale mode of \pkg{se2colors} is the change the highlighting |
| 147 | +% style, \pkg{minted} uses. The package for this provides the macro |
| 148 | +% \cs{usemintedstyle}, which accepts a style available in your local |
| 149 | +% \texttt{pygments} installation, see the \texttt{pygments} |
| 150 | +% documentation\footnote{% |
| 151 | +% \href{https://pygments.org/styles/}{pygments.org/styles/} |
| 152 | +% } for an overview over the available styles; the |bw| style is explicitly |
| 153 | +% designed for this kind of scenario. |
| 154 | +% |
128 | 155 | % \subsubsection{Designing Tables}
|
129 | 156 | %
|
130 | 157 | % A basically mandatory package to all users of tables
|
|
443 | 470 | %
|
444 | 471 | % Identify the package and give the overall version information.
|
445 | 472 | % \begin{macrocode}
|
446 |
| -\ProvidesExplPackage {se2packages} {2024-05-17} {4.0.1} |
| 473 | +\ProvidesExplPackage {se2packages} {2024-05-24} {4.0.2} |
447 | 474 | {Supporting packages for the se2thesis bundle}
|
448 | 475 | % \end{macrocode}
|
449 | 476 | %
|
|
0 commit comments