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
|
% Copyright: Sven Mattisson
% 851203 Department of Applied Electronics
% Lund University
% Box 118
% S-221 00 Lund sven@tde.lu.se
% Sweden ...!enea!tde.lu.se!sven
%
% $Header: slatex.tex,v 1.3 86/11/04 21:05:01 sven Exp $
%
% $Log: slatex.tex,v $
% Revision 1.3 86/11/04 21:05:01 sven
% Fixed !input<file> bug, by letting \bgroup and \egroup to the new
% group characters. /Sven 861104
%
% Revision 1.2 86/09/14 00:19:45 sven
% Initial revision, LaTeX 2.09
%
% Revision 1.1 86/01/15 22:36:18 sven
% Initial revision, LaTeX 2.08
%
%
% slatex.tex. Change LaTeX such that national characters '}', '{', '|',
% ']', '[' and '\' have no special meaning and install the Swedish
% symbols for these characters.
\everyjob{\typeout{SLaTeX 1.0, December 18 1987, LTH Applied Electronics}}
\immediate\write10{SLaTeX 1.0, December 18 1987, LTH Applied Electronics}
% To accomplish this the TeX special characters '\', '{' and '}' are
% replaced with '!', '<' and'>' respectively. Furthermore the LaTeX
% optional grouping characters '[' and ']' are substituted for '(' and ')'.
% LaTeX makes special use of '(' and ')' in coordinates so the coordinate
% delimiters are changed to '"' such that what used to be (x,y) is now "x,y".
% Also '|' in array environments is substituted for ':'. The .sty files
% for the modified LaTeX uses the suffix .sst.
% lplain.tex and latex.tex are left untouched except for the very last lines
% in lplain where this file is included. The macros needing attention are
% copied to the appropriate file, see below, where the substitutions are
% carried out. Several files focusing on one substitution are used to
% make it easy to change the choise of replacement character. However some
% of the changes migrates to the following files (especially the parens).
\makeatletter % temporarily make at signs behave as letters
\input paren.tex
% parens must now replace brackets (to print brackets us \lbrack etc.)
% in all files below.
\input dquote.tex
\input sst.tex
\input bar.tex
\input bang.tex
\input swedish.tex
% Now '!', '<' and '>' has to be used instead of '\', '{' and '}'.
!input write.tex
% The following macro sets up the verbatim environment
!begingroup !catcode `|=0 !catcode `(= 1
!catcode`)=2 !catcode `!<=12 !catcode `!>=12
!catcode`!!=12 |gdef|@xverbatim#1!end<verbatim>(#1|end(verbatim))
|gdef|@sxverbatim#1!end<verbatim*>(#1|end(verbatim*))
|endgroup
!makeatother % at signs are no longer letters
|