LaTeX -> doc: set
I'm trying to convert some .tex to .docx with a lot of complex math and pandoc-2.11.3.1 can't convert \set{..} and similar cases.
Usual error looks like:
[WARNING] Could not convert TeX math '\set{1, \dots, n}', rendering as TeX:
\set{1, \dots, n}
^
unexpected "{"
expecting "%", "\\label", "\\nonumber" or whitespace
Test case:
\documentclass{scrartcl}
\begin{document}
$\set{1, \dots, n}$
\end{document}
Is \set part of core tex? If not, where is it defined?
(You minimal test case doesn't compile with latex, so I gather it's defined in some external package.)
@jgm before your question I was very sure that it is part of LaTeX.
Anyway, you're right and it came from \usepackage{braket}
I see. Well, this package can't have the ambition of supporting everything in CTAN. We try to support the most commonly used packages. I'd suggest simply adding a macro definition of \set to your document -- if you're using pandoc, you can do something like pandoc mymacros.md myfile.md where mymacros.md contains the macro definitions you need. Pandoc will process these.