<html aria-label="message body"><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;">Your input worked fine for me, both using xelatex from the Mac Terminal command line and using the xelatex engine from within TeXShop. <div><br></div><div>Do you have the xelatex engine active in TeXShop? (If so, then from the engine selection button at the top of the TeXShop source window, just next to the Typeset button, you should see xelatex as one of the choices. If not, open ~/Library/TeXshop/Engines/Inactive and from there copy the xelatex engine and then paste it into ~/Library/TeXshop/Engines and restart TeXShop before proceeding).</div><div><br></div><div>But as long as you're using an OpenType-aware engine, you might as well use LuaLaTeX instead of XeLaTeX. That's what the TeXperts recommend these days, given that development of XeLaTeX has ceased.<br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Dec 3, 2025, at 4:54 PM, Jeffrey W Roland <jroland@lsu.edu> wrote:</div><br class="Apple-interchange-newline"><div>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
Hi all, </div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
I’m preparing a final book MS and it turns out the publisher only uses four fonts in the series where the book will appear. Of course, none of them are standard LaTeX fonts. The MS is currently set up for pdfLaTeX and I’m trying to move to XeLaTeX so that
I can use Times New Roman as the main font. The problem is that what seems like it should be easy (according to all I’ve read) isn’t working at all for me. Here’s a MWE:</div>
<div dir="ltr" style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div dir="ltr" style="margin-left: 40px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
% !TEX TS-program = XeLaTeX</div>
<div dir="ltr" style="margin-left: 40px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div style="margin-left: 40px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
\documentclass{memoir}</div>
<div style="margin-left: 40px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
\usepackage{fontspec}</div>
<div style="margin-left: 40px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
\setmainfont{Times New Roman}</div>
<div dir="ltr" style="margin-left: 40px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div style="margin-left: 40px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
\begin{document}</div>
<div style="margin-left: 40px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
Hey hey, my my.</div>
<div style="margin-left: 40px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
\end{document}</div>
<div dir="ltr" style="margin-left: 40px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div dir="ltr" style="margin-left: 0px;"><span style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">When I try to typeset this, I get an undefined control sequence error on '</span><span style="background-color: rgb(255, 255, 255);">\setmainfont{Times
New Roman}’. Two carriage returns produces an output, but not the right one. (’Times New Roman’ is printed as a line of text.)</span></div>
<div dir="ltr" style="margin-left: 0px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="background-color: rgb(255, 255, 255);"><br>
</span></div>
<div dir="ltr" style="margin-left: 0px;"><span style="font-size: 16px; background-color: rgb(255, 255, 255);">I</span><span style="background-color: rgb(255, 255, 255);">’</span><span style="font-size: 16px; background-color: rgb(255, 255, 255);">m using TeXShop
5.57 on a 2025 M4 MB Air running Sequoia 15.7.2 and the current version of MacTeX (installed today, in case that was the problem).</span></div>
<div dir="ltr" style="margin-left: 0px; font-size: 16px;"><span style="background-color: rgb(255, 255, 255);"><br>
</span></div>
<div style="margin-left: 0px;"><span style="background-color: rgb(255, 255, 255);">I must be making a silly mistake, but for the life of me I can’t figure out what it is. Thoughts? </span></div>
<div dir="ltr" style="margin-left: 0px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="background-color: rgb(255, 255, 255);"><br>
</span></div>
<div dir="ltr" style="margin-left: 0px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="background-color: rgb(255, 255, 255);">TIA, </span></div>
<div dir="ltr" style="margin-left: 0px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="background-color: rgb(255, 255, 255);"><br>
</span></div>
<div dir="ltr" style="margin-left: 0px; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
<span style="background-color: rgb(255, 255, 255);">Jeff</span></div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt;">
</div>
<div id="ms-outlook-mobile-signature"><div style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;">-- </div><div style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;">Jeffrey Roland, PhD</div><div style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;">Associate Professor</div><p style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;"> </p><div style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;">Department of Philosophy</div><div style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;">102 Coates Hall</div><div style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;">Louisiana State University</div><div style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;">Baton Rouge LA 70803</div><p style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;"> </p><div style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;">(e) jroland[at]lsu.edu</div><div style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;">(p) 225.578.2220</div><div style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;">(f) 225.578.4897</div><p style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;"> </p><p style="margin: 0in; font-family: Calibri, sans-serif; font-size: 11pt;"> </p>
</div>
</div>
----------- Please Consult the Following Before Posting -----------<br>TeX FAQ: https://www.tug.org/mactex/faq/index.html<br>List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/<br>List Archives: http://dir.gmane.org/gmane.comp.tex.macosx<br> https://email.esm.psu.edu/pipermail/macosx-tex/<br>TeX on Mac OS X Website: https://www.tug.org/mactex/index.html<br>List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex<br></div></blockquote></div><br><div>
<div>---<br>Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;"> </span>murrayeisenberg@gmail.com<br>Mobile (413)-427-5334<br>503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;"> </span><br>Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;"> </span></div><div><br></div><br class="Apple-interchange-newline">
</div>
<br></div></body></html>