Skip to content
Snippets Groups Projects
Commit ddda8ac3 authored by dgelessus's avatar dgelessus
Browse files

Use \def instead of \newcommand to define custom LaTeX commands

\newcommand doesn't allow overwriting an existing definition. It worked
fine in Jupyter Notebook, which uses MathJax, which apparently doesn't
actually check this. However, it causes errors in VS Code, which uses
KaTeX. It probably also caused errors when converting a notebook to
LaTeX and typesetting it with a proper LaTeX implementation.

\def overwrites any existing definition and so should work in all cases.
parent aa7a9211
Branches master
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment