From patcarr at gmail.com Mon May 23 04:11:45 2016 From: patcarr at gmail.com (Patrick Carr) Date: Sun, 22 May 2016 22:11:45 -0400 Subject: [XeTeX] fontspec error (maybe?), but only in class file Message-ID: Pertaining to these two minimal files: ----- Minimal testing.cls file: \ProvidesClass{testing} \RequirePackage{fontspec} \LoadClass{article} ----- Minimal tex file: \documentclass{testing} %\usepackage{fontspec} \begin{document} This is a test.\\ \end{document} ----- When run as above, I get this error: This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode (./Sans-titre.tex LaTeX2e <2016/03/31> Babel <3.9q> and hyphenation patterns for 81 language(s) loaded. (/Users/pat/Library/texmf/tex/latex/testing.cls Document Class: testing (/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/l3kernel/expl3-code.tex) (/usr/local/texlive/2015/texmf-dist/tex/latex/l3kernel/l3xdvipdfmx.def)) (/usr/local/texlive/2015/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2015/texmf-dist/tex/latex/euenc/eu1enc.def) (/usr/local/texlive/2015/texmf-dist/tex/latex/euenc/eu1lmr.fd)) ! LaTeX Error: The font size command \normalsize is not defined: there is probably something wrong with the class file. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.293 \normalsize % to overcome the encoding changing the current font size ? ----- When run with the call to fontspec in the class file commented out and uncommented in the tex file, it runs fine. That's line 293 from fontspec-xetex.sty; in the method that runs correctly it loads xunicode and moves on. The fontspec files are dated 1 february 2016, which I think is current. I'm editing the tex files in TeXShop and the class files in emacs, if it's some source file encoding issue, but I'm doing it the same for both. Xunicode is of course from 2011. Did I just miss or screw up an update or something? I tried searching on the errors and the best I could describe it here, on stack exchange, and the googles, but maybe I was searching for the wrong thing? Thanks, Pat Carr From will at wspr.io Mon May 23 05:41:58 2016 From: will at wspr.io (Will Robertson) Date: Mon, 23 May 2016 13:11:58 +0930 Subject: [XeTeX] fontspec error (maybe?), but only in class file In-Reply-To: References: Message-ID: <53EDBB23-3AE1-4F01-9373-307375FDF753@wspr.io> Hi Pat, Sorry for the inconvenience. > On 23 May 2016, at 11:41 AM, Patrick Carr wrote: > > Did I just miss or screw up an update or something? I tried searching > on the errors and the best I could describe it here, on stack > exchange, and the googles, but maybe I was searching for the wrong > thing? This has already been fixed in the development version but I?m struggling to find time for a release. If you just comment out the \normalsize line in fontspec-xetex.sty, that?ll fix things temporarily. Cheers, Will From patcarr at gmail.com Mon May 23 22:46:40 2016 From: patcarr at gmail.com (Patrick Carr) Date: Mon, 23 May 2016 16:46:40 -0400 Subject: [XeTeX] fontspec error (maybe?), but only in class file In-Reply-To: <53EDBB23-3AE1-4F01-9373-307375FDF753@wspr.io> References: <53EDBB23-3AE1-4F01-9373-307375FDF753@wspr.io> Message-ID: On Sun, May 22, 2016 at 11:41 PM, Will Robertson wrote: > >> On 23 May 2016, at 11:41 AM, Patrick Carr wrote: >> >> Did I just miss or screw up an update or something? I tried searching >> on the errors and the best I could describe it here, on stack >> exchange, and the googles, but maybe I was searching for the wrong >> thing? > > This has already been fixed in the development version but I?m struggling to find time for a release. > If you just comment out the \normalsize line in fontspec-xetex.sty, that?ll fix things temporarily. Thanks, Will! No worries! Pat