-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
recent unicode-math upgrade breaks PDF builds if dot character is active when entering math mode #443
Comments
I only get an error with LuaLaTeX. The console output for XeLaTeX is
Package: unicode-math 2018/01/13 vv0.8k (tlmgr revision 46300) |
@eg9 thanks, I have edited my post. Somehow, I got confused due to not doing my tests from command line but changing engine via an emacs buffer variable, but I must have done a mistake and thus reported a xetex problem. It is specifically luatex, and I have indicated in my edit how I think this could get fixed. |
Thanks for picking this up -- it's as simple as:
I think if I change |
Hmm, no, that doesn't fix it. I'll continue to look into it. |
\documentclass{article}
\usepackage{unicode-math}
\begin{document}
\catcode`. \active
\def.{\ERROR}
%\directlua{fontspec.mathfontdimen(font.current(),"AxisHeight")}
\directlua{\detokenize{fontspec.mathfontdimen(font.current(),"AxisHeight")}}
\end{document} compiles without error for me. It is strange to me that the |
Yes, I didn’t have long to look earlier, and when I saw the dot being seen as active even after it had been tokenised as an other I could tell something strange was happening... |
I didn't fully trace but it's just for the first use of math at that size,
the catcode triggers because it's as if an fd file had been read with
<8.5->"[xits-math.otf]:mode=base;script=math;language=DFLT;"<6-8.5>"[xits-math.
when the . was active
It's not an external fd file but printed from \directlua so comes to the
same thing.
I would guess that (somewhere:-) you can print using the option to use a
normalised latex catcode table rather than the default of using current
catcodes.
…On 25 January 2018 at 13:16, Will Robertson ***@***.***> wrote:
Yes, I didn’t have long to look earlier, and when I saw the dot being seen
as active even after it had been tokenised as an other I could tell
something strange was happening...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#443 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABNcArPcrOEKHdsc8CrywepDYKmhH-hLks5tOH6ngaJpZM4RrUlh>
.
|
|
Ah, this has to be fixed in fontspec, sorry. There's a (At some point I looked into removing that function but wanted to keep things simple. I'll leave this issue open until that happens, at which point I'll add a test file. |
I confirm that the latex3/fontspec@5372058 patch fixes the failed test lualatex build, when I apply it to TeXLive2017 fontspec 2.6g TL revision number 45732 |
Description
This provokes a failed PDF build using XeTeX/LuaTeX
(edit: also when using
\setmathfont{texgyrepagella-math.otf}
or even no setmathfont at all, as long asunicode-math
is loaded)I observe this with TeXLive unicode-math rev46300 2018-01-13 (hmm I god this date from
tlmgr info unicode-math
ascat-date: 2018-01-13 15:04:43 +0100
and doing this with rev45845 gives2017-11-18 12:52:03 +0100
; the date(2018-01-15 23:06)
below is presumably the date when I updated my TL2017 and unicode-math with it...)After
above test file compiles fine with both Unicode engines.
I thought the problem was with luatex because a trace show me a directlua and I figured perhaps it should be
\string.
therein,but then I checked that also xetex build fails, and I did not investigate more.edit sorry I got fooled due to many tasks to do by emacs/auctex not having reparsed my file variable, or did some other mistake and erroneously reported a xetex issue. This is only a luatex one, and then my guess is that
\string.
in the directlua calls will fix it. (not tested) Make it\string<space>.
in case catcode is letter... ah no, then the space may be active, ok so\detokenize{.}
hopefully dot will not have catcode of closing brace...... or perhaps we need to understand if really it is directlua and why it would use the current catcode of dot...
Check/indicate
The text was updated successfully, but these errors were encountered: