When trying to convert a simple LaTeX document to LibreOffice/OpenOffice, cross references and citations do not show in the final document. They do when converting to (X)HTML, but this has other drawbacks. How to set up conversion to LibreOffice properly?
I'm using Ubuntu 12.10 with packaged TeXlive 2012 and LibreOffice 3.6.
The code required to replicate this (shown below) can be downloaded or checked out using Git. To compile, use make texput.odt.
texput.tex:
\documentclass{scrartcl}
\pagestyle{empty}
\bibliographystyle{plain}
\begin{document}
\section{First} \label{sec:first}
\cite{test}
\ref{sec:first}
\bibliography{texput}
\end{document}
texput.bib:
@article{test,
author = "Anyone",
title = "Something",
year = 2010,
}
Compilation command, according to instructions:
latexmk texput.tex
htlatex texput.tex "xhtml,ooffice,bib-" "ooffice/! -cmozhtf" "-coo -cvalidate"
Resulting output:

Direct compilation:

Analysis of the generated content.xml file (inside texput.odt which in fact is a ZIP archive) shows mysterious <t4htlink> elements, I'm not sure they're part of the Open Document specification... Removing the opening and closing tags fixes the issue, at least for the reference to the section. The citation needs some more fixing. (The results don't change if I omit the bib- switch for the compilation.)