-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
siunitx commands not working inside math, align and tabular modes #185
Comments
That's right. We have pretty good support for siunitx in pandoc in text mode: But in math mode, everything is sent to this library. |
Note that we do have some support for siunitx in texmath. Just not complete, e.g. not |
I've pushed support for |
Could you suggest where to find the list of the supported siunitx commands ? Could one use |
Sorry, |
Would it be possible to support |
Are you talking about converting from LaTeX or from markdown with LaTeX math? |
I am talking about converting from markdown with LaTeX math. (Is it correct to assume the markdown format is the best format supported by Pandoc ?) |
Complex siunitex stuff will probably work better if you're converting from LaTeX, because then pandoc uses its own fairly complex LaTeX parser. For math in markdown, it goes through the texmath library, which has more limited siunitex support (jgm/texmath). Support for |
Many thanks for your efforts and comments ! |
The LaTeX reader of course can only handle a subset of LaTeX. If you can stay within that subset it might work well for you. |
If markdown format is a better source format when both Word and PDF are target formats, I would think that support for
Could you help to comment more on the feasibility that concerns you ? |
Here's an example I found of the use of
It seems to me that you could achieve most of what this gives you in current pandoc using
Have you tried that? |
inside math or align mode mode:
$T_{1/2}=\qty{8.0197}{days}$
gives the errorinside tabular mode the table is not even rendered.
The problem is the same for all siunitx commands \num ; \qty ; \unit
The text was updated successfully, but these errors were encountered: