Dear Max

Max Nikulin <[email protected]> writes:

>> Panayotis Manganaris writes:
>>
>>> I treat siunitx as a first class citizen for all my documents.
> I am a bit skeptical concerning siunitx commands as first class citizens 

Really, "first class citizen" is too strong a term for what I wanted to
say. I don't expect latex macros not otherwise demarcated to behave like
org elements.

I only intended that I have siunitx as a permanent fixture of my
org-latex-packages-alist and I like to use its macros as "normal text"
in org without expecting they be used as a formal data structure.

> Are you sure that \qty works as expected? I tried a random example taken 
> from the siunitx manual.
>
>    #+name: example-qty
>    Quantity \qty{1.23}{J.mol^{-1}.K^{-1}}.
>
>    #+name: org-export-string-as
>    #+begin_src elisp :var text=example-qty
>      (org-export-string-as text 'latex t)
>    #+end_src
>    #+RESULTS: org-export-string-as
>    : Quantity \qty{1.23}\{J.mol\textsuperscript{-1}.K\textsuperscript{-1}\}.

My expectations are not so high. Although, it is peculiar that the
exporter treats the braces, apparently, inconsistently.

> As to disabled entities, my expectation is that they should have chance 
> to be treated as LaTeX fragments.

Ditto.

> P.S. I did not expect that pandoc may interpret siunitx commands. I 
> would say it should transparently pass arguments in the case of LaTeX output
>
>    pandoc -f org -t latex <<<'Angle \ang{1;2;3}.'
>    Angle 1°2′3″.
>
>    pandoc -f org -t latex <<<'Unit \unit[]{\gram\per\cubic\centi\metre}.'
>    Unit g~cm\textsuperscript{−3}.
>
>    pandoc -f org -t latex <<<'Quantity \qty{1.23}{\centi\metre g^{-1}}.'
>    Quantity 1.23~cm\emph{g}\textsuperscript{−1}.
>

I'd say this is different. I wouldn't expect pandoc to match org's own
exporter exactly. I find it less reasonable to expect a third party tool
to identify unmarked latex fragments in org as anything other than wonky
org markup.

That's my take as a user.

Reply via email to