Thanks, but I still need help. I created another template using the xelatex engine. Typeset console shows "preloaded format=xelatex." I selected TeX and DVI to typeset it. There were no problems, and the PDF Viewer showed me exactly what I asked for.
When I ask Pandoc to use **my** template--not pandoc's default template--it gives me an error , and states: You must change your typesetting engine to, e.g., "xelatex" or "lualatex" instead of "latex" or "pdflatex".
I **did** use xelatex; I did **not** use latex or pdflatex. So, it seems to me that Pandoc does not recognize my template. How do I get Pandoc to use my template?
On Tue, 8 Feb 2022, at 03:32, -william- wrote:
> MacOS 12.2
> TexShop v.4.68
>
> I have a template.tex file created in the xelatex program.
Note that the tex template that pandoc uses is *not* a normal .tex file. It's a template file with a format that's specific to pandoc. See <https://pandoc.org/MANUAL.html#template-syntax> for details.
That being said, using pandoc won't give you the most faithful conversion to pdf of your docx document. Word itself can convert to pdf and IIUC Acrobat can do so, as well. Using Powershell on Windows, it's also possible to script the conversion so you don't have to open the file in Word and convert manually.
But perhaps you already know all that and have good reasons to use Pandoc. :-)
--
Joost Kremers
Life has its moments