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

unexpected result of tex.sprint() in verbatim env. #230

Closed
dohyunkim opened this issue Mar 2, 2016 · 2 comments
Closed

unexpected result of tex.sprint() in verbatim env. #230

dohyunkim opened this issue Mar 2, 2016 · 2 comments

Comments

@dohyunkim
Copy link
Contributor

I get a bunch of unexpected \FontspecSetCheckBoolTrues in the pdf with the MWE compiled with lualatex:

\documentclass{article}
\usepackage{polyglossia}
\setmainfont{DejaVuSerif.ttf}
\setmonofont{DejaVuSansMono.ttf}
\setdefaultlanguage{greek}
\begin{document}
α \verb|α|
\end{document}

because tex.sprint() in fontspec.lua currently does not have optional parameter denoting a catcode table. Everything is ok with the code around line 30 in fontspec.lua being changed into the following:

local latex = luatexbase.registernumber("catcodetable@latex")
local function tempswatrue()  tex.sprint(latex,[[\FontspecSetCheckBoolTrue ]]) end
local function tempswafalse() tex.sprint(latex,[[\FontspecSetCheckBoolFalse]]) end
@wspr
Copy link
Collaborator

wspr commented Mar 6, 2016

Oops, apologies! If you could put together a pull request I'm happy to accept it directly. Many thanks

@Lenchik
Copy link

Lenchik commented Mar 6, 2016

Seems like this issue also causes ! LaTeX Error: Something's wrong--perhaps a missing \item. error when using Verbatim environment from fancyvrb package (similarly while non-english languages set in preamble). Reverting to 2.4e version of fontspec helps.

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

No branches or pull requests

3 participants