summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ascelike
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-02-06 01:04:39 +0000
committerKarl Berry <karl@freefriends.org>2012-02-06 01:04:39 +0000
commitbd19e544f99a54aa85bca6579ae74c944dbe984d (patch)
treeb7c9c8bb09ef5272bdea46b8093a1e3367c877af /Master/texmf-dist/tex/latex/ascelike
parent10f2eca1edc430d6d0f50061695e25dffc2ad8f9 (diff)
ascelike (5feb12)
git-svn-id: svn://tug.org/texlive/trunk@25303 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ascelike')
-rw-r--r--Master/texmf-dist/tex/latex/ascelike/ascelike.cls74
1 files changed, 57 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/ascelike/ascelike.cls b/Master/texmf-dist/tex/latex/ascelike/ascelike.cls
index 48e5117a62b..ffcba31d61b 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.1
+%% Version 2.2
%%
%% An unofficial LaTeX class file for preparing review manuscripts and
%% camera-ready manuscripts for ASCE journals and conference proceedings
@@ -43,7 +43,8 @@
%% 2) It requires the following supplementary files:
%% ifthen.sty (part of the standard latex release)
%% setspace.sty (produces doubles spacing for journal manuscripts)
-%% endfloat.sty (places figures and tables at the end of the manuscript
+%% endfloat.sty (places figures and tables at the end of the manuscript)
+%% lineno.sty (places line numbers alongside the text)
%% Without these files, it won't work. All three files are available
%% from the CTAN archive, currently at //http:www.tug.org/ctan.html
%%
@@ -77,6 +78,10 @@
%% the Journal and Proceeding formats.
%% - 10pt, 11pt, or 12pt:
%% These can be used to override the default text size (12pt).
+%% - NoLists suppresses the inclusion of lists of figures and tables
+%% - NoPageNumbers suppressesthe printing of page numbers
+%% - SectionNumbers produces the numbering of sections and subsections,
+% unlike the ASCE convention.
%%
%% A few standard Latex options have been removed, as they don't seem to apply
%% in the ASCE environment: landscape, titlepage, openbib, leqno, fleqn
@@ -94,9 +99,9 @@
\typeout{}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesClass{ascelike}
- [2011/11/07 Version 2.1 ASCE-like manuscripts (Am. Soc. Civ. Engr.)]
+ [2011/12/16 Version 2.2 ASCE-like manuscripts (Am. Soc. Civ. Engr.)]
\typeout{}
-\RequirePackage{ifthen}[1994/11/15]
+\RequirePackage{ifthen}[1994/11/16]
%
\newboolean{Proceedings}
\newboolean{Journal}
@@ -107,6 +112,8 @@
\newboolean{NoPageNumbers}
\newboolean{NoLists}% 11-21-02
\newboolean{SectionNumbers}% 12-28-02
+\newboolean{NoLineNumbers}% 12-16-11
+\newboolean{LineNumbers}% 12-16-11
\newcommand{\ptsize}{}
%
\DeclareOption{Proceedings}%
@@ -124,6 +131,11 @@
\DeclareOption{SingleSpace}%
{\setboolean{SingleSpace}{true}\setboolean{DoubleSpace}{false}}
%
+\DeclareOption{NoLineNumbers}%
+ {\setboolean{NoLineNumbers}{true}\setboolean{LineNumbers}{false}}
+\DeclareOption{LineNumbers}%
+ {\setboolean{LineNumbers}{true}\setboolean{NoLineNumbers}{false}}
+%
% Declare text size options so that 12pt can be made the default option
\DeclareOption{10pt}{\renewcommand{\ptsize}{10pt}}
\DeclareOption{11pt}{\renewcommand{\ptsize}{11pt}}
@@ -153,12 +165,23 @@
% place figures at the end of the paper.
%
%
-% Use these defaults (can be changed with the BackFigs and InsideFigs options):
-% For Journal manuscripts: 1) place figures at the end of the manuscript,
-% 2) double spacing of text
+% Use these defaults
+% For Journal manuscripts:
+% 1) place figures at the end of the manuscript
+% (can be changed with the InsideFigs option)
+% 2) double spacing of text
+% (can be changed with the SingleSpace option)
+% 3) line numbers
+% (can be changed with the NoLineNumbers option)
+%
+% For Proceedings manuscripts:
+% 1) place figures within the text,
+% (can be changed with the BackFigs option)
+% 2) single spacing of text
+% (can be changed with the DoubleSpace option)
+% 3) no line numbers
+% (can be changed with the LineNumbers option)
%
-% For Proceedings manuscripts: 1) place figures within the text,
-% 2) single spacing of text
\ifthenelse{\boolean{Journal}}
{\ifthenelse{\boolean{InsideFigs}}{}{\setboolean{BackFigs}{true}}}
{\ifthenelse{\boolean{BackFigs}}{}{\setboolean{InsideFigs}{true}}}
@@ -167,29 +190,41 @@
{\ifthenelse{\boolean{SingleSpace}}{}{\setboolean{DoubleSpace}{true}}}
{\ifthenelse{\boolean{DoubleSpace}}{}{\setboolean{SingleSpace}{true}}}
%
+\ifthenelse{\boolean{Journal}}
+ {\ifthenelse{\boolean{NoLineNumbers}}{}{\setboolean{LineNumbers}{true}}}
+ {\ifthenelse{\boolean{LineNumbers}}{}{\setboolean{NoLineNumbers}{true}}}
+%
%
% Various messages displayed on the screen:
\typeout{}
\ifthenelse{\boolean{Journal}}
-{\typeout{A "Journal" style manuscript will be produced}}
-{\typeout{A "Proceedings" style manuscript will be produced}}
+{\typeout{(1) A "Journal" style manuscript will be produced}}
+{\typeout{(1) A "Proceedings" style manuscript will be produced}}
%
\ifthenelse{\boolean{BackFigs}}
{\typeout{%
- Figures and Tables will be placed together at the end of the manuscript
+ (2) Figures and Tables will be placed together at the end of the manuscript
(change with the 'InsideFigs' option)}}
{\typeout{%
- Figures and Tables will be placed within the text of the manuscript
+ (2) Figures and Tables will be placed within the text of the manuscript
(change with the 'BackFigs' option)}}
%
\ifthenelse{\boolean{DoubleSpace}}
{\typeout{%
- Text will be double spaced (change with the 'SingleSpace' option)}}
+ (3) Text will be double spaced (change with the 'SingleSpace' option)}}
{\typeout{%
- Text will be single spaced (change with the 'DoubleSpace' option)}}
+ (3) Text will be single spaced (change with the 'DoubleSpace' option)}}
%
-\typeout{Text will be \ptsize
+\typeout{(4) Text will be \ptsize
\space(change with the '10pt', '11pt', & '12pt' options)}
+%
+\ifthenelse{\boolean{LineNumbers}}% 12-16-11
+{\typeout{%
+ (5) Line numbers will be placed alonside the text (change with the
+ 'NoLineNumbers' option)}}
+{\typeout{%
+ (5) Line numbers will not be placed alonside the text (change with the
+ 'LineNumbers' option)}}
\typeout{}
%
% Delay the possible loading of these packages until the beginning of 7-18-00
@@ -205,7 +240,12 @@
%
\ifthenelse{\boolean{DoubleSpace}}
{\RequirePackage{setspace}\doublespacing}{}
-}% 7-18-00
+% 7-18-00
+\ifthenelse{\boolean{LineNumbers}}
+{\RequirePackage{lineno}\linenumbers%
+\setlength{\linenumbersep}{0.3in}%
+\linenumberdisplaymath}{}
+}%
%
% Page layout for Proceedings manuscripts:
\ifthenelse{\boolean{Proceedings}}