File: layout.sty

package info (click to toggle)
hol88 2.02.19940316-35
  • links: PTS
  • area: main
  • in suites: buster
  • size: 65,988 kB
  • ctags: 21,623
  • sloc: ml: 199,939; ansic: 9,666; sh: 7,118; makefile: 6,095; lisp: 2,747; yacc: 894; sed: 201; cpp: 87; awk: 5
file content (151 lines) | stat: -rw-r--r-- 5,750 bytes parent folder | download | duplicates (11)
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
% =====================================================================
% LaTeX style file for HUG91 paper (ieee format)
% =====================================================================

% ---------------------------------------------------------------------
% PAPER SIZE  (latex overrides these anyway)
%
%   * TeX expects 1 inch margins all around.
%   * 8.5x11 (american paper) is exactly 279.4mm high by 215.9mm wide
%   * 1 inch = 25.4 mm
% ---------------------------------------------------------------------

\hsize=165.1truemm
\vsize=228.6truemm

% ---------------------------------------------------------------------
% PAGE LAYOUT  
% ---------------------------------------------------------------------

\textwidth 174truemm
\textheight 228truemm

% ---------------------------------------------------------------------
% POSITION ON PAPER  
%
%   * left margin = 19 mm
%   * top margin = 25.4 mm (one inch)
% ---------------------------------------------------------------------

\evensidemargin=-7.4truemm 
\oddsidemargin=-7.4truemm 
\topmargin 0truemm 

% ---------------------------------------------------------------------
% Column separation
% ---------------------------------------------------------------------
\columnsep 8mm

% ---------------------------------------------------------------------
% MATH INDENTATION.  = 5mm
% ---------------------------------------------------------------------
\setlength{\mathindent}{1pc}

% ---------------------------------------------------------------------
% HEAD: no head
% ---------------------------------------------------------------------
\headheight 0mm
\headsep 0mm

% ---------------------------------------------------------------------
% FOOT: page number
% ---------------------------------------------------------------------
\footheight 12pt
\footskip 10mm

% ---------------------------------------------------------------------
% INDENTATION: 1pc indentation
% --------------------------------------------------------------------- 
\parindent 1pc

% ---------------------------------------------------------------------
% Sizes of sections, etc.
% ---------------------------------------------------------------------

\makeatletter

%need an 11 pt font size for subsection and abstract headings
\def\subsize{\@setsize\subsize{12pt}\xipt\@xipt}

%make section titles bold and 12 point, 1 blank lines before, 1 after
\def\section{\@startsection{section}{1}{\z@}{12pt plus 2pt minus 2pt}
{12pt plus 2pt minus 2pt}{\large\bf}}

%make subsection titles bold and 11 point, 1 blank line before, 1 after
\def\subsection{\@startsection{subsection}{2}{\z@}{12pt plus 2pt minus 2pt}
{12pt plus 2pt minus 2pt}{\subsize\bf}}

%make subsubsection titles bold and 10 point, 1 blank line before, run-in
%and with a `:' after the title.
\def\@mystartsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi
   \par \@tempskipa #4\relax
   \@afterindenttrue
   \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \@afterindentfalse\fi
   \if@nobreak \everypar{}\else
     \addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi \@ifstar
     {\@ssect{#3}{#4}{#5}{#6}}{\@dblarg{\@mysect{#1}{#2}{#3}{#4}{#5}{#6}}}}
\def\@mysect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
     \def\@svsec{}\else
     \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname\hskip 1em }\fi
     \@tempskipa #5\relax
      \ifdim \@tempskipa>\z@
        \begingroup #6\relax
          \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8:\par}%
        \endgroup
       \csname #1mark\endcsname{#7}\addcontentsline
         {toc}{#1}{\ifnum #2>\c@secnumdepth \else
                      \protect\numberline{\csname the#1\endcsname}\fi
                    #7}\else
        \def\@svsechd{#6\hskip #3\@svsec #8:\csname #1mark\endcsname
                      {#7}\addcontentsline
                           {toc}{#1}{\ifnum #2>\c@secnumdepth \else
                             \protect\numberline{\csname the#1\endcsname}\fi
                       #7}}\fi
     \@xsect{#5}}
\def\subsubsection{\@mystartsection{subsubsection}{3}{\z@}
    {12pt plus 2pt minus 2pt}{-1em}{\bf}}

% ---------------------------------------------------------------------
% footnote hacks
% ---------------------------------------------------------------------

% No rule above footnotes like in the IEEE transations
\renewcommand{\footnoterule}{}

% thanks makes no footnote make like in the IEEE transactions
\newcommand{\blanknote}[1]
{
    \renewcommand{\thefootnote}{}
    \footnotetext{#1}
    \renewcommand{\thefootnote}{\arabic{footnote}}
}
\def\thanks#1{\begingroup
\def\protect{\noexpand\protect\noexpand}\xdef\@thanks{\@thanks
  \protect\blanknote{#1}}\endgroup}

% Set footnote text style to that in guidelines
\def\footnotesize{\@setsize\footnotesize{10pt}\viiipt\@viiipt
\abovedisplayskip 6pt plus 2pt minus 4pt\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus 1pt\belowdisplayshortskip 3pt plus 1pt minus
2pt
\def\@listi{\leftmargin\leftmargini \topsep 3pt plus 1pt minus 1pt\parsep 2pt
plus 1pt minus 1pt
\itemsep \parsep}}


\makeatother

% ---------------------------------------------------------------------
% Preliminary settings etc.
% ---------------------------------------------------------------------

\renewcommand{\topfraction}{0.8}	  % 0.8 of the top page can be fig.
\renewcommand{\bottomfraction}{0.8}	  % 0.8 of the bottom page can be fig.
\renewcommand{\textfraction}{0.1}	  % 0.1 of the page must contain text
\setcounter{totalnumber}{4}	 	  % max of 4 figures per page
\setcounter{secnumdepth}{3}		  % number sections down to level 3
\setcounter{tocdepth}{3}		  % toc contains numbers to level 3
\flushbottom				  % text extends right to the bottom
\twocolumn				  % two columns