summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ascelike
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-02-15 23:58:36 +0000
committerKarl Berry <karl@freefriends.org>2013-02-15 23:58:36 +0000
commitaeb928a24790407db5779d28c62f6c514619cdaa (patch)
treef0d5a88ea417a03816f38dc440c6631c2db8dc51 /Master/texmf-dist/tex/latex/ascelike
parentc1a3181be2e0466144b193df768e3fd64eaa6106 (diff)
ascelike (15feb13)
git-svn-id: svn://tug.org/texlive/trunk@29129 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ascelike')
-rw-r--r--Master/texmf-dist/tex/latex/ascelike/ascelike.cls146
1 files changed, 113 insertions, 33 deletions
diff --git a/Master/texmf-dist/tex/latex/ascelike/ascelike.cls b/Master/texmf-dist/tex/latex/ascelike/ascelike.cls
index ffcba31d61b..4a6fe6657ac 100644
--- a/Master/texmf-dist/tex/latex/ascelike/ascelike.cls
+++ b/Master/texmf-dist/tex/latex/ascelike/ascelike.cls
@@ -1,6 +1,6 @@
%% File: ascelike.cls
%%
-%% Version 2.2
+%% Version 2.3
%%
%% An unofficial LaTeX class file for preparing review manuscripts and
%% camera-ready manuscripts for ASCE journals and conference proceedings
@@ -62,11 +62,19 @@
%% appendices with Roman numerals. Produces proper headings for
%% sections, subsections, subsubsections, appendices, and abstract.
%% Produces the proper page margins, and numbers the pages,
-%% - "Proceedings" produces camera-ready single-spaced manuscripts
-%% for ASCE conference proceedings. It places figures and tables
+%% - "Proceedings" produces older-sytle camera-ready single-
+%% spaced manuscripts for ASCE conference proceedings. It places
+%% figures and tables within the text. It produces proper headings
+% for sections, subsections, subsubsections, appendices, and
+% abstract. Produces the proper page margins, and numbers the pages.
+%% - "NewProceedings" produces camera-ready single-spaced manuscripts
+%% for ASCE conference proceedings, according to website
+%% instructions of Feb 14, 2013. It places figures and tables
%% within the text. It produces proper headings for
%% sections, subsections, subsubsections, appendices, and abstract.
%% Produces the proper page margins, and numbers the pages.
+%% This style of proceedings differs from the older style
+%% ("Proceedings") in the fonts for headings
%%
%% The remaining option override the defaults that are set by the
%% above formats:
@@ -99,11 +107,12 @@
\typeout{}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesClass{ascelike}
- [2011/12/16 Version 2.2 ASCE-like manuscripts (Am. Soc. Civ. Engr.)]
+ [2013/2/14 Version 2.3 ASCE-like manuscripts (Am. Soc. Civ. Engr.)]
\typeout{}
\RequirePackage{ifthen}[1994/11/16]
%
\newboolean{Proceedings}
+\newboolean{NewProceedings}% 02-14-13
\newboolean{Journal}
\newboolean{BackFigs}
\newboolean{InsideFigs}
@@ -117,9 +126,17 @@
\newcommand{\ptsize}{}
%
\DeclareOption{Proceedings}%
- {\setboolean{Proceedings}{true}\setboolean{Journal}{false}}
+ {\setboolean{Proceedings}{true}%
+ \setboolean{Journal}{false}%
+ \setboolean{NewProceedings}{false}}% 02-14-13
\DeclareOption{Journal}%
- {\setboolean{Journal}{true}\setboolean{Proceedings}{false}}
+ {\setboolean{Journal}{true}%
+ \setboolean{Proceedings}{false}%
+ \setboolean{NewProceedings}{false}}% 02-14-13
+\DeclareOption{NewProceedings}% 02-14-13
+ {\setboolean{NewProceedings}{true}% 02-14-13
+ \setboolean{Journal}{false}% 02-14-13
+ \setboolean{Proceedings}{false}}% 02-14-13
%
\DeclareOption{BackFigs}%
{\setboolean{BackFigs}{true}\setboolean{InsideFigs}{false}}
@@ -199,7 +216,9 @@
\typeout{}
\ifthenelse{\boolean{Journal}}
{\typeout{(1) A "Journal" style manuscript will be produced}}
-{\typeout{(1) A "Proceedings" style manuscript will be produced}}
+{\ifthenelse{\boolean{Proceedings}}% 02-14-13
+ {\typeout{(1) A "Proceedings" old-style manuscript will be produced}}%02-14-13
+ {\typeout{(1) A "NewProceedings" new-style manuscript will be produced}}}
%
\ifthenelse{\boolean{BackFigs}}
{\typeout{%
@@ -260,17 +279,30 @@
\setlength{\marginparwidth}{0.00in}
\setlength{\marginparpush} {0.00in}}
%
+{\ifthenelse{\boolean{Journal}}
% Page layout for Journal manuscripts:
-{\setlength{\topmargin} {0.00in}
- \setlength{\headheight} {0.00in}
- \setlength{\headsep} {0.00in}
- \setlength{\textheight} {9.00in}
- \setlength{\footskip} {0.50in}
- \setlength{\oddsidemargin} {0.00in}
- \setlength{\textwidth} {6.50in}
- \setlength{\marginparsep} {0.00in}
- \setlength{\marginparwidth}{0.00in}
- \setlength{\marginparpush} {0.00in}}
+ {\setlength{\topmargin} {0.00in}
+ \setlength{\headheight} {0.00in}
+ \setlength{\headsep} {0.00in}
+ \setlength{\textheight} {9.00in}
+ \setlength{\footskip} {0.50in}
+ \setlength{\oddsidemargin} {0.00in}
+ \setlength{\textwidth} {6.50in}
+ \setlength{\marginparsep} {0.00in}
+ \setlength{\marginparwidth}{0.00in}
+ \setlength{\marginparpush} {0.00in}}
+%
+% Page layout for NewProceedings manuscripts:
+ {\setlength{\topmargin} {0.00in}
+ \setlength{\headheight} {0.00in}
+ \setlength{\headsep} {0.00in}
+ \setlength{\textheight} {9.00in}
+ \setlength{\footskip} {0.40in}
+ \setlength{\oddsidemargin} {0.38in}
+ \setlength{\textwidth} {5.75in}
+ \setlength{\marginparsep} {0.00in}
+ \setlength{\marginparwidth}{0.00in}
+ \setlength{\marginparpush} {0.00in}}}
%
%
% Author-year citations in the ASCE style. The following code was
@@ -380,7 +412,9 @@
% \begin{center}%
\ifthenelse{\boolean{Journal}}
{\vspace{0.00in}}
- {\vspace{1.40in}}%
+ {\ifthenelse{\boolean{NewProceedings}}% 02-14-13
+ {\vspace{1.40in}}% 02-14-13
+ {\vspace{1.40in}}}
\centering
{\large\bfseries\@title\par}%
\vspace{1.0em}%
@@ -415,12 +449,20 @@
\ifthenelse{\boolean{SectionNumbers}} % 12-29-02
{\renewcommand{\SectionNumber}{\thesection\hspace{1em}}}
{}
- \par{\flushleft\normalsize\bfseries\sffamily\uppercase%
+ \par{\flushleft\normalsize\bfseries%
+ \ifthenelse{\boolean{NewProceedings}}% 02-14-13
+ {\rmfamily}% 02-14-13
+ {\sffamily}%
+ \uppercase%
{\SectionNumber#2}\par}%
\nopagebreak}
\newcommand{\sSection}[1]{%
\refstepcounter{section}%
- \par{\flushleft\bfseries\sffamily\uppercase{#1}\par}\nopagebreak}
+ \par{\flushleft\bfseries%
+ \ifthenelse{\boolean{NewProceedings}}% 02-14-13
+ {\rmfamily}% 02-14-13
+ {\sffamily}%
+ \uppercase{#1}\par}\nopagebreak}
%
\renewcommand{\subsection}{\@startsection{subsection}{2}{0in}%
{1.00ex\@plus 1ex \@minus .2ex}%
@@ -452,10 +494,18 @@
\newcommand{\Appendix}[2][]{%
\refstepcounter{section}%
{%
- \flushleft\normalsize\bfseries\sffamily\appendixname\ %
+ \flushleft\normalsize\bfseries
+ \ifthenelse{\boolean{NewProceedings}}% 02-14-13
+ {\rmfamily}% 02-14-13
+ {\sffamily}%
+ \appendixname\ %
\thesection. \uppercase{#1}\par}\nopagebreak}%
\newcommand{\sAppendix}[1]{%
- {\flushleft\normalsize\bfseries\sffamily\uppercase{#1}\par}\nopagebreak}%
+ {\flushleft\normalsize\bfseries%
+ \ifthenelse{\boolean{NewProceedings}}% 02-14-13
+ {\rmfamily}% 02-14-13
+ {\sffamily}%
+ \uppercase{#1}\par}\nopagebreak}%
%
%
% An ASCE-like "enumerate" environment for numbered lists
@@ -497,8 +547,14 @@
%
%
% ASCE-like figure labels
-\renewcommand{\figurename}{FIG.}
-\renewcommand{\tablename}{TABLE}
+\renewcommand{\figurename}%
+ {\ifthenelse{\boolean{NewProceedings}}% 02-14-13
+ {Figure}% 02-14-13
+ {FIG.}}
+\renewcommand{\tablename}%
+ {\ifthenelse{\boolean{NewProceedings}}% 02-14-13
+ {Table}% 02-14-13
+ {TABLE}}
\newsavebox{\TempBoxb}
\newlength{\TempBoxl}
\setlength{\belowcaptionskip}{1.5ex}
@@ -509,11 +565,26 @@
\renewcommand{\@makecaption}[2]{%
\vspace{\Abovecaptionrule}
\savebox{\TempBoxb}{%
- \rule{0em}{3ex}\sffamily\bfseries\normalsize#1.%
- \makebox[1em]{}\sffamily\bfseries\normalsize#2}%
+ \rule{0em}{3ex}%
+ \ifthenelse{\boolean{NewProceedings}}% 02-14-13
+ {\rmfamily}% 02-14-13
+ {\sffamily}%
+ \bfseries\normalsize#1.%
+ \makebox[1ex]{}%
+ \ifthenelse{\boolean{NewProceedings}}% 02-14-13
+ {\rmfamily}% 02-14-13
+ {\sffamily}%
+ \bfseries\normalsize#2}%
\settowidth{\TempBoxl}{\usebox{\TempBoxb}}
\ifthenelse{\lengthtest{\TempBoxl > \textwidth}}
- {\sffamily\bfseries\normalsize#1. \sffamily\bfseries\normalsize#2\par}%
+ {\ifthenelse{\boolean{NewProceedings}}% 02-14-13
+ {\rmfamily}% 02-14-13
+ {\sffamily}%
+ \bfseries\normalsize#1.\makebox[1ex]{}%
+ \ifthenelse{\boolean{NewProceedings}}% 02-14-13
+ {\rmfamily}% 02-14-13
+ {\sffamily}%
+ \bfseries\normalsize#2\par}%
{\centering \usebox{\TempBoxb}}
\vskip\belowcaptionskip}%
%
@@ -564,14 +635,19 @@
% A new commond for "tagging" the author's name on the bottom right
% corner of the page (as per the ASCE shiny, camera-ready blank paper)
\newcommand{\NameTag}[1]
- {\newlength{\LeftFootSpace}
- \settowidth{\LeftFootSpace}{#1}
- \renewcommand{\@oddfoot}{\hspace{\LeftFootSpace}\hfill\thepage\hfill#1}
+ {\ifthenelse{\boolean{NoPageNumbers}}% 02-14-13
+ {\@latex@warning{Oops! Can not use NameTag with NoPageNumbers}}% 02-14-13
+ {\newlength{\LeftFootSpace}
+ \settowidth{\LeftFootSpace}{#1}
+ \renewcommand{\@oddfoot}{\hspace{\LeftFootSpace}\hfill\thepage\hfill#1}}
}
\newcommand{\KeyWordName}{Keywords}
\newcommand{\KeyWords}[1]
{\par\noindent\rule{0em}{3ex}%
- \sffamily\bfseries\KeyWordName: %
+ \ifthenelse{\boolean{NewProceedings}}% 02-14-13
+ {\rmfamily}% 02-14-13
+ {\sffamily}%
+ \bfseries\KeyWordName: %
\normalfont#1}
%
% ASCE asks for the lists of tables and figures to be double-spaces
@@ -580,12 +656,16 @@
\section*{\listtablename
\@mkboth{%
\MakeUppercase\listtablename}{\MakeUppercase\listtablename}}%
- \doublespacing\@starttoc{lot}\singlespacing}%
+ \ifthenelse{\boolean{DoubleSpace}}% 02-14-13
+ {\doublespacing\@starttoc{lot}\singlespacing}% 02-14-13
+ {\@starttoc{lot}}}
\renewcommand\listoffigures{%
\section*{\listfigurename
\@mkboth{\MakeUppercase\listfigurename}%
{\MakeUppercase\listfigurename}}%
- \doublespacing\@starttoc{lof}\singlespacing}%
+ \ifthenelse{\boolean{DoubleSpace}}% 02-14-13
+ {\doublespacing\@starttoc{lof}\singlespacing}% 02-14-13
+ {\@starttoc{lof}}}
}{}
%
\AtEndOfClass