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 Tuesday, February 8, 2022 at 2:35:18 AM UTC-8 Joost wrote:
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

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/df05ff5e-3f6c-4056-9198-2f26165d6cd4n%40googlegroups.com.