summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-03-12 13:17:28 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-03-12 13:17:28 +0000
commit9c68f13f4c2f4a100ac13fb312b26d91ea47bca4 (patch)
treecbf445483988e808dc1c12e5fc7f05566ffff331 /Master/texmf-dist/tex/latex
parent12232ba1569e6131e385863226ed503750b0c9e7 (diff)
Fix problem with \typein using LuaTeX, see
http://tex.stackexchange.com/questions/12435/incompatibilities-between-lualatex-and-typein git-svn-id: svn://tug.org/texlive/trunk@21697 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/latexconfig/dvilualatex.ini3
-rw-r--r--Master/texmf-dist/tex/latex/latexconfig/lualatex-patch-kernel.tex26
-rw-r--r--Master/texmf-dist/tex/latex/latexconfig/lualatex.ini3
3 files changed, 32 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/latexconfig/dvilualatex.ini b/Master/texmf-dist/tex/latex/latexconfig/dvilualatex.ini
index fc738b6222c..f4d3925ce88 100644
--- a/Master/texmf-dist/tex/latex/latexconfig/dvilualatex.ini
+++ b/Master/texmf-dist/tex/latex/latexconfig/dvilualatex.ini
@@ -17,6 +17,9 @@
\scrollmode
\input latex.ltx
+% some commands in the kernel need patchin to work with luatex
+\input lualatex-patch-kernel.tex
+
% latex.ltx sets \everyjob, so this must come afterwards
\input lualatexquotejobname.tex
diff --git a/Master/texmf-dist/tex/latex/latexconfig/lualatex-patch-kernel.tex b/Master/texmf-dist/tex/latex/latexconfig/lualatex-patch-kernel.tex
new file mode 100644
index 00000000000..eee38bb8b79
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/latexconfig/lualatex-patch-kernel.tex
@@ -0,0 +1,26 @@
+% $Id: lualatexquotejobname.tex 18968 2010-06-14 11:22:59Z mpg $
+% Manuel Pegourie-Gonnard, originally written 2010. WTFPL v2.
+%
+% Misc. patches to commands in the LaTeX kernel for LuaTeX.
+
+\makeatletter
+
+% \endlinechar must always be < 127
+%
+% mpg: this was the only occurence of such an assignement in the kernel
+% (checked \newlinechar too)
+%
+% mpg: the +10000/-10000 breaks, and we want to avoid munging
+% \@tempcnta globally, so use a group with a few \expandafter's
+\def\@xtypein[#1]#2{%
+ \typeout{#2}%
+ %%\advance\endlinechar\@M
+ \begingroup \endlinechar\m@ne
+ \read\@inputcheck to#1%
+ \expandafter\endgroup
+ \expandafter\def\expandafter#1\expandafter{#1}%
+ %%\advance\endlinechar-\@M
+ \@typein}
+
+\makeatother
+\endinput
diff --git a/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini b/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini
index d068a7cb29b..04f18dae475 100644
--- a/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini
+++ b/Master/texmf-dist/tex/latex/latexconfig/lualatex.ini
@@ -16,6 +16,9 @@
\scrollmode
\input latex.ltx
+% some commands in the kernel need patchin to work with luatex
+\input lualatex-patch-kernel.tex
+
% latex.ltx sets \everyjob, so this must come afterwards
\input lualatexquotejobname.tex