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
|
%%
%% This is file `semantic.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% semantic.dtx (with options: `general')
%%
%% IMPORTANT NOTICE:
%%
%% For the copyright see the source file.
%%
%% Any modified versions of this file must be renamed
%% with new filenames distinct from semantic.sty.
%%
%% For distribution of the original source see the terms
%% for copying and modification in the file semantic.dtx.
%%
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%%
%% semantic.dtx (c)1995--2002 Peter Møller Neergaard and
%% Arne John Glenstrup
%%
\NeedsTeXFormat{LaTeX2e}
\newcommand{\semanticVersion}{2.0(epsilon)}
\newcommand{\semanticDate}{2003/10/28}
\ProvidesPackage{semantic}
[\semanticDate\space v\semanticVersion\space]
\typeout{Semantic Package v\semanticVersion\space [\semanticDate]}
\typeout{CVSId: $Id: semantic.dtx,v 1.11 2003/10/28 13:45:57 turtle Exp $}
\newcounter{@@conflict}
\newcommand{\@semanticNotDefinable}{%
\typeout{Command \@backslashchar\reserved@a\space already defined}
\stepcounter{@@conflict}}
\newcommand{\@oldNotDefinable}{}
\let\@oldNotDefinable=\@notdefinable
\let\@notdefinable=\@semanticNotDefinable
\newcommand{\TestForConflict}{}
\def\TestForConflict#1{\sem@test #1,,}
\newcommand{\sem@test}{}
\newcommand{\sem@tmp}{}
\newcommand{\@@next}{}
\def\sem@test#1,{%
\def\sem@tmp{#1}%
\ifx \sem@tmp\empty \let\@@next=\relax \else
\@ifdefinable{#1}{} \let\@@next=\sem@test \fi
\@@next}
\TestForConflict{\@inputLigature,\@inputInference,\@inputTdiagram}
\TestForConflict{\@inputReservedWords,\@inputShorthand}
\TestForConflict{\@ddInput,\sem@nticsLoader,\lo@d}
\def\@inputLigature{\input{ligature.sty}\message{ math mode ligatures,}%
\let\@inputLigature\relax}
\def\@inputInference{\input{infernce.sty}\message{ inference rules,}%
\let\@inputInference\relax}
\def\@inputTdiagram{\input{tdiagram.sty}\message{ T diagrams,}%
\let\@inputTdiagram\relax}
\def\@inputReservedWords{\input{reserved.sty}\message{ reserved words,}%
\let\@inputReservedWords\relax}
\def\@inputShorthand{\input{shrthand.sty}\message{ short hands,}%
\let\@inputShorthand\relax}
\toks1={}
\newcommand{\@ddInput}[1]{%
\toks1=\expandafter{\the\toks1\noexpand#1}}
\DeclareOption{ligature}{\@ddInput\@inputLigature}
\DeclareOption{inference}{\@ddInput\@inputInference}
\DeclareOption{tdiagram}{\@ddInput\@inputTdiagram}
\DeclareOption{reserved}{\@ddInput\@inputReservedWords}
\DeclareOption{shorthand}{\@ddInput\@inputLigature
\@ddInput\@inputShorthand}
\ProcessOptions*
\typeout{Loading features: }
\def\sem@nticsLoader{}
\edef\lo@d{\the\toks1}
\ifx\lo@d\empty
\@inputLigature
\@inputInference
\@inputTdiagram
\@inputReservedWords
\@inputShorthand
\else
\lo@d
\fi
\typeout{and general definitions.^^J}
\let\@ddInput\relax
\let\@inputInference\relax
\let\@inputLigature\relax
\let\@inputTdiagram\relax
\let\@inputReservedWords\relax
\let\@inputShorthand\relax
\let\sem@nticsLoader\realx
\let\lo@d\relax
\TestForConflict{\@dropnext,\@ifnext,\@ifn,\@ifNextMacro,\@ifnMacro}
\TestForConflict{\@@maxwidth,\@@pLineBox,\if@@Nested,\@@cBox}
\TestForConflict{\if@@moreLines,\@@pBox}
\def\@ifnext#1#2#3{%
\let\reserved@e=#1\def\reserved@a{#2}\def\reserved@b{#3}\futurelet%
\reserved@c\@ifn}
\def\@ifn{%
\ifx \reserved@c \reserved@e\let\reserved@d\reserved@a\else%
\let\reserved@d\reserved@b\fi \reserved@d}
\def\@ifNextMacro#1#2{%
\def\reserved@a{#1}\def\reserved@b{#2}%
\futurelet\reserved@c\@ifnMacro}
\def\@ifnMacro{%
\ifcat\noexpand\reserved@c\noexpand\@ifnMacro
\let\reserved@d\reserved@a
\else \let\reserved@d\reserved@b\fi \reserved@d}
\newcommand{\@dropnext}[2]{#1}
\ifnum \value{@@conflict} > 0
\PackageError{Semantic}
{The \the@@conflict\space command(s) listed above have been
redefined.\MessageBreak
Please report this to turtle@bu.edu}
{Some of the commands defined in semantic was already defined %
and has\MessageBreak now be redefined. There is a risk that %
these commands will be used\MessageBreak by other packages %
leading to spurious errors.\MessageBreak
\space\space Type <return> and cross your fingers%
}\fi
\let\@notdefinable=\@oldNotDefinable
\let\@semanticNotDefinable=\relax
\let\@oldNotDefinable=\relax
\let\TestForConflict=\relax
\let\@endmark=\relax
\let\sem@test=\relax
\newdimen\@@maxwidth
\newbox\@@pLineBox
\newbox\@@cBox
\newbox\@@pBox
\newif\if@@moreLines
\newif\if@@Nested \@@Nestedfalse
\endinput
%%
%% End of file `semantic.sty'.
|