Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-lltjext.sty

raw
1 %%
2 %% This is file `lwarp-lltjext.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `lltjext')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18 \LWR@ProvidesPackagePass{lltjext}[2018/10/07]
19 \protected\def\yoko{%
20 \directlua{luatexja.direction.set_list_direction(4, 'yoko')}%
21 }
22 \protected\def\tate{\yoko}
23 \protected\def\dtou{\yoko}
24 \protected\def\utod{\yoko}
25
26 \define@key[ltj]{japaram}{direction}{}
27
28 \yoko
29
30 \DeclareExpandableDocumentCommand{\rensuji}{s o m}{#3}
31
32 \DeclareDocumentCommand{\layoutfloat}{d() o m}{}
33
34 \DeclareDocumentCommand{\DeclareLayoutCaption}{m d<> d() o}{}
35
36 \LetLtxMacro\pcaption\caption
37
38 \DeclareDocumentCommand{\layoutcaption}{d<> d() o}{}
39
40 \let\captiondir\relax
41 \RenewDocumentEnvironment{LWR@HTML@minipage}{d<> O{t} O{} O{t} m}
42 {\LWR@HTML@sub@minipage{#2}{#3}{#4}{#5}}
43 {\endLWR@HTML@sub@minipage}
44
45 \RenewDocumentCommand{\LWR@HTML@parbox}{d<> O{t} O{} O{t} m +m}
46 {
47 \LWR@traceinfo{parbox of width #4}%
48 \begin{minipage}[#2][#3][#4]{#5}%
49 #6
50 \end{minipage}%
51 }
52
53 \RenewDocumentCommand{\pbox}{d<> O{0pt} O{c} m}{%
54 \global\booltrue{LWR@minipagefullwidth}%
55 \parbox{#2}{#4}%
56 }
57
58 \endinput
59 %%
60 %% End of file `lwarp-lltjext.sty'.