Repository navigation
Expand file tree
/
Copy pathlayout.tex
More file actions
82 lines (73 loc) · 2.21 KB
/
Copy pathlayout.tex
File metadata and controls
82 lines (73 loc) · 2.21 KB
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
%!TEX root = std.tex
%% layout.tex -- set overall page appearance
%%--------------------------------------------------
%% set page size, type block size, type block position
% dyp: we obviously don't need nice formatting for a transformation to XML
%\setstocksize{11in}{8.5in}
%\settrimmedsize{11in}{8.5in}{*}
%\setlrmarginsandblock{1in}{1in}{*}
%\setulmarginsandblock{1in}{*}{1.618}
%
%%%--------------------------------------------------
%%% set header and footer positions and sizes
%
%\setheadfoot{\onelineskip}{2\onelineskip}
%\setheaderspaces{*}{2\onelineskip}{*}
%
%%%--------------------------------------------------
%%% make miscellaneous adjustments, then finish the layout
%\setmarginnotes{7pt}{7pt}{0pt}
%\checkandfixthelayout
%%--------------------------------------------------
%% Paragraph and bullet numbering
\newcounter{Paras}
\counterwithin{Paras}{chapter}
\counterwithin{Paras}{section}
\counterwithin{Paras}{subsection}
\counterwithin{Paras}{subsubsection}
\counterwithin{Paras}{paragraph}
\counterwithin{Paras}{subparagraph}
\newcounter{Bullets1}[Paras]
\newcounter{Bullets2}[Bullets1]
\newcounter{Bullets3}[Bullets2]
\newcounter{Bullets4}[Bullets3]
\makeatletter
% dyp: original
%\newcommand{\parabullnum}[2]{%
%\stepcounter{#1}%
%\noindent\makebox[0pt][l]{\makebox[#2][r]{%
%\scriptsize\raisebox{.7ex}%
%{%
%\ifnum \value{Paras}>0
%\ifnum \value{Bullets1}>0 (\fi%
% \arabic{Paras}%
%\ifnum \value{Bullets1}>0 .\arabic{Bullets1}%
%\ifnum \value{Bullets2}>0 .\arabic{Bullets2}%
%\ifnum \value{Bullets3}>0 .\arabic{Bullets3}%
%\fi\fi\fi%
%\ifnum \value{Bullets1}>0 )\fi%
%\fi%
%}%
%\hspace{\@totalleftmargin}\quad%
%}}}
% dyp: lxir version;
% had problems with expansion of \value
\newcommand{\parabullnum}[2]{%
\stepcounter{#1}%
\xEmptyA{number}{value=%
\ifnum \arabic{Paras}>0
\arabic{Paras}%
\ifnum \arabic{Bullets1}>0 .\arabic{Bullets1}%
\ifnum \arabic{Bullets2}>0 .\arabic{Bullets2}%
\ifnum \arabic{Bullets3}>0 .\arabic{Bullets3}%
\fi\fi\fi%
\fi%
}%
}
\makeatother
\def\pnum{\parabullnum{Paras}{0pt}}
% Leave more room for section numbers in TOC
% dyp: not required
%\cftsetindents{section}{1.5em}{3.0em}
% For compatibility only. We no longer need this environment.
\newenvironment{paras}{}{}