Debian Codegraph @

texk/web2c/luatexdir/tex/align.h

raw
1 /* align.h
2
3 Copyright 2009 Taco Hoekwater <[email protected]>
4
5 This file is part of LuaTeX.
6
7 LuaTeX is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2 of the License, or (at your
10 option) any later version.
11
12 LuaTeX is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 License for more details.
16
17 You should have received a copy of the GNU General Public License along
18 with LuaTeX; if not, see <http://www.gnu.org/licenses/>. */
19
20
21 #ifndef ALIGN_H
22 # define ALIGN_H 1
23
24 /* We enter `\.{\\span}' into |eqtb| with |tab_mark| as its command code,
25 and with |span_code| as the command modifier. This makes \TeX\ interpret it
26 essentially the same as an alignment delimiter like `\.\&', yet it is
27 recognizably different when we need to distinguish it from a normal delimiter.
28 It also turns out to be useful to give a special |cr_code| to `\.{\\cr}',
29 and an even larger |cr_cr_code| to `\.{\\crcr}'.
30
31 The end of a template is represented by two ``frozen'' control sequences
32 called \.{\\endtemplate}. The first has the command code |end_template|, which
33 is |>outer_call|, so it will not easily disappear in the presence of errors.
34 The |get_x_token| routine converts the first into the second, which has |endv|
35 as its command code.
36 */
37
38 # define tab_mark_cmd_code 1114113 /* {|biggest_char+2|} */
39 # define span_code 1114114 /* {|biggest_char+3|} */
40 # define cr_code (span_code+1) /* distinct from |span_code| and from any character */
41 # define cr_cr_code (cr_code+1) /* this distinguishes \.{\\crcr} from \.{\\cr} */
42
43
44 extern void init_align(void);
45 extern void initialize_alignments(void);
46
47 extern boolean fin_col(void);
48 extern void fin_row(void);
49
50 extern void align_peek(void);
51 extern void insert_vj_template(void);
52
53
54 #endif