summaryrefslogtreecommitdiff
path: root/support/rtflatex/rtflatex.sty
blob: 7bcbc3609d51c481a986c1e7183d87b5805376c3 (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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
\def\NFdeft{\rm}
\def\bfit{\bf\itshape}
\def\ttit{\tt\slshape}
\def\ttsl{\tt\slshape}
\def\ttbf{\tt\bfseries}
\def\sfit{\sf\itshape}
\def\bfsl{\bf\slshape}
\def\sfsl{\sf\slshape}
\def\sfbf{\sf\bfseries}
\def\sfbfit{\sf\bfseries\itshape}
\def\sfbfsl{\sf\bfseries\slshape}

\def\RTFf#1{}
\def\RTFrtf#1{\immediate\write15{RTFLaTeX by D. Taupin, your version #1}}
\def\RTFdeff#1{}
\def\RTFcolortbl#1{}
\def\RTFfonttbl#1{}
\def\RTFstylesheet#1{}
\def\RTFinfo#1{}

\def\RTFbox{}\def\RTFbrsp#1{}\def\RTFpicscalex#1{}\def\RTFpicscaley#1{}
\def\RTFbrdrs{}\def\RTFbrdrsh{}\def\RTFflddirty{}\def\RTFobjemb{}
\def\RTFobjclass{}\def\RTFobjdata{}\def\RTFresult{}
\def\RTF@picwgoal#1{}\def\RTF@pichgoal#1{}
\def\RTFbrdrw#1{}\def\RTFbfsp#1{}
\def\RTFmacpict{\def\RTFpicwgoal{\RTF@picwgoal}%
                \def\RTFpichgoal{\RTF@pichgoal}%
                \def\RTFpicw{\RTF@picw}%
                \def\RTFpich{\RTF@pich}%
}
\def\RTFwmetafile#1{\def\RTFpicwgoal{\RTFobjw}%
                \def\RTFpichgoal{\RTFobjh}%
                \def\RTFpicw{\RTF@picwgoal}%
                \def\RTFpich{\RTF@pichgoal}%
}
\def\RTFobjw#1{\edef\RTF@picw{#1\RTFtwips}}
\def\RTF@picw#1{\edef\RTF@picw{#1\RTF@picunit}}
\def\RTFobjh#1{\hbox{\vrule\vbox to #1\RTFtwips{\hrule width\RTF@picw\vss
  \hbox to \RTF@picw{\hss\tt\RTF@pict\hss}\vss\hrule}\vrule}}
\def\RTF@pich#1{\hbox{\vrule\vbox to #1\RTF@picunit{\hrule width\RTF@picw\vss
  \hbox to \RTF@picw{\hss\tt\RTF@pict\hss}\vss\hrule}\vrule}}
 %\check
\def\RTFoutl{\bf\sf}
\def\RTFsbasedon#1{}
\def\RTFtwoside{\global\@twosidetrue}
\newdimen\RTF@tx
\newdimen\RTFtwips
\newdimen\RTF@picunit
\global\RTFtwips=1pt \global\divide\RTFtwips by 20\relax
\RTF@picunit=1pt
 %\check
\def\RTFemdash{{---}}
\def\RTFendash{{--}}
\def\RTFpaperw#1{}
\def\RTFpaperh#1{}
\def\RTFsnext#1{}
\def\RTFfield{}
\def\RTFfldinst{}
\def\RTFfldrslt{}
\def\RTFtitlepg{}
\def\RTFfracwidth{}

\def\RTFpgnstart#1{\global\count0=#1\relax}
 %\check
%\def\RTFfi#1{\parindent #1\RTFtwips}
\def\RTFfi#1{}

\def\RTFqc{}
\def\RTFup#1{}
\def\RTFdeflang#1{\immediate\write15{\noexpand\deflang{#1} ignored.}}
\def\RTFri#1{\immediate\write15{\noexpand\ri{#1} ignored.}}
\def\RTFli#1{\immediate\write15{\noexpand\li{#1} ignored.}}
\def\RTFlang#1{\immediate\write15{\noexpand\lang{#1} ignored.}}
\def\RTFmargl#1{\immediate\write15{\noexpand\margl{#1} ignored.}}
\def\RTFgutter#1{\immediate\write15{\noexpand\gutter{#1} ignored.}}
 %\check
\def\RTFheader#1{\markboth{#1}{#1}\gdef\theRTFheader{#1}}
\def\RTFheaderf#1{\immediate\write15{\noexpand\headerf{...} ignored.}}
\def\RTFheaderl#1{\RTFtwoside\markboth{#1}{\theRTFheader}}
\def\RTFheaderr#1{\RTFtwoside\markright{#1}}
 %\check
