arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/ctr.cls	2010-04-01 15:22:18.000000000 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/jfmtmp.cls	2010-04-02 04:35:43.000000000 +0200
@@ -5,7 +5,8 @@
 %% Copyright (1996, 1997) Cambridge University Press
 %%
 %% by Mark A. Reed
-%%   based on JFM.STY v1.3.
+%%   based on JFM.sty v1.3.
+%% v1.25 8 Aug 2001 revised by Alison Woollatt to include DOI reference
 %%
 %% Incorporating parts of authordate.sty, by David Rhead.
 %% Incorporating subeqn.sty, by Stephen Gildea.
@@ -36,8 +37,9 @@
 %%

 \NeedsTeXFormat{LaTeX2e}[1996/06/01]
-\ProvidesClass{ctr}[2000/07/24 v0.2 Centre for Turbulence Research document class]
+\ProvidesClass{jfm}[2001/08/08 v1.25 Journal of Fluid Mechanics document class]

+\newif\if@index
 \newif\if@referee
 \newif\ifCUPmtlplainloaded

@@ -51,6 +53,7 @@
 \DeclareOption{notitlepage}{\relax}
 \DeclareOption{leqno}{\relax}
 \DeclareOption{fleqn}{\relax}
+\DeclareOption{index}{\@indextrue}
 \DeclareOption{prodtf}{\CUPmtlplainloadedtrue}
 \DeclareOption{referee}{\@refereetrue}

@@ -64,7 +67,6 @@
 \renewcommand\baselinestretch{}

 \edef\t@xtsize{\ifCUPmtlplainloaded 10.5\else 10\fi}
-%\edef\t@xtsize{\ifCUPmtlplainloaded 12\else 12\fi}

 \renewcommand\normalsize{%
   \@setfontsize\normalsize{\t@xtsize}\@xiipt
@@ -188,10 +190,7 @@
 \newlength\affilskip
 \setlength\affilskip{3\p@}

-%\setlength\textheight{8truein}
-\setlength\textheight{47.75\baselineskip}
-%\setlength\textheight{48\baselineskip}
-%\setlength\textheight{49\baselineskip}%original
+\setlength\textheight{49\baselineskip}
 \addtolength\textheight{\topskip}
 \setlength\textwidth{32pc}
 \setlength\columnsep{10\p@}
@@ -484,6 +483,65 @@
   \enskip\normalfont\itshape}
 \def\@endtheorem{\vskip\halflineskip\par}% FROM LATEX.LTX

