-
Notifications
You must be signed in to change notification settings - Fork 22
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
Error when subtitle contains absolute value ("pipe") #18
Comments
Hi, thanks. This is not really a bug but should be resolved nonetheless. The problem stems from this. If you have several exercises \documentclass{article}
\usepackage{xsim}
\begin{document}
\begin{exercise}[subtitle=foo]
Hello, world!
\end{exercise}
\begin{exercise}[subtitle=bar]
Hello, world!
\end{exercise}
\end{document} then you'll find in the aux file lots of lines like this one \XSIM {subtitle}{exercise-1=={foo}|exercise-2=={bar}} where the \documentclass{article}
\usepackage{xsim}
\xsimsetup{
split-aux-lists = ||
}
\begin{document}
\begin{exercise}[subtitle={$|w|$}]
Hello, world!
\end{exercise}
\begin{exercise}[subtitle=bar]
Hello, world!
\end{exercise}
\end{document} |
I will also make \usepackage{mathtools}
\DeclarePairedDelimiter\abs{\lvert}{\rvert} and \begin{exercise}[subtitle={$\abs{w}$}] |
This is included in v0.11: \documentclass{article}
\usepackage{xsim}
\xsimsetup{
split-aux-lists = ||
}
\begin{document}
\begin{exercise}[subtitle={$|w|$}]
Hello, world!
\end{exercise}
\begin{exercise}[subtitle=bar]
Hello, world!
\end{exercise}
\end{document} |
I considered opening a new issue but I think this one is closely enough related. A colleague of mine encountered the following error ( \documentclass[a4paper,12pt]{article}
\usepackage{xsim}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
\begin{exercise}
Consider the following set
\[
B(c, r) = \{x \in \mathbb{R}^n \mid ||x - c||_2 \leq r\}.
\]
\end{exercise}
\end{document} I told him that that use of |
I'm getting an error when I compile documents where an exercise subtitle contains the pipe
|
character. Here's a MWE:When I run
pdflatex test.tex
twice, the second run throws an error:(Although, looking at the generated PDF, the document appears OK. But it makes me nervous.)
The text was updated successfully, but these errors were encountered: