blob: e080da8a5bd1442f2c28444112a9a718704a6338 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
% \iffalse meta-comment
%
%% File: l3final.dtx Copyright (C) 1990-2015 The LaTeX3 Project
%%
%% It may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License (LPPL), either version 1.3c of this
%% license or (at your option) any later version. The latest version
%% of this license is in the file
%%
%% http://www.latex-project.org/lppl.txt
%%
%% This file is part of the "l3kernel bundle" (The Work in LPPL)
%% and all files in that bundle must be distributed together.
%%
%% The released version of this bundle is available from CTAN.
%%
%% -----------------------------------------------------------------------
%%
%% The development version of the bundle can be found at
%%
%% http://www.latex-project.org/svnroot/experimental/trunk/
%%
%% for those people who are interested.
%%
%%%%%%%%%%%
%% NOTE: %%
%%%%%%%%%%%
%%
%% Snapshots taken from the repository represent work in progress and may
%% not work or may contain conflicting material! We therefore ask
%% people _not_ to put them into distributions, archives, etc. without
%% prior consultation with the LaTeX3 Project.
%%
%% -----------------------------------------------------------------------
%
%<*driver>
\documentclass[full]{l3doc}
\GetIdInfo$Id: l3final.dtx 6223 2015-11-03 14:50:28Z joseph $
{L3 Experimental format finalisation}
\begin{document}
\DocInput{\jobname.dtx}
\end{document}
%</driver>
% \fi
%
% \title{^^A
% The \pkg{l3final} package\\ Format finalisation^^A
% \thanks{This file describes v\ExplFileVersion,
% last revised \ExplFileDate.}^^A
% }
%
% \author{^^A
% The \LaTeX3 Project\thanks
% {^^A
% E-mail:
% \href{mailto:latex-team@latex-project.org}
% {latex-team@latex-project.org}^^A
% }^^A
% }
%
% \date{Released \ExplFileDate}
%
% \maketitle
%
% \begin{documentation}
%
% This module is the end of the \LaTeX3 format file. Currently, there
% is not a lot happening here.
%
% \end{documentation}
%
% \begin{implementation}
%
% \section{\pkg{l3final} Implementation}
%
% \begin{macrocode}
%<*initex>
% \end{macrocode}
%
% \subsection{Temporary hacks}
%
% \begin{macro}{\T1/lmr/m/n/10}
% For \emph{testing only} provide some kind of output: for that we
% need a font. At present, select Latin Modern Roman at 10\,pt:
% entirely arbitrary but at least usable.
% \begin{macrocode}
\tex_everypar:D \exp_after:wN
{
\exp_after:wN \tex_font:D \cs:w T1/lmr/m/n/10 \cs_end:
= ec-lmr10 \scan_stop:
\use:c { T1/lmr/m/n/10 }
}
% \end{macrocode}
% \end{macro}
%
% Produce PDF output if possible (easier testing) and set some kind of
% horizontal width: the one here is the \LaTeXe{} default. A parfill is
% also useful so we get some kind of sensible paragraphs.
% \begin{macrocode}
\dim_set:Nn \tex_hsize:D { 345pt }
\skip_set:Nn \tex_parfillskip:D { 0pt plus 1fil }
\cs_if_exist:NT \pdftex_pdfoutput:D
{ \int_set:Nn \pdftex_pdfoutput:D { 1 } }
% \end{macrocode}
%
% \begin{macro}{\stop}
% A way out of the run without needing to switch to the code environment.
% \begin{macrocode}
\cs_set_eq:NN \stop \tex_end:D
% \end{macrocode}
% \end{macro}
%
% \subsection{Final tasks}
%
% \begin{macro}{\par}
% \TeX{} has a nasty habit of inserting a command with the name \cs{par}
% so we had better make sure that \cs{par} has a definition.
% \begin{macrocode}
\cs_set_eq:NN \par \tex_par:D
% \end{macrocode}
% \end{macro}
%
% The very last job is to dump the format, taking care to first leave
% the code environment and set the appropriate flag.
% \begin{macrocode}
\use:n
{
\bool_set_false:N \l__kernel_expl_bool
\char_set_catcode_space:n { 9 } % tab
\char_set_catcode_space:n { 32 } % space
\char_set_catcode_active:n { 34 } % double quote
\char_set_catcode_active:n { 36 } % dollar
\char_set_catcode_active:n { 38 } % ampersand
\char_set_catcode_other:n { 58 } % colon
\char_set_catcode_active:n { 94 } % circumflex
\char_set_catcode_active:n { 95 } % underscore
\char_set_catcode_other:n { 124 } % pipe
\char_set_catcode_active:n { 126 } % tilde
\tex_endlinechar:D = 13 \scan_stop:
\tex_newlinechar:D = 10 \scan_stop:
\tex_dump:D
}
% \end{macrocode}
%
% \begin{macrocode}
%</initex>
% \end{macrocode}
%
% \end{implementation}
%
%\PrintIndex
|