[tex4ht] [bug #404] Using label/ref seems to be broken with opendocument export

Florian Zumkeller-Quast mail+tex4ht at branleb.de
Fri Oct 26 15:00:02 CEST 2018


URL:
  <http://puszcza.gnu.org.ua/bugs/?404>

                 Summary: Using label/ref seems to be broken with opendocument
export
                 Project: tex4ht
            Submitted by: branleb
            Submitted on: Fr 26 Okt 2018 15:55:17 EEST
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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 &#x2013;<t4htlink

 href="#x1-20002">2<!--tex4ht:ref: sec:2 --></t4htlink>&#x2013; 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.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fr 26 Okt 2018 15:55:17 EEST  Name: test-labelref.tex  Size: 403B   By:
branleb

<http://puszcza.gnu.org.ua/bugs/download.php?file_id=299>
-------------------------------------------------------
Date: Fr 26 Okt 2018 15:55:17 EEST  Name: test-labelref.pdf  Size: 17kB   By:
branleb

<http://puszcza.gnu.org.ua/bugs/download.php?file_id=300>
-------------------------------------------------------
Date: Fr 26 Okt 2018 15:55:17 EEST  Name: test-labelref.odt  Size: 8kB   By:
branleb

<http://puszcza.gnu.org.ua/bugs/download.php?file_id=301>

    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?404>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/


More information about the tex4ht mailing list