[OS X TeX] XeLaTeX and fontspec issue

Jeffrey W Roland jroland at lsu.edu
Wed Dec 3 18:32:59 EST 2025


Hi Herb,

Thanks for your message.

I confirmed the presence of the Times New Roman font with Font Book.app before my initial post. I’ve also confirmed its presence directly.

I will have to set up math fonts. That’s part of why I chose Times New Roman—because it appears to have better math font options than the other three fonts the publisher uses. But I wanted to get the basics working first.

I’ve read about forcing the standard ligatures. I also read that this is done by default now. Regardless, thanks for the reminder.

Best,

Jeff


--

Jeffrey Roland, PhD

Associate Professor



Department of Philosophy

102 Coates Hall

Louisiana State University

Baton Rouge LA  70803



(e) jroland[at]lsu.edu

(p) 225.578.2220

(f) 225.578.4897





From: MacOSX-TeX <macosx-tex-bounces at email.esm.psu.edu> on behalf of Herbert Schulz via MacOSX-TeX <macosx-tex at email.esm.psu.edu>
Date: Wednesday, December 3, 2025 at 5:15 PM
To: TeX on Mac OS X Mailing List <macosx-tex at email.esm.psu.edu>
Cc: Herbert Schulz <herbs2 at mac.com>
Subject: Re: [OS X TeX] XeLaTeX and fontspec issue



> On Dec 3, 2025, at 3:54 PM, Jeffrey W Roland <jroland at lsu.edu> wrote:
>
> Hi all,
>
> 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:
>
> % !TEX TS-program = XeLaTeX
>
> \documentclass{memoir}
> \usepackage{fontspec}
> \setmainfont{Times New Roman}
>
> \begin{document}
>    Hey hey, my my.
> \end{document}
>
> When I try to typeset this, I get an undefined control sequence error on '\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.)
>
> I’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).
>
> I must be making a silly mistake, but for the life of me I can’t figure out what it is. Thoughts?
>
> TIA,
>
> Jeff
>   --
> Jeffrey Roland, PhD
> Associate Professor
>  Department of Philosophy
> 102 Coates Hall
> Louisiana State University
> Baton Rouge LA  70803
>  (e) jroland[at]lsu.edu
> (p) 225.578.2220
> (f) 225.578.4897

Howdy,

Note that you are calling for a font using a font name rather than the fone file name. This is fine with XeLaTeX which uses the Mac font system to find the file. Please open Font Book.app and check there if the system `sees' Times New Roman. If it does then try typesetting again. Hopefully if it shows up in Font Book.app XeLaTeX will now be able to find it.

PS: I have no problem typesetting your sample document.

PPS: if you have any Math, Sans or Typewriter text in your document you'll have to set those fonts up too. Also, you might want to force the use of the standard TeX Ligatures by adding the optional argument Ligatures=TeX, e.g.

\setmainfont{Times New Roman}[Ligatures=TeX]

for your document.

Good Luck,

Herb Schulz
herbs2 at mac.com


----------- Please Consult the Following Before Posting -----------
TeX FAQ: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.tug.org%2Fmactex%2Ffaq%2Findex.html&data=05%7C02%7Cjroland%40lsu.edu%7C71bdc60050374a40085608de32c1e49a%7C2d4dad3f50ae47d983a09ae2b1f466f8%7C0%7C0%7C639004005511133181%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=%2F7tgii2Wu1ddd2Ohpy7DlBoFjt1dICEKMVvCqkF%2Bgv8%3D&reserved=0<https://www.tug.org/mactex/faq/index.html>
List Reminders and Etiquette: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsites.esm.psu.edu%2F~gray%2FTeX%2F&data=05%7C02%7Cjroland%40lsu.edu%7C71bdc60050374a40085608de32c1e49a%7C2d4dad3f50ae47d983a09ae2b1f466f8%7C0%7C0%7C639004005511158585%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=uV9M%2B%2Fi2zXUfKdWPRLDkeZQe9ycV%2Br6WH9zR9cj%2FEMg%3D&reserved=0<https://sites.esm.psu.edu/~gray/TeX/>
List Archives: https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdir.gmane.org%2Fgmane.comp.tex.macosx&data=05%7C02%7Cjroland%40lsu.edu%7C71bdc60050374a40085608de32c1e49a%7C2d4dad3f50ae47d983a09ae2b1f466f8%7C0%7C0%7C639004005511196268%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=22eXPzU12QmwKWlLFvHbSizeumJ9xXpXf6Milm1JN4M%3D&reserved=0<http://dir.gmane.org/gmane.comp.tex.macosx>
                https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Femail.esm.psu.edu%2Fpipermail%2Fmacosx-tex%2F&data=05%7C02%7Cjroland%40lsu.edu%7C71bdc60050374a40085608de32c1e49a%7C2d4dad3f50ae47d983a09ae2b1f466f8%7C0%7C0%7C639004005511216044%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=OlXgBW7suan9V5kmA9zvQgua5zufuDhYIWNGrBYtnSY%3D&reserved=0<https://email.esm.psu.edu/pipermail/macosx-tex/>
TeX on Mac OS X Website: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.tug.org%2Fmactex%2Findex.html&data=05%7C02%7Cjroland%40lsu.edu%7C71bdc60050374a40085608de32c1e49a%7C2d4dad3f50ae47d983a09ae2b1f466f8%7C0%7C0%7C639004005511230007%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=ctPG4trjqufJlLt7Lu0ZQl2JGIWeGhPp6LQSaG3WX%2Fs%3D&reserved=0<https://www.tug.org/mactex/index.html>
List Info: https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Femail.esm.psu.edu%2Fmailman%2Flistinfo%2Fmacosx-tex&data=05%7C02%7Cjroland%40lsu.edu%7C71bdc60050374a40085608de32c1e49a%7C2d4dad3f50ae47d983a09ae2b1f466f8%7C0%7C0%7C639004005511243171%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=%2Bv0xVQhtCpLfZlPxBoieKrq4fO4JYm2ocMjGhCVAY48%3D&reserved=0<https://email.esm.psu.edu/mailman/listinfo/macosx-tex>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20251203/af359be2/attachment.htm>


More information about the MacOSX-TeX mailing list