PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Problem mit siunitx im Zusammenspiel mit tex4ht



Magger
14-10-2011, 09:53
Hallo,

ich habe ein kleines Problem des siunitx-Paketes zusammen mit dem tex4ht-Paket gefunden.

Folgendes Minimalbeispiel


\documentclass{article}
\usepackage{siunitx}
\begin{document}
\SI{1e9}{\second}
\end{document}

produziert bei der Ausgabe mit htlatex den Fehler "Missing $ inserted".

Ich benutze MiKTeX 2.9 auf dem neuesten Stand und Windows XP.

Es wäre prima, wenn jemand das Problem bestätigen könnten.

Ich habe Joseph Wright schon mal eine eMail geschrieben, und melde mich, sobald ich eine Antwort von ihm habe.

bobmalaria
14-10-2011, 09:58
Hi,

Joseph ist Dauergast und Moderator bei tex.stackexchange (http://tex.stackexchange.com/). Eventuell kann dir dort schneller geholfen werden.

Solltest Du dort etwas psoten, dann setze hier bitte einen Link zum Post.

Gruss

rstuby
14-10-2011, 10:09
Bei mir kommt stattdessen der Fehler, dass expl3 nicht gefunden werden kann.

Magger
14-10-2011, 11:03
Bei mir kommt stattdessen der Fehler, dass expl3 nicht gefunden werden kann.

Dann solltest du mal deine LaTeX-Distribution updaten und/oder eventuell manuell die Pakete l3kernel, l3experimental und l3packages installieren.

Magger
16-10-2011, 19:24
Hier ist die Antwort von Joseph:


Thanks for the bug report. As a temporary fix, try


\ExplSyntaxOn
\AtBeginDocument
{ \let \siunitx_esuremath:n \ensuremath }
\ExplSyntaxOff

after loading siunitx.

The problem is rather complicated, and has come about because of some
efforts to accommodate other requirements with tex4ht. Broadly, if you
use it to convert to OpenOffice then each math block is a separate
formula in OpenOffice, so it's desirable to minimise math blocks.

I have a number of outstanding issues which all centre on what should be
and what should not be in math mode. I'll need to think about these as a
whole to generate a fix both for the matter you've raised and also other
aspects. This is non-trivial: I'll see if I can get something done
within say a month.



Kurz darauf schrieb er dann noch:


It turns out that the issue is not so bad at all. Having looked over the
code, this issue can be fixed with a couple of changes. I also noted a
problem with superscripts: this is also fixed in v2.3h. CTAN should
update over the next day or so with the new code.


Ich denke, dass Problem ist damit gelöst.

Magger
18-10-2011, 08:21
kurzes Update: Ich habe heute morgen ein MiKTeX Update gemacht, da siunitx-Paket wurde aktualisiert und es obige Minimalbeispiel funktioniert jetzt auch mit htlatex ohne Probleme.