bugtex4ht - Bugs: bug #547, problem with citations

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #547: problem with citations

Submitted by:  Taichi Kato <tk2022>
Submitted on:  Sat Jan 29 01:34:45 2022  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed Oct 4 12:25:04 2023, comment #5:

I think we can close this issue?

Michal Hoftich <michal_h21>
Project Member
Mon Feb 7 00:54:48 2022, comment #4:

make4ht was not present in Tex Live 2013 and I used
mk4ht oolatex instead. I probably obtained a reasonable
result on a newer Tex Live (I don't remember the version
and I'm not sure whether I used make4ht or mk4ht)
on Debian Stretch (with problems with Russian characters
I didn't recognize at that time).
After upgrading to Debian Bullseye,
I haven't been able to obtain .docx as before.

Taichi Kato <tk2022>
Sun Feb 6 19:01:05 2022, comment #3:

The texst3-old.odt doesn't look correctly, but this is probably caused by mk4ht oolatex. make4ht -f odt does some post-processing, and it is necessary for the correct ODT output. Especially if you use math. I think it also fixes internal links. See the attached file, cite.odt.

(file #493)

Michal Hoftich <michal_h21>
Project Member
Sat Feb 5 01:29:20 2022, comment #2:

Thank you, this configuration file worked and now I don't have
to move back and forth between different environments.

I attach the resultant test3-old.odt for your examination

mk4ht oolatex test3.tex

on Tex Live 2013.

(file #490)

Taichi Kato <tk2022>
Fri Feb 4 15:58:04 2022, comment #1:

I think that this issue is caused by Xtpipes, which is quite an esoteric post-processing tool used by TeX4ht in the ODT output. In the original XML, there are correct links to the bibliography, but Xtpipes removes them.

You can remove the markup that causes Xtipes post-processing using the following configuration file


{\Link} {\EndLink}

It will leave just links and text in your document, so it will be not marked as a citation in the ODT format.

We didn't fix anything in Xtpipes for ages, so I am not sure why it worked in the past. I will do more tests and then post the fix to TeX4ht sources.

Michal Hoftich <michal_h21>
Project Member
Sat Jan 29 01:34:45 2022, original submission:

Although this may be a problem involving libreoffice,
could you be kind enough to provide a hint?







{Alekseenko}, M.~N. (2016) \textit{Ecological aspects of fall migration of
raptors in south Baikal migration corridor.} PhD Thesis, Bratsk State Univ.,
Bratsk (in Russian.)

{Antonov}, A.~I. (2020) Expansion of new bird species in the {Middle Amur}
region at the end of the 20th century: the role of climatic changes. {\it
Rus. J. Ornithol.\,} 29: 4819-4827 (in Russian.)



After make4ht -f odt test3.tex, \citet and \citetp parts
have extra [ ] in .odt. When I converted it to .docx,
the citation keys disappeared. When I converted it to .pdf,
they were converted to "Error: Reference source not found".
It looks like some information may be missing in
the odt file.

What it wrong with my usage?

make4ht version is v0.3f

The same thing did not happen with mk4ht in Tex Live
in 2013.

Taichi Kato <tk2022>


Attached Files
file #493:  cite.odt added by michal_h21 (7kB - application/vnd.oasis.opendocument.text)
file #490:  test3-old.odt added by tk2022 (7kB - application/vnd.oasis.opendocument.text)
file #484:  test3.docx added by tk2022 (8kB - application/vnd.openxmlformats-officedocument.wordprocessingml.document)
file #483:  test3-a.pdf added by tk2022 (31kB - application/pdf)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by tk2022 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    5 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed Oct 4 12:25:04 2023michal_h21Open/ClosedOpen=>Closed
    Sun Feb 6 19:01:05 2022michal_h21Attached File-=>Added cite.odt, #493
    Sat Feb 5 01:29:20 2022tk2022Attached File-=>Added test3-old.odt, #490
    Sat Jan 29 01:34:46 2022tk2022Attached File-=>Added test3.docx, #484
    Sat Jan 29 01:34:45 2022tk2022Attached File-=>Added test3-a.pdf, #483
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray