<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>The magic comment requires an ‘!’, but is case insensitive.</div><div><br></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">% !tex program=…</span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">% !tex root=…</span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></span></div><div>You must use these directives near the top of any included file.</div><div><br></div><div>Once there is a notion of project in TeXworks, this won’t be necessary.</div><div><br><div>JL</div><div><br><div><br><blockquote type="cite"><div>Le 16 déc. 2023 à 10:35, Philip Taylor (Personal) <P.Taylor@Trezaise.Uk> a écrit :</div><br class="Apple-interchange-newline"><div>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Moti Ben-Ari wrote:<br>
</div>
<blockquote type="cite" cite="mid:CAHCuC+n9uH+-SPjB1=2b1S78YsE6Duh4Nmnbyz8nwAm6xBEZRQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div class="gmail_default" style="font-size:small">I am using
both pdfLaTeX and XeLaTeX. Is it possible to indicate within a
source file which typesetter to use, something like % !Tex
root for indicating the main file? At least: once I open a
main file and select a typesetter, the same typesetter should
be used for any of its included files.</div>
<div class="gmail_default" style="font-size:small">Moti</div>
</div>
</blockquote>
% TeX Program=XeLaTeX<br>
<blockquote><i>or<br>
</i></blockquote>
% TeX Program=PdfLaTeX<br>
-- <br>
<i>Philip Taylor</i><br>
</div>
</div></blockquote></div><br></div></div></body></html>