Skip to content
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

Bad interaction with shellesc #389

Closed
Evpok opened this issue Nov 8, 2019 · 4 comments
Closed

Bad interaction with shellesc #389

Evpok opened this issue Nov 8, 2019 · 4 comments

Comments

@Evpok
Copy link

@Evpok Evpok commented Nov 8, 2019

Description

When shellesc is loaded before fontspec, lualatex errors in tuenc.def, xelatex seems to be fine.

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{shellesc}
\usepackage{fontspec}

\begin{document}
hello
\end{document}

Further details

Relevant part of the log:

This is LuaTeX, Version 1.10.0 (TeX Live 2019)  (format=lualatex 2019.11.8)
<snip>
Package: shellesc 2019/10/17
<snip>
Package: fontspec 2019/10/19 v2.7d Font selection for XeLaTeX and LuaLaTeX
<snip>
File: tuenc.def 2018/08/11 v2.0j Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding TU on input line 82.

/usr/local/texlive/2019/texmf-dist/tex/latex/base/tuenc.def:119: Missing number, treated as zero.
<to be read again> 
"
l.119 ...ollar}          \UnicodeEncodingName{"0024}
                                                  
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

/usr/local/texlive/2019/texmf-dist/tex/latex/base/tuenc.def:119: Missing $ inserted.
<inserted text> 
$
l.119 ...ollar}          \UnicodeEncodingName{"0024}
                                                  
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.


/usr/local/texlive/2019/texmf-dist/tex/latex/base/tuenc.def:119: LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.119 ...ollar}          \UnicodeEncodingName{"0024}
                                                  
You're in trouble here.  Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.
@davidcarlisle
Copy link
Contributor

@davidcarlisle davidcarlisle commented Nov 8, 2019

@Evpok sorry I can reproduce, looks like a change in shellesc rather than fontspec, give me a minute..

@davidcarlisle
Copy link
Contributor

@davidcarlisle davidcarlisle commented Nov 8, 2019

Sorry, just cut and paste incompetence on my part:(

On the very last line of shellesc.sty you will find

\catcode`\"\shellesc@underscorecat

which was supposed to be restoring the catcode of _ but "restores" the catocde of " instead, making " act like a math underscore.

Please edit that line so it looks like

\catcode`\_\shellesc@underscorecat

Please could you also edit the top to say something like

\ProvidesPackage{shellesc}
       [2019/10/17 v1.0b unified shell escape interface for LaTeX (+ underscore catcode fix)]

If you could confirm that works I'll push out a update to tools as soon as possible.

@Evpok
Copy link
Author

@Evpok Evpok commented Nov 8, 2019

Yes, it works, thanks!

@davidcarlisle
Copy link
Contributor

@davidcarlisle davidcarlisle commented Nov 8, 2019

Thanks for confirming, this is fixed at
latex3/latex2e@5a229cd
and I'll make a tools release to ctan later today,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants