-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.tex
73 lines (64 loc) · 1.24 KB
/
doc.tex
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
% Alloccate Registers
\newcount\hN
\newcount\sN
\newcount\pN
\newcount\vN
% Section Header
% #1 Heading label
\def\section#1{
\begingroup
\vskip 5mm \noindent \tiny #1 \vskip 1mm \hrule \vskip 2mm
\endgroup
}
% Indented Section
% #1 Distance to indent
% #2 Text to indent
\long\def\indented#1#2{
\par
\advance \leftskip by #1
\advance \rightskip by #1
\noindent #2\par
\advance \leftskip by -#1
\advance \rightskip by -#1
}
% Heading
% #1 Heading label
\def\h#1{
\advance\hN1
\sN=0
\pN=0
\bf
\number\hN .\number\sN .\number\pN
\hskip 5mm #1\par
\rm
\vskip5mm
}
% Subheading
% #1 Subheading label or paragraph text
\def\s#1{
%\indented{10mm}{
\advance\sN1
\pN=0
\number\hN .\number\sN .\number\pN
\hskip 5mm #1\par
%}
\vskip5mm
}
% Paragraph
% #1 Paragraph text
\def\p#1{
\indented{10mm}{
\advance\pN1
\number\hN .\number\sN .\number\pN1
\hskip 5mm #1\par
}
\vskip5mm
}
% Insert Current Date (YYYY-MM-DD)
\def\date{\number\year -\number\month -\number\day}
% Insert Signature Line
\def\signature{\hbox to 50mm{ \leaders\hrule\hfill}}
% Insert Version Number
% Decrements each time the version number is inserted.
% First, set \vN to the current version.
\def\version{\number\vN \advance\vN-1}