diff options
author | Karl Berry <karl@freefriends.org> | 2011-08-11 01:44:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-08-11 01:44:46 +0000 |
commit | 7dcb2384fa94ac7dbe802ea1e19b3c427929b2a4 (patch) | |
tree | dfa9798e4795f6752271518bdfd2ac77987c4a3f /Master/texmf-dist/tex/latex/ascelike | |
parent | afd21711dd0891ff8e4fd6d150940e1c5d76ae11 (diff) |
ascelike (10aug11)
git-svn-id: svn://tug.org/texlive/trunk@23491 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ascelike')
-rw-r--r-- | Master/texmf-dist/tex/latex/ascelike/ascelike.cls | 63 |
1 files changed, 52 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/ascelike/ascelike.cls b/Master/texmf-dist/tex/latex/ascelike/ascelike.cls index e6333a74244..c0953c29284 100644 --- a/Master/texmf-dist/tex/latex/ascelike/ascelike.cls +++ b/Master/texmf-dist/tex/latex/ascelike/ascelike.cls @@ -1,5 +1,7 @@ %% File: ascelike.cls %% +%% Version 2.0 +%% %% An unofficial LaTeX class file for preparing review manuscripts and %% camera-ready manuscripts for ASCE journals and conference proceedings %% @@ -7,14 +9,14 @@ %% IMPORTANT NOTICE: %% See the copyright and distribution conditions below. %% -%% Copyright 1999: +%% Copyright 2011: %% Matthew R Kuhn -%% School of Engineering +%% Donald P. Shiley School of Engineering %% University of Portland %% 5000 N Willamette Blvd %% Portland OR 97203 %% USA -%% E-mail: kuhn@egr.up.edu +%% E-mail: kuhn@up.edu %% %% This program can be redistributed and/or modified under the terms %% of the LaTeX Project Public License Distributed, available from the CTAN @@ -92,7 +94,7 @@ \typeout{} \NeedsTeXFormat{LaTeX2e}[1994/12/01] \ProvidesClass{ascelike} - [1999/06/25 asce-like manuscripts (Am. Soc. Civ. Engr.)] + [2002/12/29 ASCE-like manuscripts (Am. Soc. Civ. Engr.)] \typeout{} \RequirePackage{ifthen}[1994/11/15] % @@ -103,6 +105,8 @@ \newboolean{SingleSpace} \newboolean{DoubleSpace} \newboolean{NoPageNumbers} +\newboolean{NoLists}% 11-21-02 +\newboolean{SectionNumbers}% 12-28-02 \newcommand{\ptsize}{} % \DeclareOption{Proceedings}% @@ -135,6 +139,9 @@ % \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} % +\DeclareOption{NoLists}{\setboolean{NoLists}{true}}% 11-21-02 +\DeclareOption{SectionNumbers}{\setboolean{SectionNumbers}{true}}% 11-21-02 +% % Make 12pt and Journal the default options \ExecuteOptions{12pt,Journal} \ProcessOptions\relax @@ -190,7 +197,12 @@ % of the same packages. 7-18-00 \AtBeginDocument{% 7-18-00 \ifthenelse{\boolean{BackFigs}} -{\RequirePackage[lists,noheads,nomarkers,tablesfirst]{endfloat}}{} + {\ifthenelse{\boolean{NoLists}}% 11-21-02 + {\RequirePackage[nolists,noheads,nomarkers,tablesfirst]{endfloat}}%11-21-02 + {\RequirePackage[lists,noheads,nomarkers,tablesfirst]{endfloat}} + } + {} +% \ifthenelse{\boolean{DoubleSpace}} {\RequirePackage{setspace}\doublespacing}{} }% 7-18-00 @@ -209,7 +221,7 @@ \setlength{\marginparpush} {0.00in}} % % Page layout for Journal manuscripts: -{\setlength{\topmargin} {0.00in} +{\setlength{\topmargin} {0.60in} \setlength{\headheight} {0.00in} \setlength{\headsep} {0.00in} \setlength{\textheight} {9.00in} @@ -352,11 +364,20 @@ % % % ASCE-like section, subsection, and subsubsection headings -\setcounter{secnumdepth}{0} +\ifthenelse{\boolean{SectionNumbers}}% 12-29-02 + {\setcounter{secnumdepth}{2}}% 12-29-02 + {\setcounter{secnumdepth}{0}}% 12-29-02 \renewcommand{\section}{\secdef\Section\sSection} +\newcommand{\SectionNumber}{} +\setcounter{section}{-1} \newcommand{\Section}[2][?]{% \refstepcounter{section}% - \par{\flushleft\normalsize\bfseries\sffamily\uppercase{#2}\par}\nopagebreak} + \ifthenelse{\boolean{SectionNumbers}} % 12-29-02 + {\renewcommand{\SectionNumber}{\thesection\hspace{1em}}} + {} + \par{\flushleft\normalsize\bfseries\sffamily\uppercase% + {\SectionNumber#2}\par}% + \nopagebreak} \newcommand{\sSection}[1]{% \refstepcounter{section}% \par{\flushleft\bfseries\sffamily\uppercase{#1}\par}\nopagebreak} @@ -406,7 +427,7 @@ \setlength{\labelwidth}{2em}% \setlength{\labelsep}{0.7em}% \setlength{\itemindent}{0em}% - \setlength{\listparindent}{3em}% + \setlength{\listparindent}{1.5em}% 12-29-02 \setlength{\leftmargin}{3em}% \setlength{\rightmargin}{0em}% \setlength{\parsep}{0ex}% @@ -441,9 +462,15 @@ \newsavebox{\TempBoxb} \newlength{\TempBoxl} \setlength{\belowcaptionskip}{1.5ex} +\newlength{\Abovecaptionrule} +\ifthenelse{\boolean{Journal}\and\boolean{BackFigs}}% + {\setlength{\Abovecaptionrule}{0.75in}} + {\setlength{\Abovecaptionrule}{0.05in}} \renewcommand{\@makecaption}[2]{% - \savebox{\TempBoxb}{\rule{0em}{3ex}\sffamily\bfseries\normalsize#1.% - \makebox[1em]{}\sffamily\bfseries\normalsize#2}% + \vspace{\Abovecaptionrule} + \savebox{\TempBoxb}{% + \rule{0em}{3ex}\sffamily\bfseries\normalsize#1.% + \makebox[1em]{}\sffamily\bfseries\normalsize#2}% \settowidth{\TempBoxl}{\usebox{\TempBoxb}} \ifthenelse{\lengthtest{\TempBoxl > \textwidth}} {\sffamily\bfseries\normalsize#1. \sffamily\bfseries\normalsize#2\par}% @@ -507,6 +534,20 @@ \sffamily\bfseries\KeyWordName: % \normalfont#1} % +% ASCE asks for the lists of tables and figures to be double-spaces +\ifthenelse{\boolean{BackFigs}} +{\renewcommand\listoftables{% + \section*{\listtablename + \@mkboth{% + \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}% + \doublespacing\@starttoc{lot}\singlespacing}% + \renewcommand\listoffigures{% + \section*{\listfigurename + \@mkboth{\MakeUppercase\listfigurename}% + {\MakeUppercase\listfigurename}}% + \doublespacing\@starttoc{lof}\singlespacing}% + }{} +% \AtEndOfClass {\bibliographystyle{ascelike} \ifthenelse{\boolean{NoPageNumbers}} |