% !TEX TS-program = xelatex % !TEX encoding = UTF-8 \documentclass[letterpaper, 12pt]{article} \usepackage[hmargin={1.2in,1.2in}, vmargin={1.0in, 1.2in}, includehead=true, includefoot=true, centering]{geometry} \usepackage{setspace} \setstretch{1.20} % sets linespacing to 14.4pts \usepackage[skip=10pt]{parskip} % this sets spacing between paragraphs; and, zero indenttion of paragraphs because the indent option is not specified. %\usepackage{footmisc} % read footmisc pdf re: conflict with hyperref \usepackage[document, footnotes] {ragged2e} % %\raggedright %results appear too ragged; and does not control footnotes; use ragged2e %\usepackage[]{nowidow} % exact control does not appear to be possible; the article class default is acceptable, discourages club and widow lines, uses: \clubpenalty 150 and \widow penalty 150 \setlength{\emergencystretch}{3em} % prevent overfull lines \usepackage[hyphens]{xurl} % creates url line breaks; option allows break after hyphens \usepackage{fontspec} \defaultfontfeatures{Mapping=tex-text, Scale=MatchLowercase} \setmainfont{Equity Text B} \setsansfont{Avenir Book} \setmonofont{SF Mono} \begin{document} \end{document} On Wednesday, February 9, 2022 at 1:29:12 PM UTC-8 denis...-NSENcxR/0n0@public.gmane.org wrote: > By the way, what do you mean with you typeset your template? How do you do > that? > ________________________________________ > Von: Maier, Denis Christian (UB) > Gesendet: Mittwoch, 9. Februar 2022 22:27:30 > An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Betreff: AW: help with command to use latex template > > Can you share your template? > ________________________________________ > Von: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im Auftrag > von Bastien DUMONT > Gesendet: Mittwoch, 9. Februar 2022 22:13:13 > An: pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Betreff: Re: help with command to use latex template > > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/YgQuafSBbVXkdzQH%40localhost > . > -- 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/d5883728-3115-43d7-8a04-e84b25247a05n%40googlegroups.com.