From 7dcb2384fa94ac7dbe802ea1e19b3c427929b2a4 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 11 Aug 2011 01:44:46 +0000 Subject: ascelike (10aug11) git-svn-id: svn://tug.org/texlive/trunk@23491 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/ascelike/ascelike.cls | 63 +++++++++++++++++++---- 1 file changed, 52 insertions(+), 11 deletions(-) (limited to 'Master/texmf-dist/tex/latex/ascelike') 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}} -- cgit v1.2.3