Bastien, I made this call: pandoc 1Letter.docx -f docx -t pdf --pdf-engine=xelatex --template=/Users//.local/share/pandoc/templates/equity.tex -o 3EELetter.pdf In return, "Error producing PDF." Nothing more. I am going to post my template below, in reply to denis. Thanks for helping. -william- On Wednesday, February 9, 2022 at 1:14:48 PM UTC-8 Bastien Dumont wrote: > Again, it is a TeX error, and it definitely says that you are not using > xelatex. The template, in itself, does not determine what engine you use. > Did you specify --pdf-engine=xelatex in the call for pandoc? > > Le Wednesday 09 February 2022 à 12:24:30PM, -william- a écrit : > > 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 <[1] > > 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 [2]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [3] > https://groups.google.com/d/msgid/ > > pandoc-discuss/df05ff5e-3f6c-4056-9198-2f26165d6cd4n%40googlegroups.com. > > > > References: > > > > [1] https://pandoc.org/MANUAL.html#template-syntax > > [2] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [3] > https://groups.google.com/d/msgid/pandoc-discuss/df05ff5e-3f6c-4056-9198-2f26165d6cd4n%40googlegroups.com?utm_medium=email&utm_source=footer > > -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/fdf641c6-fffc-44a4-9c1e-c33a8363a5afn%40googlegroups.com.