\def\RTFfooter#1{\immediate\write15{\noexpand\footer{#1} ignored.}}
\def\RTFfooterf#1{\immediate\write15{\noexpand\footerf{#1} ignored.}}
\def\RTFfooterl#1{\immediate\write15{\noexpand\footerl{#1} ignored.}}
\def\RTFfooterr#1{\immediate\write15{\noexpand\footerr{#1} ignored.}}
\def\RTFmargr#1{\immediate\write15{\noexpand\margr{#1} ignored.}}
\def\RTFmargt#1{\immediate\write15{\noexpand\margt{#1} ignored.}}
\def\RTFmargb#1{\immediate\write15{\noexpand\margb{#1} ignored.}}
\def\RTFdxfrtext#1{\immediate\write15{\noexpand\dxfrtext{#1} ignored.}}
\def\RTFdeftab#1{\immediate\write15{\noexpand\deftab{#1} ignored.}}
\def\RTFftnstart#1{\immediate\write15{\noexpand\ftnstart{#1} ignored.}}
\def\RTFcols#1{\immediate\write15{\noexpand\cols{#1} ignored.}}
\def\RTFcolsx#1{\immediate\write15{\noexpand\colsx{#1} ignored.}}
\def\RTFfs#1{\immediate\write15{\noexpand\fs{#1} ignored.}}
\def\RTFcf#1{\immediate\write15{\noexpand\cf{#1} ignored.}}
\def\RTFbinfsxn#1{\immediate\write15{\noexpand\binfsxn{#1} ignored.}}
\def\RTFbinsxn#1{\immediate\write15{\noexpand\binsxn{#1} ignored.}}
\def\RTFbrdrbtw{\immediate\write15{\noexpand\brdrbtw ignored.}}
\def\RTFfldinstrefsymbol#1{\immediate\write15{\noexpand\fldinstrefsymbol{#1} ignored.}}
\def\RTFtrowd{\immediate\write15{\noexpand\trowd ignored.}}
\def\RTFtrleft#1{\immediate\write15{\noexpand\trleft{#1} ignored.}}
\def\RTFclbrdrb{\immediate\write15{\noexpand\clbrdrb ignored.}}
\def\RTFcellx#1{\immediate\write15{\noexpand\cellx{#1} ignored.}}
\def\RTFintbl{\immediate\write15{\noexpand\intbl ignored.}}
%\def\RTFcell{\immediate\write15{\noexpand\cell ignored.}}
\let\RTFcell\relax
\def\RTFrow{\immediate\write15{\noexpand\row ignored.}}
\def\RTFfldinstrefbsymbol#1{\immediate\write15{\noexpand\fldinstrefbsymbol{#1} ignored.}}
 %\check

\def\RTFsectd{}

\def\RTFobject{\RTF@picunit=\RTFtwips\RTFpict}
\def\RTFpict#1{\edef\RTF@pict{#1}}
 %\check 

\def\RTFpagebb{\clearpage}

\def\RTFlinemod#1{}
\def\RTFlinex#1{}
\def\RTFheadery#1{}
\def\RTFfootery#1{}
\def\RTFul{\sl}
\def\RTFtqc{\null}
\def\RTFtqdec{\hskip 1em{}}
\def\RTFhrule{\leavevmode\vrule height 0.4pt depth 0pt width }
\global\emergencystretch 40pt
\ifx\r\undefined\write16{\noexpand\r undefined ! reset to \noexpand
  \accent 23}\def\r#1{{\accent 23 #1}}\fi \def\degree{\r{}}
\ifx\undefined\HUGE\def\HUGE{\Huge}\fi
 %\check



\def\Alpha{\hbox{\rm A}}
\def\Beta{\hbox{\rm B}}
\def\Epsilon{\hbox{\rm E}}
\def\Zeta{\hbox{\rm Z}}
\def\Eta{\hbox{\rm H}}
\def\Iota{\hbox{\rm I}}
\def\Kappa{\hbox{\rm K}}
\def\Mu{\hbox{\rm M}}
\def\Nu{\hbox{\rm N}}
\def\Omicron{\hbox{\rm O}}
\def\Rho{\hbox{\rm P}}
\def\Tau{\hbox{\rm T}}
\def\varUpsilon{\hbox{\rm Y}}
\def\Chi{\hbox{\rm X}}

\def\RTFac#1{\hbox{\tt\char 92RTFac[#1]}}

\def\RTFaccol{\hbox{\tt\char 92RTFaccol[]}}

\def\closebr#1{}

 %\check
\newdimen\boxedsize
\newbox\boxedbox
\def\boxed#1{\setbox\boxedbox\hbox{#1}\boxedsize=\dp\boxedbox
    \advance\boxedsize by 3.4pt\leavevmode
    \raise -\boxedsize\vbox{\hrule\hbox{\vrule\kern3pt
    \vbox{\kern3pt\box\boxedbox\kern3pt}\kern3pt\vrule}\hrule}}

\def\beginparagraph{\leavevmode\strut}

\def\plainitem{\par \hangindent 1.0\parindent \textindent}

\def\registered{\protect \pregistered}
 \def\pregistered{{\sc \ooalign {\hfil \raise .07ex\hbox {r}\hfil \crcr
\mathhexbox 20D}}}

\def\trademark{\protect \ptrademark}
 \def\ptrademark{{\sc \leavevmode \raise .07ex\hbox {tm}}}

\def\RTFsetfontheading{{\rm\def\wordsplita##1##2##3.{##1}%
\def\wordsplitb##1##2##3.{##2}%
 %
\xdef\FontHdg{\expandafter\wordsplita\fontname\the\font.}
\xdef\FontHdge{\expandafter\wordsplitb\fontname\the\font.}}
 %
\immediate\write16{ Fonts used:\FontHdg\FontHdge}\relax}