Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workarounds for minted bugs #91

Merged
merged 2 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .chktexrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CmdLine {
-eall -n22 -n30 -e16 -n46 -n21 -n29 -n3 -n17 -n11
-eall -n22 -n30 -e16 -n46 -n21 -n29 -n3 -n17 -n11 -n12
}

VerbEnvir {
Expand All @@ -13,6 +13,7 @@ Silent {
\tabularnewline \ifpdf \ExplSyntaxOn \ExplSyntaxOff
\bgroup \egroup \sourcefamily \restoregeometry
\itshape \cleardoublepage \IfValueT \pause \blindtext
\backmatter
}

MathEnvir {
Expand Down
4 changes: 2 additions & 2 deletions src/bibliography.tex
Original file line number Diff line number Diff line change
Expand Up @@ -395,10 +395,10 @@ \section{Other}
\end{example}

As you may have noticed, when entries have many authors, then not all of
them will be printed; instead ``et al.'' shows up at the end of the author list. This behaviour
them will be printed; instead \enquote{et al.} shows up at the end of the author list. This behaviour
may be controlled via \cargv{maxnames} (default $3$) and \cargv{minnames}
(default $1$) options. If the number of names is greater than \carg{maxnames}
then it will be shortened to \carg{minnames} and ``et al.'' will be added.
then it will be shortened to \carg{minnames} and \enquote{et al.} will be added.

\begin{example}[standalone,
biber,
Expand Down
10 changes: 8 additions & 2 deletions src/deprecated.tex
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ \chapter{Things You Shouldn't Use}
\NewDocumentCommand{\chto}{+v+v}{
\begin{trivlist}
\item
% Workaround for https://github.com/gpoore/minted/issues/356
\RenewCommandCopy{\VerbEnv}{\Verbatim}
\RenewCommandCopy{\endVerbEnv}{\endVerbatim}
\begin{minipage}{0.4\textwidth}
\mintinline{latex}:#1:
\end{minipage}
Expand All @@ -67,7 +70,10 @@ \chapter{Things You Shouldn't Use}
}
\NewDocumentCommand{\vchto}{+v+v}{
\begin{center}
\mintinline{latex}:#1:\\[.2cm]
% Workaround for https://github.com/gpoore/minted/issues/356
\RenewCommandCopy{\VerbEnv}{\Verbatim}
\RenewCommandCopy{\endVerbEnv}{\endVerbatim}
\mintinline{latex}:#1:
\(\big\downarrow\)\\[.2cm]
\mintinline{latex}:#2:
\end{center}
Expand Down Expand Up @@ -155,7 +161,7 @@ \section{Defining New Commands}\label{sec:def}
followed by few mandatory ones (specified as number in first optional
argument).
\begin{chktexignore}
\vchto|\newcommand{\foo}[4][bar]{ ... }|
\vchto|\newcommand{\foo}[4][bar]{ ... }|%
|\NewDocumentCommand{\foo}{O{bar}mmmm}{ ... }|
\end{chktexignore}

Expand Down
1 change: 1 addition & 0 deletions src/lshort.sty
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
Script=Arabic,
}
\newfontfamily\arabicfonttt{Iran Nastaliq}
\newfontfamily\arabicfont{Iran Nastaliq}
\newfontface\@swash[
Style=Swash,
]{EB Garamond}
Expand Down
7 changes: 7 additions & 0 deletions src/lshortexample.sty
Original file line number Diff line number Diff line change
Expand Up @@ -368,3 +368,10 @@
}
}
}

% Workaround for https://github.com/gpoore/minted/issues/354
\ifwindows
\def\minted@opt@quote#1{\detokenize\expandafter{\expandafter"\expanded{#1}"}}
\else
\def\minted@opt@quote#1{\detokenize\expandafter{\expandafter'\expanded{#1}'}}
\fi
18 changes: 9 additions & 9 deletions src/realworld.tex
Original file line number Diff line number Diff line change
Expand Up @@ -333,16 +333,16 @@ \subsection{Entering Characters}
\caption{Accents and Special Characters.}\label{accents}
\begin{tabular}{@{}*3{ll@{\qquad}}ll@{}}
\toprule
Code & Result & Code & Result & Code & Result & Code & Result \\
Code & Result & Code & Result & Code & Result & Code & Result \\
\midrule
\mstA{\`o} & \mstA{\'o} & \mstA{\^o} & \mstA{\~o} \\
\mstA{\=o} & \mstA{\.o} & \mstA{\"o} & \mstB{\c}{c} \\[6pt]
\mstB{\u}{o} & \mstB{\v}{o} & \mstB{\H}{o} & \mstB{\k}{a} \\
\mstB{\d}{o} & \mstB{\b}{o} & \mstB{\t}{oo} & \mstB{\r}{o} \\[6pt]
\mstA{\oe} & \mstA{\OE} & \mstA{\ae} & \mstA{\AE} \\
\mstA{\aa} & \mstA{\AA} & & & & \\[6pt]
\mstA{\o} & \mstA{\O} & \mstA{\l} & \mstA{\L} \\
\mstA{\i} & \mstA{\j} & \verb|!`| & !` & \verb|?`| & ?` \\ %chktex 26
\mstA{\`o} & \mstA{\'o} & \mstA{\^o} & \mstA{\~o} \\
\mstA{\=o} & \mstA{\.o} & \mstA{\"o} & \mstB{\c}{c} \\[6pt]
\mstB{\u}{o} & \mstB{\v}{o} & \mstB{\H}{o} & \mstB{\k}{a} \\
\mstB{\d}{o} & \mstB{\b}{o} & \mstB{\t}{oo} & \mstB{\r}{o} \\[6pt]
\mstA{\oe} & \mstA{\OE} & \mstA{\ae} & \mstA{\AE} \\
\mstA{\aa} & \mstA{\AA} & & & & \\[6pt]
\mstA{\o} & \mstA{\O} & \mstA{\l} & \mstA{\L} \\
\mstA{\i} & \mstA{\j} & \verb|!`| & !` & \verb|?`| & ?` \\ %chktex 26
\bottomrule
\end{tabular}%
\index{dotless \i{} and \j}\index{Scandinavian letters}%
Expand Down