📄 chi96.dtx
字号:
% \end{macrocode}%% \section{Document Layout}%% In this section we are finally dealing with the nasty typographical% details. %% \subsection{Font Sizes}% % The title shall be printed in 18pt Bold.% \begin{macrocode}\newcommand\TLARGE{\@setfontsize\LARGE{18}{24}}% \end{macrocode}%% \subsection{Page numbering}% % The page numbers will be inserted by the publisher, so we don't need% any.% \begin{macrocode}\pagestyle{empty}% \end{macrocode}%% \subsection{Paragraphing}%% \begin{macro}{\parindent}% \begin{macro}{\parskip}% We want no parindent.% |\parskip| gives the extra vertical space between paragraphs. We% want some extra space. % \begin{macrocode}\parindent0pt\setlength\parskip{\p@ \@plus \p@}% \end{macrocode}% \end{macro}% \end{macro}%% \begin{macro}{\parsep}% \begin{macro}{\itemsep}% \begin{macro}{\partopsep}% \begin{macro}{\topsep}% As a special case we deal with |\parsep|, the extra space between% paragraphs in an |itemize| environment, |\itemsep|, the extra% space between items, |\topsep|, the extra space at the beginning% of an |itemize| environment and |\partopsep|.% \begin{macrocode}\setlength\topsep{0pt}\setlength\partopsep{0pt}\setlength\parsep{0pt}\setlength\itemsep{0pt}% \end{macrocode}% \end{macro}% \end{macro}% \end{macro}% \end{macro}%% \subsection{Page Layout}%% All margin dimensions are measured from a point one inch from the% top and lefthand side of the page, since this is the default margin% of allmost any printer driver.%% \subsubsection{The dimension of text}%% \begin{macro}{\textwidth}% The standard classes do calculate the |\textwidth| depending on% the font size and the paper used. CHI 96 requieres the font size% to be 10pt, and all material on the page have a width of 18cm (7in).% We modify the textwidth a little bit to be a whole number of points.% \begin{macrocode}\setlength{\textwidth}{7in}% aka 18cm\@settopoint\textwidth% \end{macrocode}% \end{macro}%% \begin{macro}{\columnsep}% There shall be a space of .32in, aka 0.81cm, between two columns.% \begin{macrocode}\setlength{\columnsep}{.32in}% aka .81cm% \end{macrocode}% \end{macro}%% \begin{macro}{\textheight}% The |\textheight| is required by CHI 96 to be fixed, too.% \begin{macrocode}\setlength{\textheight}{9.25in}% aka 23.5cm% \end{macrocode}% \end{macro}%% \begin{macro}{thepage}% We want no page numbers. Nowhere!% \begin{macrocode}\let\thepage\relax% \end{macrocode}% \end{macro}%% \subsubsection{Headings}%% \begin{macro}{\headheight}% \begin{macro}{\headsep}% We do not use headings at all, so we define them to be empty.% \begin{macrocode}\setlength{\headheight}{0in}\setlength{\headsep}{0in}% \end{macrocode}% \end{macro}% \end{macro}%% \subsubsection{Footings}%% \begin{macro}{\footskip}% We don't want no footings, too. Note, this will only be sufficiant% for \LaTeXe{}. % \begin{macrocode}\setlength{\footskip}{0in}% \end{macrocode}% \end{macro}%%% \subsubsection{Margins}%% \begin{macro}{\oddsidemargin}% \begin{macro}{\topmargin}% Since the material on each page should be centered we have to take% the papersize into account. We center the text on the page, by% calculating the difference between |\textwidth| and% |\paperwidth|. Half of that difference is than used for% the margin (thus |\oddsidemargin| is |1in| less).%% \begin{macrocode}\setlength\@tempdima {\paperwidth}\addtolength\@tempdima {-7in}\setlength\oddsidemargin {.5\@tempdima}\addtolength\oddsidemargin {-1in}% \end{macrocode}%% The |\topmargin| shall be .75in (1.9cm). (Absolute value, no% 1in default margin\dots)% \begin{macrocode}\setlength\topmargin{.75in}\addtolength\topmargin{-1in}% \end{macrocode}%% \end{macro}% \end{macro}%% \subsection{Sections}% We don't want no numbering of |\section|, |\subsection| and the like.% In order to do so we set |\secnumdepth| to $0$.% \begin{macrocode}\setcounter{secnumdepth}{0}% \end{macrocode}%% And because we use non-standard font sizes and spaces for the sections,% we have to redefine the |\section| style commands, too.% The |article| class uses a little to much space after the sectionline.% Note: On most standard \LaTeXe installations you will be notified% that there is no |\itshape|-ed font in this size and \LaTeXe{} will use% a |\slshape|-ed instead. However, when using Postscript fonts you will% probably have such a font.%% \begin{macrocode}\renewcommand\section{\@startsection{section}{1}{\z@}% {-2ex \@plus -.1ex \@minus -.1ex}% {.1ex \@minus .1ex}% {\normalfont\normalsize\bfseries}}\renewcommand\subsection{\@startsection{subsection}{1}{\z@}% {-2ex \@plus -.1ex \@minus -.1ex}% {.1ex \@minus .1ex}% {\normalfont\normalsize\bfseries}}\renewcommand\subsubsection{\@startsection{subsubsection}{1}{0pt}% {-2ex \@plus -.1ex \@minus -.1ex}% {.1ex \@minus .1ex}% {\normalfont\normalsize\itshape}}% \end{macrocode}%% \section{Document Markup}%% \subsection{The title}% We need to change the title a little bit.%% There is no way this can be a seperate titlepage because% the CHI 96 guidelines don't want one. So we provide just% a new |\@maketitle| command.%% \begin{macro}{\@maketitle}% This macro takes care of formatting the title information when we% have no separate title page.%% We always start a new page, leave some white space and center the% information. The title is set in a |\TLARGE\bfseries| font, the author% names and the rest in a |\large| font. Note, for CHI 96 the author names% should be |\bfseries|, too, but without changing the |\author| command% this belongs to the author!% \begin{macrocode}\def\@maketitle{% \newpage \null \begin{center}% {\TLARGE\bfseries \@title \par}% \vskip 3em% {\large \lineskip .5em% \begin{tabular}[t]{c}% \@author \end{tabular}\par}% \end{center}% \par \vskip 0.5em}% \end{macrocode}% \end{macro}%% \subsection{The bibliography}%% \begin{macro}{\refname}% Since section titles shall be all uppercase, we need% to redefine the |\refname| macro, automatically set% by the |\begin{thebibliography}| command% \begin{macrocode}\renewcommand{\refname}{REFERENCES}% \end{macrocode}% \end{macro}%% \begin{macro}{\@biblabel}% We want no [] around the numbers.% \begin{macrocode}\renewcommand*{\@biblabel}[1]{#1\hfill}% \end{macrocode}% \end{macro}%%% And that's it. Happy \TeX ing.%% \Finale%\endinput
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -