Fri Oct 26 12:55:17 2018, original submission:
When using \label{} and \ref{} (or \pageref{} in TeX, the opendocument output seems to be broken. The referenced Label is just not rendered visibly.
I've attached a MWE and the generated .odt file.
I'm using:
htxelatex test-labelref.tex "xhtml,ooffice" "ooffice/! -cmozhtf" "-coo -cvalidate"
to generated that file.
When running xelatex to generate a pdf file, everything works fine.
The TeX-Code line
<pre>
Something about Section \ref{sec:1} and --\ref{sec:2}-- to show something else on p.~\pageref{sec:1}.
</pre>
results in
<pre>
<!--l. 22--><text:p text:style-name="Text-body">Something about Section <t4htlink
href="#x1-10001">1<!--tex4ht:ref: sec:1 --></t4htlink> and –<t4htlink
href="#x1-20002">2<!--tex4ht:ref: sec:2 --></t4htlink>– to show something else on p.<text:s/><t4htlink
href="#x1-10001">3</t4htlink>.
</text:p>
</pre>
So, in summary, the reference is rendered, but not in the correct way. (Btw, shouldn't it be text:reference-ref instead of t4htlink? See http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#element-text_reference-ref)
If you need any further information to reproduce the behaviour, please let me know.
|