pandoc problem (was: XeLaTeX to Word/OpenOffice - the state of the art?)

Karljurgen Feuerherm kfeuerherm at wlu.ca
Sat Mar 16 15:34:10 CET 2019


FWIW, I am surprised (though I don’t know why the difference). The test file I ran, on which I based my earlier comment, included the packages below. As you can see, several of these are on your list. It did burp on the inclusion of one particular graphics file, which I did not pursue….

If someone has any intuition on this, it might be worth knowing about for down the road, if/when I seriously use this utility.

K
——

\usepackage{calc}
\usepackage{bigdelim}
\usepackage[style=british]{csquotes}
\usepackage{enumitem}
\usepackage{fontspec}
\setmonofont{Consolas}[Scale=MatchLowercase]
\usepackage[oldstyle,sb]{libertinus}% 5 Sep 2018 replaces libertine
\usepackage{multicol} % 4 Sep 2018
\usepackage{multirow}
\usepackage{polyglossia}
\setdefaultlanguage[variant=british]{english}
% The next block is all associated with biblatex which must be loaded after polyglossia.
% Chicago Manual of Style has special types for multimedia which other styles do not.
\let\keptlanguagename\languagename
\def\languagename{british}
\usepackage[annotation,backend=biber,notes,juniorcomma,language=british]{biblatex-chicago}
\let\languagename\keptlanguagename
\addbibresource{allcourses.bib}
\NewBibliographyString{cbyseries}
\DefineBibliographyStrings{english}{
  cbyseries = {series editor},
}
\NewBibliographyString{cbyfounding}
\DefineBibliographyStrings{english}{
  cbyfounding = {founding editor},
}
% End of biblatex block.
\usepackage[en-GB,useregional=text]{datetime2} % must be loaded after polyglossia
\DTMlangsetup[[en-GB]{ord=raise,monthyearsep={,\space}}
\usepackage{datetime2-calc}
%\usepackage{tabularx} % already provided by memoir, here to document next line
\newcolumntype{C}{>{\centering\arraybackslash}X}
\usepackage{xifthen} % 4 Sep 2018
\usepackage{xltxtra}
\usepackage{xstring}

% hyperref should be loaded near the end
\usepackage[xetex,bookmarks,breaklinks,colorlinks,unicode,allcolors=blue]{hyperref}


On Mar 12, 2019, at 2:10 AM, Janusz S. Bień <jsbien at mimuw.edu.pl<mailto:jsbien at mimuw.edu.pl>> wrote:

On Mon, Mar 11 2019 at 21:18 +01, Mojca Miklavec wrote:

[...]

Pandoc might theoretically support the conversion, but I would not
know how good the results would be.

Mojca

On Mon, Mar 11 2019 at 22:21 -06, Dominik Wujastyk wrote:

I was going to mention Pandoc too. I use it increasingly often, for
various conversions including targetting Word.  It's an amazing tool.
Very nice in conjunction with Typora too.

--8<---------------cut here---------------start------------->8---
pandoc -f latex -t odt --verbose JSB_Parkosz18word.tex -o JSB_Parkosz18word_pandoc.odt
[INFO] Could not load include file 'fontspec.sty' at line 6 column 22
[INFO] Could not load include file 'polyglossia.sty' at line 16 column 25
[INFO] Could not load include file 'etoolbox.sty' at line 17 column 22
[INFO] Could not load include file 'csquotes.sty' at line 20 column 22
[INFO] Could not load include file 'wrapfig.sty' at line 21 column 21
[INFO] Could not load include file 'biblatex.sty' at line 23 column 54
[INFO] Could not load include file 'metalogo.sty' at line 46 column 22
[INFO] Could not load include file 'relsize.sty' at line 55 column 21
[INFO] Could not load include file 'graphicx.sty' at line 59 column 22
[INFO] Could not load include file 'url.sty' at line 61 column 17
[INFO] Could not load include file 'setspace.sty' at line 78 column 37

Error at "source" (line 96, column 8):
unexpected JSB
\input JSB_Parkosz18-tekst
      ^
--8<---------------cut here---------------end--------------->8---

This does not seem promising :-( Looks like it just does not handle
XeLaTeX.

Package: pandoc
Version: 2.2.1-3+b2

Versions of packages pandoc suggests:

[...]

ii  texlive-latex-extra        2018.20190131-1
ii  texlive-latex-recommended  2018.20190131-1
ii  texlive-luatex             2018.20190131-1
ii  texlive-xetex              2018.20190131-1


--
            ,
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20190316/0b41eeb5/attachment-0001.html>


More information about the XeTeX mailing list