Lessons learned - ESTS-Variants/varianTeX GitHub Wiki

[!NOTE] This page collects some more issues that are useful to know about, but don't surface all that often.

URLs

When encoding URLs (e.g. with \url{}, you may run into errors when they use special characters, such as hashtags (#). When this happens, the special character should be ‘escaped’ with a forward slash (\).

So for example:

\url{https://www.example.com/#/details?test=true}

Would become:

\url{https://www.example.com/\#/details?test=true}

Special symbols

Some symbols (incl. \smile and \cup are considered as mathematical symbols, and should be placed on a line that is surrounded by $-signs -- or LaTeX will throw an error. For an example, see Subacius in Variants 15-16:

\begin{center}
$\cup - \cup - \cup \| \cup - \cup - \cup$

$\cup - \cup - \cup \| \cup - \cup - \cup$

$\cup - \cup - \cup \| \cup - \cup - \cup$

$\cup - \cup - \cup \| \cup - \cup - \cup$
\end{center}