+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+% theorem* code from psp
+
+\newif\ifrembrks
+\newcommand\removebrackets{\rembrkstrue}
+
+\def\@xnthm#1#2[#3]{% FROM LATEX.LTX
+\expandafter\@ifdefinable\csname #1\endcsname
+  {\@definecounter{#1}\@newctr{#1}[#3]%
+   \expandafter\xdef\csname the#1\endcsname{\expandafter\noexpand
+   \csname the#3\endcsname \@thmcountersep \@thmcounter{#1}}%
+   \global\@namedef{#1}{\@thm{#1}{#2}}%
+   \global\@namedef{#1*}{\@thmstar{#1}{#2}}%
+   \global\@namedef{end#1}{\@endtheorem}%
+   \global\@namedef{end#1*}{\@endthmstar}}%
+}
+
+\def\@ynthm#1#2{% FROM LATEX.LTX
+\expandafter\@ifdefinable\csname #1\endcsname
+  {\@definecounter{#1}%
+   \expandafter\xdef\csname the#1\endcsname{\@thmcounter{#1}}%
+   \global\@namedef{#1}{\@thm{#1}{#2}}%
+   \global\@namedef{#1*}{\@thmstar{#1}{#2}}%
+   \global\@namedef{end#1}{\@endtheorem}%
+   \global\@namedef{end#1*}{\@endthmstar}}%
+}
+
+\def\@othm#1[#2]#3{% FROM LATEX.LTX
+  \@ifundefined{c@#2}{\@nocounterr{#2}}%
+    {\expandafter\@ifdefinable\csname #1\endcsname
+    {\global\@namedef{the#1}{\@nameuse{the#2}}%
+     \global\@namedef{#1}{\@thm{#2}{#3}}%
+     \global\@namedef{#1*}{\@thmstar{#2}{#3}}%
+     \global\@namedef{end#1}{\@endtheorem}%
+     \global\@namedef{end#1*}{\@endthmstar}}}%
+}
+
+\def\@thmstar#1#2{\@ifnextchar[{\@ythmstar{#1}{#2}}{\@xthmstar{#1}{#2}}}
+\def\@xthmstar#1#2{\@beginthmstar{#2}{\csname the#1\endcsname}\ignorespaces}
+\def\@ythmstar#1#2[#3]{\@opargbeginthmstar{#2}{\csname the#1\endcsname}{#3}%
+  \ignorespaces}
+
+\def\@thmstarcounter#1{{}}
+\def\@thmstarcountersep{{}}
+
+\def\@beginthmstar#1#2{%
+  \par\vskip\halflineskip {\normalfont\scshape #1.}%
+  \enskip\normalfont\itshape}
+
+\def\@opargbeginthmstar#1#2#3{%
+  \par\vskip\halflineskip {\normalfont\scshape #1\ {\normalfont\rmfamily
+  \ifrembrks #3\global\rembrksfalse\else (#3)\fi.}}%
+  \normalfont\itshape\enskip}
+
+\def\@endthmstar{\vskip\halflineskip\par}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
 \newsavebox{\proofbox}
 \sbox{\proofbox}{\unitlength 1\p@\begin{picture}(7,7)%
   \put(0,0){\framebox(7,7){}}\end{picture}}
@@ -638,7 +696,7 @@
       \else
         \setbox\@tempboxa\hbox{\quad\@thefnmark\enskip ##1}%
         \ifdim\wd\@tempboxa>\hsize \unhbox\@tempboxa\else
-        \mbox{\unhbox\@tempboxa\quad}\fi
+        \centerline{\unhbox\@tempboxa\quad}\fi
       \fi}%
     \newpage \global\@topnum\z@
     \@maketitle{#1}\thispagestyle{titlepage}\@thanks
@@ -674,7 +732,7 @@
   \vskip 4\p@ \@plus 1\p@
   {\normalfont\small \@affiliation \par}%
   \vskip 8\p@ \@plus 2\p@ \@minus 1\p@
-% Bill Change July 7 2000 {\normalfont\small (Received \@date)}%
+  {\normalfont\small (\@date)}%
  \par}%
  \vskip 8\p@ \@plus 2\p@ \@minus 1\p@
 }
@@ -712,33 +770,26 @@
 \edef\@pubyear{\number\year}

 \newcommand\journal[1]{\gdef\@journal{#1}}
+
+\newcommand\doi[1]{\gdef\@doi{10.1017/#1}}
+\gdef\@doi{10.1017/S000000000000000X}
+
 \gdef\@journal{%
   \vbox to 5.5\p@{\noindent
     \parbox[t]{4.5in}{\normalfont\indexsize\baselineskip 9\p@
       {\itshape J.\ Fluid\ Mech.} (\@pubyear), {\itshape vol.} \@volume,
-      {\itshape pp.} \@pagerange.\quad Printed in the United Kingdom\\[2.5\p@]
-      {\copyright\ \@pubyear\ Cambridge University Press}}%
+      {\itshape pp.} \@pagerange.\quad \copyright\ \@pubyear\ Cambridge University
+        Press\\[2.5\p@]
+      DOI: \@doi\quad {Printed in the United Kingdom}}%
   \vss}%
 }
-
-%\gdef\@underjournal{%
-%  \vbox to 5.5\p@{\noindent
-%    \parbox[t]{4.5in}{\normalfont\indexsize{\itshape Under consideration
-%      for publication in J.\ Fluid\ Mech.}\\[2.5\p@]
-%      {\ \ }}%
-%  \vss}%
-%}
-
 \gdef\@underjournal{%
   \vbox to 5.5\p@{\noindent
-    \parbox[t]{3in}{\normalfont\indexsize{\itshape
-        Center for Turbulence Research \\
-        Annual Research Briefs 2004}\\[2.5\p@]
+    \parbox[t]{4.5in}{\normalfont\indexsize{\itshape \ }\\[2.5\p@]
       {\ \ }}%
   \vss}%
 }

-
 \def\ps@headings{\let\@mkboth\markboth
   \def\@oddhead{\hfil{\itshape\@shorttitle}\hfil\llap{\thepage}}%
   \def\@evenhead{\rlap{\thepage}\hfil\itshape\@shortauthor\hfil}%
@@ -998,8 +1049,7 @@
   \vskip 4\p@ \@plus .5\p@ \@minus .5\p@
   \nobreak
   \list{}{\labelwidth\z@ \leftmargin 2em \itemindent -2em \itemsep 1\p@}%
-%  \normalfont\small \parindent\z@
-  \normalfont\normalsize \parindent\z@
+  \normalfont\small \parindent\z@
   \parskip\z@ \@plus .1\p@\relax
   \sloppy\clubpenalty\z@ \widowpenalty\@M
   \sfcode`\.\@m\relax}
@@ -1050,93 +1100,63 @@
   \flushbottom
 \fi

-%good old-fashioned symbols from TeX
-\newcount\ndots
-\def\drawline#1#2{\raise 2.5pt\vbox{\hrule width #1pt height #2pt}}
-\def\spacce#1{\hskip #1pt}
-\def\solid{\drawline{24}{.5}\nobreak\ }
-\def\bdash{\hbox{\drawline{4}{.5}\spacce{2}}}
-\def\dashed{\bdash\bdash\bdash\bdash\nobreak\ }
-\def\bdot{\hbox{\drawline{1}{.5}\spacce{2}}}
-\def\dotted{\hbox{\leaders\bdot\hskip 24pt}\nobreak\ }
-\def\chndash{\hbox {\drawline{8.5}{.5}\spacce{2}\drawline{3}{.5}\spacce{2}\drawline{8.5}{.5}}\nobreak\ }
-\def\chndot{\hbox {\drawline{9.5}{.5}\spacce{2}\drawline{1}{.5}\spacce{2}\drawline{9.5}{.5}}\nobreak\ }
-\def\chndotdot{\hbox {\drawline{8}{.5}\spacce{2}\drawline{1}{.5}\spacce{2}\drawline{1}{.5}\spacce{2}\drawline{8}{.5}}\nobreak\ }
-\def\trian{\raise 1.25pt\hbox{$\scriptscriptstyle\triangle$}\nobreak\ }
-\def\circle{$\circ$\nobreak\ }
-\def\diam{$\diamond$\nobreak\ }
-\def\solidcircle{$\bullet$\nobreak\ }
-
-\def\smalltriangle{$\scriptstyle\triangle\textstyle$\nobreak\ }
-\def\smallplus{$\scriptstyle + \textstyle$\nobreak\ }
-\def\smalltimes{$\scriptstyle\times\textstyle$\nobreak\ }
-\def\smallnabla{$\scriptstyle\nabla\textstyle$\nobreak\ }
-\def\square{${\vcenter{\hrule height .4pt
-        \hbox{\vrule width .4pt height 3pt \kern 3pt
-        \vrule width .4pt}
-        \hrule height .4pt}}$\nobreak\ }
-\def\plus{\raise 1.25pt \hbox{$\scriptscriptstyle +$}\nobreak\ }
-\def\x{\raise 1.25pt \hbox{$\scriptscriptstyle \times$}\nobreak\ }
-\def\ldash{\hbox {\drawline{7}{.5}\spacce{2}\drawline{7}{.5}\spacce{2}\drawline{7}{.5}}\nobreak\ }
-\def\lchndash{\hbox {\drawline{15}{.5}\spacce{3}\drawline{7}{.5}}\nobreak\ }
-\def\tsolid{\drawline{24}{1.2}\nobreak\ }
-\def\solidtrian{\raise 1.25pt
-   \hbox to 3bp{\special{" newpath  0 0 moveto 3 0   lineto 1.5 2.598
-lineto closepath fill}\hfill}\nobreak\ }
-\def\solidsquare{\vrule height .9ex width .8ex depth -.1ex\nobreak\ }
-
-\def\dotcirc{$\cdots\ $\circle$\cdots$\ }
-
-\def\dashx {\bdash\bdash\smalltimes\bdash\bdash}
-
-\def\chndashx {\drawline{8.5}{.5}\spacce{2}
-\drawline{3}{.5}$\scriptstyle\times\textstyle$\drawline{8.5}{.5}\spacce{2}
-\drawline{3}{.5}\nobreak\ }
-
-\def\solidcclose{\drawline{10}{.5}\nobreak\raise
-  0.5pt\hbox{$\bullet$}\drawline{10}{.5}\nobreak\ }
-%line,solidcircle,line
-
-\def\solidsclose{\drawline{10}{.5}\nobreak\raise
-  0.5pt\hbox{\solidsquare}\drawline{10}{.5}\nobreak\ }
-%line,solidsquare,line
-
-\def\solidtclose{\drawline{10}{.5}\nobreak\raise
-  0.5pt\hbox{\solidtrian}\drawline{10}{.5}\nobreak\ }
-%line,solidtriangle,line
-
-\def\solidcopen{\drawline{10}{.5}\nobreak\raise
-  0.5pt\hbox{\circle}\drawline{10}{.5}\nobreak\ }
-%line,opencircle,line
-
-\def\solidsopen{\drawline{10}{.5}\nobreak\raise
-  0.5pt\hbox{\square}\drawline{10}{.5}\nobreak\ }
-%line,opensquare,line
-
-\def\solidtopen{\drawline{10}{.5}\nobreak\raise
-  0.5pt\hbox{\trian}\drawline{10}{.5}\nobreak\ }
-%line,opentriangle,line
-
-\def\solidx{\drawline{10}{.5}\nobreak\raise
-  0.5pt\hbox{\x}\drawline{10}{.5}\nobreak\ }
-%line,x,line
-
-%sckfonts.tex courtesy Stavros Kassinos
-
-\font\msakkk=msam10
-\def\diamsol{{\msakkk \char7}}
-\def\diamop{{\msakkk \char6}}
-\def\starsol{{\msakkk \char70}}
-\def\triansolu{{\msakkk \char78}}
-\def\triansold{{\msakkk \char72}}
-\def\triansolr{{\msakkk \char73}}
-\def\triansoll{{\msakkk \char74}}
-\def\trianopu{{\msakkk \char77}}
-\def\trianopd{{\msakkk \char79}}
-\def\trianopr{{\msakkk \char66}}
-\def\trianopl{{\msakkk \char67}}
-\def\squarsol{{\msakkk \char4}}
-\def\squarop{{\msakkk \char3}}
+\if@index
+  \newcommand\indextitlesize{\@setfontsize\indextitlesize\@xiipt{18}}
+
+  \renewcommand\ls{\kern.10em\relax}%.15
+  \renewcommand\ns{\kern.44em\relax}% .5
+
+  \def\@maketitle#1{%
+    \newpage
+    \vspace*{8\p@}%
+    {\centering \sloppy
+      {\normalfont\indextitlesize\fontswitch\bfseries \@title \par}%
+      \vskip 14\p@ \@plus 2\p@ \@minus 1\p@
+        {\normalfont\large\fontswitch\bfseries\baselineskip=12\p@
+%       By\ns \uppercase{\@author}
+        \par}%
+      \vskip 4\p@ \@plus 1\p@
+        {\normalfont\small \@affiliation \par}%
+      \vskip 8\p@ \@plus 2\p@ \@minus 1\p@
+%       {\normalfont\small (Received \@date)}%
+        \par}%
+    \vspace*{-14\p@ \@plus 2\p@ \@minus 1\p@}
+  }
+  \renewcommand\journal[1]{\gdef\@journal{#1}}
+  \gdef\@journal{%
+    \vbox to 5.5\p@{\noindent
+      \parbox[t]{4.5in}{\normalfont\indexsize\baselineskip 9\p@
+        \textsc{Journal of Fluid Mechanics}\hfill\textsc{Volume 423\quad\date}\\%[2.5\p@]
+        {}
+    }\vss}%
+  }
+
+  \def\ps@titlepage{\leftskip\z@\let\@mkboth\@gobbletwo\vfuzz=5\p@
+    \def\@oddhead{\small\textsc{J\ls o\ls u\ls r\ls n\ls a\ls l\ns
+      o\ls f\ns
+      F\ls l\ls u\ls i\ls d\ns
+      M\ls e\ls c\ls h\ls a\ls n\ls i\ls c\ls s}%
+      \hfill\textsc{V\ls o\ls l\ls u\ls m\ls e\ns \@volume\quad 25\ns N\ls o\ls v\ls e\ls m\ls b\ls e\ls r\ns 2000}}%
+    \def\@evenhead{\@j@urnal}%
+    \def\@oddfoot{}%
+    \def\@evenfoot{}%
+    \def\sectionmark##1{}%
+    \def\subsectionmark##1{}%
+  }
+
+  \renewcommand*\descriptionlabel[1]{\hspace\labelsep \normalfont\fontswitch\bfseries #1}
+  \renewenvironment{description}
+    {\list{}{\parsep 4pt\small\labelwidth\z@\labelsep 0.5em
+    \leftmargin 18pt\itemindent-\leftmargin
+    \let\makelabel\descriptionlabel}}
+    {\endlist}
+
+  \renewcommand\title{\@ifnextchar [{\@titletwo}{\@titleone}}
+  \def\@titletwo[#1]#2{\gdef\@title{#2}\gdef\@shorttitle{#1}}
+  \def\@titleone#1{\gdef\@title{#1}\gdef\@shorttitle{#1}}
+  \gdef\@title{\mbox{}}
+\fi% end of \if@index
+

 \endinput

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns