% !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:27:36 PM UTC-8 denis...@unibe.ch wrote:
Can you share your template?
________________________________________
Von: pandoc-...@googlegroups.com <pandoc-...@googlegroups.com> im Auftrag von Bastien DUMONT <bastien...-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>
Gesendet: Mittwoch, 9. Februar 2022 22:13:13
An: pandoc-...@googlegroups.com
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...@googlegroups.com.
> 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...@googlegroups.com.
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/25cb0f4b-b169-4365-a727-e6f6f8c64610n%40googlegroups.com.