summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/latexconfig/xelatex.ini')
-rw-r--r--Master/texmf-dist/tex/latex/latexconfig/xelatex.ini21
1 files changed, 17 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini b/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini
index 39769ed0337..9e86c445c3c 100644
--- a/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini
+++ b/Master/texmf-dist/tex/latex/latexconfig/xelatex.ini
@@ -5,12 +5,25 @@
% Since we are generating a whatsit, not 100% compatible,
% but hopefully close enough.
%
-% JAW: Moved before latex.ltx, added \protected status
\begingroup
- \catcode`\{=1 %
- \catcode`\}=2 %
+ \catcode`\{=1
+ \catcode`\}=2
\protected\gdef\pdfmapfile#1{\special{pdf:mapfile #1}}
\protected\gdef\pdfmapline#1{\special{pdf:mapline #1}}
\endgroup
-\input latex.ltx \ No newline at end of file
+% "Internal" control sequence from old xelatex.ini, nevertheless used by
+% (at least) xeCJK.sty. David Carlisle says that the \count register
+% for this is hardwired to be 257, so it's easy to make an alias.
+% Thread starts at http://tug.org/pipermail/tex-live/2015-April/036640.html.
+%
+\begingroup
+ \catcode`\@=11
+ \ifx\xe@alloc@intercharclass\@undefined
+ \global\countdef\xe@alloc@intercharclass=257
+ \fi
+\endgroup
+
+% As of TL 2015, aka LaTeX2e 2015/01/01, latex.ltx includes unicode
+% letter assignments and other things previously done in the .ini.
+\input latex.ltx