summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luatexja/ltj-compat-ptex.sty
blob: 956a0e95bc1d542e1e931cd14f54b9328d9d6960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
%
% ltj-compat-ptex.sty
%

%! これは外から読まれない
%% Avoid multiple loading.
\csname luatexjacompatptexLoaded\endcsname
\edef\ltj@compat@ptex@AtEnd{%
\catcode64=\the\catcode64%
\endlinechar=\the\endlinechar
\relax}
\catcode64=11 %<@>
\endlinechar=-1 %
\def\luatexjacompatptexLoaded{\endinput}

%% Check if LaTeX is used.
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname RequirePackage\endcsname\relax %<*!LaTeX>
  \expandafter\let\csname ifltj@in@latex\expandafter\endcsname
    \csname iffalse\endcsname
\else                           %<*LaTeX>
  \expandafter\let\csname ifltj@in@latex\expandafter\endcsname
    \csname iftrue\endcsname
  \NeedsTeXFormat{LaTeX2e}
  \ProvidesPackage{ltj-compat-ptex}[2013/05/14]
\fi                             %</LaTeX>

%% Load prerequisite packages.
\endlinechar=13 %
\ifltj@in@latex                 %<*LaTeX>
  \RequirePackage{infwarerr}  [2010/04/08] % v1.3
  \RequirePackage{ltxcmds}    [2011/11/09] % v1.22
  \RequirePackage{xkeyval}    [2012/10/14] % v2.6b
\else                           %<*!LaTeX>
  \input infwarerr.sty
  \input ltxcmds.sty
  \input xkeyval
\fi                             %</LaTeX>
\endlinechar=-1 %

\ifx\luatexjacompatLoaded\@undefined
  \@PackageError{luatexja}
   {This file must be loaded through 'luatexja-compat'}
   {\InfWarErr@ehc}
\fi

%%------------------

\endlinechar=13
%! ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
\def\getprebreakpenalty#1{\prebreakpenalty#1 }
\def\getpostbreakpenalty#1{\postbreakpenalty#1 }
\def\setprebreakpenalty#1#2{\prebreakpenalty#1=#2 }
\def\setpostbreakpenalty#1#2{\postbreakpenalty#1=#2 }
\def\getinhibitxspcode#1{\inhibitxspcode#1 }
\def\setinhibitxspcode#1#2{\inhibitxspcode#1=#2 }
\def\getxspcode#1{\xspcode#1 }
\def\setxspcode#1#2{\xspcode#1=#2 }

%\endinput
%! ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑

%%------------------ all done
\ltj@compat@ptex@AtEnd
\endinput
%% EOF