summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/texsis/base/TXSfmts.tex
blob: e383f23db5a830e99752f78de45552cc8e2eb899 (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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
%% file: TXSfmts.tex - Special Document Formats - TeXsis version 2.18
%% @(#) $Id: TXSfmts.tex,v 18.0 1999/07/09 17:24:29 myers Exp $
%======================================================================*
%
%       Several standard document formats are defined in TeXsis. All of
% these set up the appropriate dimensions, title page macros, etc., and
% call \texsis:
%
%       \preprint               Preprint format. Makes a standard title
%                               page from \title, \author, etc. and puts the
%                               manuscript on the following pages.
%
%       \Manuscript             Like \preprint, but printed with 
%                               \TrueDoubleSpacing for submission to 
%                               journals like Physical Review
%
%       \paper                  Like \preprint but puts \title, \author,
%                               etc. material at top of first page
%                               instead of on a separate title page.
%
%       \book                   For books, with chapters and sections,
%                               and odd/even page numbering
%
%       \slides                 Slides/transparencies format, in 24 pt type,
%                               special formatting.
%
%       \letter                 Standard business letter; see TXSletr.tex
%
%       \memo                   Standard memo; see TXSmemo.tex.
%
%       \referee                Referee reports; similar to \memo
%
%       \twinprint              Preprint in twin page format, with
%                               title page in full size landscape.
%
%       \twinformat             Twin page formatting for other styles.
%
%       More specialized document layouts are available in ``style'' 
%  files, which are only loaded when they are called for.  This is 
%  accomplished with the \autoload macro described below.  It's possible 
%  (and easy) to add new style files for any desired document layout.
%
%       The specialized document layouts which are currently loaded 
%  from style files [named in brackets] are:
%
%       \nuclproc               The ``NUCLPROC'' style for Nuclear
%                               Physics Proceedings. [nuclproc.txs]
%
%       \NorthHolland           North Holland proceedings format,
%                               single column, left justified titles.
%                               [Elsevier.txs]
%
%       \NorthHollandTwo        North Holland double column proceedings
%                               format, left justified titles. [Elsevier.txs]
%
%       \WorldScientific        World Scientific proceedings format.
%                               [WorldSci.txs]
%
%       \IEEEproceedings        Conference paper in double column IEEE
%                               format. [IEEE.txs]
%
%       \IEEEreduced            Same as \IEEEproceedings but reduced
%                               by 75% to fit on 8.5 x 11 paper. [IEEE.txs]
%
%       \AIPproceedings         Conference paper in the American Institute
%                               of Physics (AIP) format. [AIP.txs]
%
%======================================================================*
\message{Layout macros.}
\catcode`@=11
     
%--------------------------------------------------*
% Paper Layout: This prints the \titlepage material at the top of
% the first page, not on a separate page.
     
\def\paper{%                            % Paper:
   \auxswitchtrue                       % save tags and labels in .aux file
   \refswitchtrue                       % save references in .ref file
   \texsis                              % Initialize
   \def\titlepage{%                     % \paper title page
      \bgroup                           % so changes don't leak out
      \let\title=\Title                 % \title inside \titlepage
      \let\endmode=\relax               % \endmode will end a field
      \pageno=1}%                       % title page is page 1 by default
   \def\endtitlepage{%                  % \paper end title page
      \endmode                          % end any open field
      \goodbreak\bigskip                % no new page, but maybe break here
      \egroup}%                         % everything back the way it was
   \autoparens                          % auto-sizing of parens
   \quoteon                             % automatic begin/end quotes
   }
     
\def\Tbf{\fourteenpoint\bf}%         % 14pt bold title
\def\tbf{\twelvepoint\bf}%           % 12pt bold section head

%--------------------------------------------------*
% Preprint Layout: This prints the \titlepage material on a separate
% page with a \banner at the top.
     
\def\preprint{% Document layout for Preprints
   \auxswitchtrue                       % save tags and labels in .aux file
   \refswitchtrue                       % save references in .ref file
   \texsis                              % Initialize TeXsis
   \def\titlepage{%                     % \preprint title page
      \bgroup                           % so changes don't leak out
      \pageno=1                         % title page is page 1 by default
      \let\title=\Title                 % \title inside \titlepage
      \let\endmode=\relax               % \endmode will end a field
      \banner}%                         % prints the banner at top of page 1
   \def\endtitlepage{%                  % \preprint end title page
      \endmode                          % end any open field
      \vfil\eject                       % new page
      \egroup}%                         % everything back the way it was
   \autoparens                          % auto-sizing of parens
   \quoteon                             % automatic begin/end quotes
   }
     
%--------------------------------------------------*
% \Manuscript is a layout similar to \preprint, but printed
% in \TrueDoubleSpacing and with other things set the way Physical
% Review wants them for submitted manuscripts.  For an even better
% version use \PhysRevManuscript or \PhysRev\Manuscript.

\def\Manuscript{% layout for manuscripts to be submitted to journals
   \preprint                    % start with preprint form
   \showsectIDfalse             % no section number in equation numbers
   \showchaptIDfalse            % no chapter number in equation numbers
   \def\SectionStyle##1{\uppercase       % section numbers in upper case
         \expandafter{\romannumeral ##1}}%     roman numerals
   \RomanTablestrue             % roman numerals for table numbers
   \TablesLast                  % tables at the end
   \FiguresLast                 % figures at the end
   \TrueDoubleSpacing           % wider interline spacing for manu
   \def\everyabstract{\TrueDoubleSpacing}
   \def\Tbf{\fourteenpoint\bf\TrueDoubleSpacing}%       % 14pt bold title
   \def\refFormat{\TrueDoubleSpacing}%
   }

\autoload\PhysRevManuscript{PhysRev.txs}% More better version in style file
        
%--------------------------------------------------*
% \book format is similar to \thesis but without the special 
% formatting.  Use for books, long review articles, etc.
     
\def\book{% document layout for a book or similar document
   \ContentsSwitchtrue                  % contents page ON
   \refswitchtrue                       % save references
   \auxswitchtrue                       % .AUX file for forward references
   \texsis                              % initialize TeXsis
   \RunningHeadstrue                    % running headlines
   \bookpagenumbers                     % page numbers for book binding
   \def\titlepage{%                     % \book title page
      \bgroup                           % any changes local
      \pageno=-1                        % start on page i
      \let\title=\Title                 % \title inside \titlepage
      \let\endmode=\relax               % \endmode will end a field
      \def\FootText{\relax}}%           %  no number on title page
   \def\endtitlepage{%                  % end title page for \book
      \endmode                          % end any open field
      \vfil\eject                       % end title page
      \egroup%                          % close group from \titlepage
      \pageno=1}%                       % 
   \def\abstract{%                      % abstract for \book
      \endmode                          % end previous field
      \bigskip\bigskip\medskip          % skip down some
      \bgroup\singlespaced              % abstract has same spacing
         \let\endmode=\endabstract      % to end \abstract
         \narrower\narrower             %
         \everyabstract}%               %
   \def\endabstract{%                   % end abstract for \book
      \medskip\egroup\bigskip}%         %
   \def\FootText{--\ \tenrm\folio\ --}% % for 1st page of chapter
   \def\Tbf{\sixteenpoint\bf}%          % Chapter Titles in 16pt bold
   \def\tbf{\fourteenpoint\bf}%         % Section titles in 12pt bold
   \twelvepoint                         % 12pt type for most of doc
   \doublespaced                        % double spacing
   \autoparens                          % auto-sizing of parens
   \quoteon                             % auto quote matching
   }                                    %
     
%--------------------------------------------------*
%  \thesis is loaded from a style file now because it will be
%  different at different installations.

\autoload\thesis{thesis.txs}
\autoload\UTthesis{thesis.txs}
\autoload\YaleThesis{thesis.txs}

%--------------------------------------------------*
% \letter is a letter format for typing letters, following the syntax
% in Appendix F of the TeXbook.  See TXSletr.tex for details.
     
\def\Letter{%   document format for letters
   \ContentsSwitchfalse                         % no table of contents
   \refswitchfalse                              % no reference list
   \auxswitchfalse                              % no forward references
   \texsis                                      % initialize
   \singlespaced                                % single space default
   \LetterFormat}                               % Setup using \LetterFormat

\def\letter{\Letter}                            % synonym
     
%--------------------------------------------------*
% \memo Format for memoranda, as defined in TXSmemo.tex

\def\Memo{%  document format for memos
   \ContentsSwitchfalse                         % no table of contents
   \refswitchfalse                              % no reference list
   \auxswitchfalse                              % no forward references
   \texsis                                      % initialize
   \singlespaced                                % single space default
   \MemoFormat}                                 % Setup using \MemoFormat

\def\memo{\Memo}                                % synonym

%--------------------------------------------------*
% \Referee format for Referee Reports, as defined in TXSmemo.tex

\def\Referee{% document format for referee reports
   \ContentsSwitchfalse                         % no table of contents
   \auxswitchfalse                              % no need for an .aux file
   \refswitchfalse                              % no reference list
   \texsis                                      % initialize
   \RefReptFormat}                              % Setup using \MemoFormat

\def\referee{\Referee}                          % synonym
     
%--------------------------------------------------*
%       Landscape Layout: for printing ``sideways'' on the laser printer
%
% \Landscape sets up the page size for sideways (``landscape mode'')
% printing, and calls \LandscapeSpecial to signal this to the printer.
% What signal is given to the printer driver (with \special) depends
% on which filter or driver you are using.  You may have to change
% the definition of \LandscapeSpecial to suit your installation, but
% please do this in TXSsite.tex, not this file.

\def\Landscape{% set page size for printing ``sideways''
   \texsis              % 12pt, double spaced, etc
   \hsize=9in           % wide in the side
   \vsize=6.5in         % short and stocky
   \voffset=.5in        % and a little space from the ``margin''
   \nopagenumbers       % default is no page numbering
   \LandscapeSpecial    % actually turns on landscape mode   
}

\def\landscape{\Landscape}                      % synonym
     
% \LandscapeSpecial turns on landscape mode on the laser printer.
% How this is done is very site dependent, but the default is for
% Rokicki's dvips.  Change this _in_TXSsite.tex_ if you need to.

\def\LandscapeSpecial{\special{papersize=11in,8.5in}}


%--------------------------------------------------*
%   \slides makes slides or transparencies in default 24pt type with
% sensible defaults. It also defines \bl for a blank line and
% \np for new page.
%
\def\slides{%                                   % standard stuff except 12pt:
   \quoteon                                     % automatic quote balancing on
   \autoparens                                  % automatic paren balancing on
   \ATlock                                      % now @ is no longer a letter
   \pageno=1                                    % start on page one
   \twentyfourpoint                             % 24 point type
   \doublespaced                                % double spaced
   \raggedright\tolerance=2000                  % very ragged right 
   \hyphenpenalty=500                           % hyphens are bad
   \raggedbottom                                % ragged bottom
   \nopagenumbers                               % no numbers
   \hoffset=-.25in \hsize=7.0in                 % to fit 8.5in x 10.5in
   \voffset=-.25in \vsize=9.0in                 % to fit 8.5in x 10.5in
   \parindent=30pt                              % for big type
   \def\bl{\vskip\normalbaselineskip}%          % blank line
   \def\np{\vfill\eject}%                       % new page
   \def\nospace{\nulldelimiterspace=0pt%        % autoscale...
      \mathsurround=0pt}%                       %
   \def\big##1{{\hbox{$\left##1%                % ...\big
      \vbox to2ex{}\right.\nospace$}}}%         %
   \def\Big##1{{\hbox{$\left##1%                % ...\Big
      \vbox to2.5ex{}\right.\nospace$}}}%       %
   \def\bigg##1{{\hbox{$\left##1%               % ...\bigg
       \vbox to3ex{}\right.\nospace$}}}%        %
   \def\Bigg##1{{\hbox{$\left##1%               % ...\Bigg
      \vbox to4ex{}\right.\nospace$}}}%
  }

%-----------------------------------------------------------------------
% TWIN PAGE OUTPUT - using macros in twin.txs

\autoload\twinout{twin.txs}             % two pages on one piece of paper


%      \twinprint sets up a twin column preprint, with the first page
% full with in \twelvepoint and the rest in \tenpoint \twinout format.

\def\twinprint{% preprint with two pages on one
   \preprint                                    % start with \prepriwt
   \let\t@tl@=\title                           % based on \title
   \def\title{\vskip-1.5in\t@tl@}%             % reduce space
   \let\endt@tlep@ge=\endtitlepage             % save it
   \def\endtitlepage{\endt@tlep@ge             % usual \endtitlepage
       \twinformat}%                           % twin column default
}


%      \twinformat sets up the standard defaults for \twinout, with
% 10pt fonts and no headline offset.

\def\twinformat{%                              % 2 pages/page format
   \tenpoint\doublespaced                      % ten point size
   \def\Tbf{\twelvebf}\def\tbf{\tenbf}%        % title fonts
   \headlineoffset=0pt                         % no extra offset
   \twinout}                                   % \twinout format

% >>> EOF TXSfmts.tex <<<