summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ptptex/ptp-prep.clo
blob: 80d228cbd06504aac73b4b910cae7f21cc74637e (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
\ProvidesFile{ptp-prep.clo}[2002/10/22 ver.0.88]
\typeout{***** PTP Preprint Style <<PTP-prep.clo>> ver.0.88 *****}
%%%%%%%% PTP propers %%%%%%%%%%
\def\tabularsize{\normalsize} 
\def\captionsize{\small}
\def\refsize{\normalsize}
\def\hruleheight{0.5pt} %
\doublerulesep 2pt

\def\@maketitle{\newpage
 \null
 \@ifundefined{@preprtnum}{}{\vskip -10pt%
  \hfill \parbox{\@preprtnumwidth}{\@preprtnum}\vskip 1em}
 \vskip 2em
 \begin{center}
 \def\hang{\par\hangindent=0pt\hangafter=1\noindent}
 {\Large\bf \hang \@title \par}
 \@ifundefined{@subtitle}{}%
 {\par\vskip 6pt {\Large\it\hang \rule[.5ex]{1.7em}{\hruleheight}\ %
 \@subtitle\ \rule[.5ex]{1.7em}{\hruleheight}} \gdef\@subtitle{}}
 \vskip 1.8em 
 {\large \hang \@author \par}
 \@ifundefined{@inst}{}{\vskip .8em%
 \large\it \hang \@inst \gdef\@inst{}\par}
 \end{center}
 \par
 \@ifundefined{@abst}{}{%
 \vfill
\begin{center}
{\bf Abstract}\par\vskip .7em
\parbox[t]{0.94\textwidth}{\setlength{\parindent}{2em}%
 \@abst}
\end{center}
 \gdef\@abst{} 
 \vfill}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\normalsize{\@setsize\normalsize{18pt}\xiipt\@xiipt
 \abovedisplayskip 12pt plus3pt minus7pt\belowdisplayskip \abovedisplayskip
 \abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6.5pt plus3.5pt minus3pt}
\normalfont \normalsize
\def\small{\@setsize\small{15pt}\xipt\@xipt
 \abovedisplayskip 11pt plus3pt minus6pt\belowdisplayskip \abovedisplayskip
 \abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6.5pt plus3.5pt minus 3pt
 \def\@listi{\topsep=0pt
 \itemsep=0pt \parsep=0pt}}
\def\footnotesize{\@setsize\footnotesize{13pt}\xpt\@xpt
 \abovedisplayskip 10pt plus 2pt minus 5pt\belowdisplayskip \abovedisplayskip
 \abovedisplayshortskip \z@ plus 3pt\belowdisplayshortskip 6pt plus3pt minus3pt
 \def\@listi{\topsep=0pt
 \parsep=0pt
 \itemsep=0pt \parsep=0pt}}
\def\scriptsize{\@setsize\scriptsize{11pt}\viiipt\@viiipt}
\def\tiny{\@setsize\tiny{8.5pt}\vipt\@vipt}
\def\large{\@setsize\large{22pt}\xivpt\@xivpt}
\def\Large{\@setsize\Large{26pt}\xviipt\@xviipt}
\def\LARGE{\@setsize\LARGE{28pt}\xxpt\@xxpt}
\def\huge{\@setsize\huge{33pt}\xxvpt\@xxvpt}
\let\Huge=\huge

\oddsidemargin -1.1pt \evensidemargin -15.3pt
\marginparwidth 21mm \marginparsep 3mm
 \topmargin -30pt \headheight 12pt \headsep 25pt \topskip 12pt
 \footskip 35pt

\textheight 226mm \textwidth 165mm \columnsep .5truecm  

\footnotesep 7pt

\parskip 0pt plus 1pt \parindent 1.5em 
\topsep 6pt plus 2pt minus 4pt

\def\section{\@startsection {section}{1}{\z@}
{3.6ex plus 1ex minus .2ex}{1.7ex plus .2ex}{\large}}
\def\subsection{\@startsection{subsection}{2}{\z@}
{2.5ex plus .5ex minus .2ex}{1ex plus .2ex}{\normalsize\it}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}
{2ex plus .5ex minus .2ex}{1ex plus .2ex}{\normalsize\it}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%\normalfont \normalsize%%%if something get wrong about these dimension settings, set this line available. It may due to `em' specifications.
\leftmargini 2.5em
\leftmargin\leftmargini
\labelwidth\leftmargini\advance\labelwidth-\labelsep
\def\@listii{\leftmargin\leftmarginii
 \labelwidth\leftmarginii\advance\labelwidth-\labelsep
 \topsep=0pt 
 \parsep=0pt 
 \itemsep \parsep}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%
\AtEndOfClass{%
\typeout{-----Setting Option: preprint-----}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----- PTP preprint options ---
\def\@secapp{\mathhexbox278}  %
\def\bgn@center{\begin{center}} \def\end@center{\end{center}}
    % centering the section title. If you don't like the centering, then put
    %\def\bgn@center{} \def\end@center{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewenvironment{thebibliography}[1]{%
\def\@secapp{\secsymbol}%
\section*{References}%
\list{\arabic{enumi})}{\settowidth\labelwidth{#1)}
\leftmargin\labelwidth \advance\leftmargin\parindent \advance\leftmargin\labelsep \usecounter{enumi}}
 \newcommand\newblock{\hskip .11em plus .33em minus .07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax}{\endlist}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand\maketitle{\par%
 \begingroup%
 \newpage%
 \global\@topnum\z@ \@maketitle \thispagestyle{headings}\@thanks%
 \endgroup%
 \newpage%
 \let\maketitle\relax%
 \let\@maketitle\relax%
 \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand\ps@headings{\let\@mkboth\markboth
\renewcommand\@oddhead{}
\renewcommand\@oddfoot{\hbox to \textwidth{\hfil\rmfamily\thepage\hfil%
\makebox[0\p@][r]{\@typeset}}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{plain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
}