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

LaTeX -> doc: set #163

Open
catap opened this issue Dec 24, 2020 · 3 comments
Open

LaTeX -> doc: set #163

catap opened this issue Dec 24, 2020 · 3 comments

Comments

@catap
Copy link

catap commented Dec 24, 2020

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}
@jgm
Copy link
Owner

jgm commented Dec 24, 2020

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 jgm transferred this issue from jgm/pandoc Dec 24, 2020
@catap
Copy link
Author

catap commented Dec 24, 2020

@jgm before your question I was very sure that it is part of LaTeX.

Anyway, you're right and it came from \usepackage{braket}

@jgm
Copy link
Owner

jgm commented Dec 24, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants