Quantcast
Channel: Active questions tagged convert - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 75

Tex document compiles fine, but converting it to .odt or .docx failes for mk4ht and pandoc

$
0
0

I am able to compile my document fine using the pdflatex chain in Kile, but when I try to convert it to an .odt file using mk4ht oolatex 0.main.tex I get the following error.

! pdfTeX error (\pdfcolorstack): not allowed in DVI mode (\pdfoutput <= 0). \set@color ->\pdfcolorstack

Using pandoc 0.main.tex --bibliography="/home/thesisprimary.bib" --bibliography="/home/thesissecondary.bib" ---csl="/home/chicago-note-bibliography.csl" -o compile_document.docx I get

Error at "0.main.tex" (line 85, column 2):unexpected end of inputexpecting \end{document}\end{document} ^

Previously, either of these methods worked fine. I am not sure what's going on now. Any help would be greatly appreciated. Thanks.

Here is my MWE.

\documentclass{maine-thesis}  \usepackage[pdftex]{graphicx} \usepackage[backend=biber,notes,natbib,isbn=false,doi=false,url=false,eprint=false]{biblatex-chicago} \usepackage[main=american,vietnamese]{babel} \usepackage[T5]{fontenc}\usepackage[babel]{csquotes} \usepackage[table,xcdraw,gray]{xcolor}\usepackage{pgf-pie}\usepackage{pgfplots}\usepackage{tikz}\usepackage[format=hang]{caption} \pgfplotsset{compat=1.17}\renewcommand{\thesection}{\arabic{section}} \addbibresource{thesisprimary.bib} \addbibresource{thesissecondary.bib}\begin{document}\include{1.introduction}                \include{2.theory}\include{3.historiography}              \include{4.background}\include{5.methodology}         \include{6.analysis}\include{7.findings}\include{8.conclusion}\include{appendixA}\renewcommand{\bibname}{Bibliography}\printbibliography\end{document}

Viewing all articles
Browse latest Browse all 75

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>