summaryrefslogtreecommitdiff
path: root/macros/xetex/plain/do-it-yourself-tex/FORMS+MAC-FILES/FORM-PLAIN.tex
blob: 79756b53cab29ff5ccb43ef2cb69b6d2032e9691 (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
% [FORM-PLAIN.tex]  

%      This a form that I have created over the years. Users will want to 
%      make adjustments, especially to dimensions. Note in particular that 
%      \pdfpageheight and \pdfpagewidth, as well as \hsize, \vsize and the 
%      PSTRICKS form (after \bye) are given in inches.   The reason for this
%      is that the paper that I use is   "8.5 in x 11.0 in" ("letter").  Other 
%      measurements are in cm and points.
%
%    Because this is a presentation form I have added explanations. The
%    symbol !! indicates that this is a dimension etc. that you should 
%    consider changing.

%%%%%%%%%%%%%%%%   XETEX INPUTS    %%%%%%%%%%%%%

%  these macro files are explained in more detail at the top of each file
%  here I  give  a brief indication of the content.

\input format_XETEX.mac 
              %  spacing, special symbols ...

\input unicode_latin.mac
               % French and German accented letters

\input macros.mac
            % information boxes, special formats

\input ancestors.mac
             % abbreviations used in my genealogical texts

\input additional.mac   
             % \printdate + \raggedleft (for right to left)

\input petr_olsak.mac
              % Petr Olsak's collection of pure Tex macros for:
              %  tables, marginal notes, footnotes, multiple columns etc.
              % see after \bye below for the footnote commands

\input my_fonts.mac  
              %  different fonts at various sizes; e.g \bftwenty
              %  NOTE:  [my_fonts.mac] must be placed AFTER [petr_olsak.mac]  
              %       as the latter redefines \rm. 
              
\input pstricks  
\input epsf        
              % PSTRICKS is used for importing images (there is a form after \bye)
              % see [images-colour-marginal-notes.tex] for the use of these inputs
              % the shell file [photos2eps] (in the directory SHELL_FILES) will convert
              %     all your .jpg and .png files to .eps

\input color   %  a copy, downloaded from github.com, is included with this package
                      % it allows typesetting text in colour via \definecolor \textcolor and \colorbox
                      % [see  also the graph­ics-pln" package  at CTAN]
                      %  colour can also be obtained via  [petr_olsak.mac], section 8 and
                      %  PSTRICKS

%  TEXSIS   This package is available at CTAN.
%                Preliminary testing  shows that that this is compatible with the above
%                commands  here. Double columns and twin page out appear to work. 
%                There are commands for tables etc.
                   
% EPLAIN  is another powerful package (hyperlinks, multiple columns etc.)
%               for PLAIN TEX. Unfortunately it appears to conflict with the
%               above inputs (I suspect with \input pstricks)

%%%%%%%%%%%%%%%%    END  XETEX INPUTS    %%%%%%%%%%%%%

%%%%%%%%%%%%%%%%    VARIOUS COMMANDS    %%%%%%%%%%%%%

\topglue  0pt       
\topskip  18pt      

\overfullrule=0pt
\tracingoutput  = 0   % file - minimum information ( =1  for full)
\tracingonline  = 0   % screen - minimum information ( =1  for full

%%%%%%%%%%%%%%%%   END  VARIOUS COMMANDS    %%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%    DIMENSIONS    %%%%%%%%%%%%%
\pdfpageheight=11truein   % !!      % these are xetex commands
\pdfpagewidth= 8.5truein   %!!       % presently set for "letter" size

\vsize =  8.50 in       %!!  
{\hsize = 5.94 in      %!!

\voffset = 0.5 truecm   %!!
\hoffset = 0.70truecm    %!!

\baselineskip = 14pt    % default = 12pt!!

%%%%%%%%%%%%%%%%%   END DIMENSIONS    %%%%%%%%%%%%%

%%%%%%%%%%%    FOOTER & HEADER          %%%%%%%%%%%%%%%%%

%         =======> 3 CHANGES TO MAKE   <=========

 \nopagenumbers
 
                 % 2000 was chosen so that I will notice and change
                 %       in final versions
 \pageno = 2000    %   3 CHANGES TO MAKE 

 %  this  footer puts a page number in bold at the bottom of each page, EXCEPT FIRST
 \footline =  {      % THE FOOTLINE MATERIAL IS IN ENCLOSED IN {}  
                       \ifnum \pageno = 2000  % do nothing  <== keep with false #      
                                    \else  
                                   {\centerline{\bf \folio}}  % centerline closes here for page #
                       \fi   % this  matches \ifnum	
                   } 	   
 %
                                  %           NO DATES HERE,  ONLY IN TITLE
\headline =  {% THE FOOTLINE MATERIAL IS IN ENCLOSED IN {} 
                     \centerline{    % CAN NOT PUT \CENTERLINE AFTER ELSE,  FOULS UP!
                               \ifnum \pageno = 2000  % do nothing  <== keep with false #      
                      	            \else   
                                       {\bfthirteen +++++++++++}
                                \fi % THIS  MATCHES \IFNUM
                                   }   %THIS MATCHS CENTERLINE
                }   % THIS MATCHES { WITH \FOOTLINE  

%%%%%%%%%%%%%%%%%%%%  END FOOTER AND  HEADER  %%%%%%%%%%%%%%%%%%%%% 
%
% %%%%%%%%%%%%%%%%%%%%  TEXT STARTS % %%%%%%%%%%%%%%%%%%%% 
%
 {\rm   %  !! 12.5pt  I like a larger font, defined in [my_fonts.mac]
%
% 
{\verysmall . } % !! 0.1pt  used to move  text up via \vskip -20pt\nin  !!
%
\vskip -20pt\nin     % \nin = \noindent, see [format_XETEX.mac]
%
\centerline{\bftwenty ++}  %  defined in [my_fonts.mac]
%
\mni    % \medskip\noindent  see [format_XETEX.mac]
%

%%%%%%%%%%%%%%%%%%%%%%%%%%%
	      % KEEP THIS ENDING!!!   had when needed headers
\vfill\eject 
%%
            }  %  ends roman
	    \par} % ends \hsize
	    \bye
	    
%%%%%%%%%%%%%%%  FORMS %%%%%%%%%%%%%%%%
%   
% PSTRICKS FORM	  
	  \centerline{\epsfxsize = 6.5truein\epsfbox{*.eps}}
\vskip 4 truept
          \centerline{}
%
\vskip 0.7cm\nin 
%
% FOOTNOTES FORM: section 14 of [petr_olsak.mac]
%  \fnotemark{*.}  next to the text
%  \fnotetext{*} place somewhere after location of \fnotemark
%  it may require two runs to complete