In main file: change the bold italics vectors to plain bold
authorU-LEO-FUJITSU-XP\Leo <Leo@leo-fujitsu-xp.(none)>
Sun, 12 Jul 2009 07:45:19 +0000 (03:45 -0400)
committerU-LEO-FUJITSU-XP\Leo <Leo@leo-fujitsu-xp.(none)>
Sun, 12 Jul 2009 07:45:19 +0000 (03:45 -0400)
spiebook.cls [new file with mode: 0755]

diff --git a/spiebook.cls b/spiebook.cls
new file mode 100755 (executable)
index 0000000..c8a351a
--- /dev/null
@@ -0,0 +1,422 @@
+%% spiejour.cls - Version 1.00 - 27 September 2006\r
+%% LaTeX2e class file to format manuscript for SPIE e-journals\r
+%  Requires following LaTeX packages:\r
+%  times.sty  % default font for this class\r
+%  float.sty\r
+%  ifthen.sty\r
+%  cite.sty  % version 4.01 or later\r
+%  color.sty  % colored fonts\r
+% History\r
+%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
+%  Adapted from spie.cls by Kenneth Hanson  27 September 2006%\r
+%%%%%%%%%%%%%%%%%%%%%%%%\r
+% Usage:\r
+% \documentclass[]{spie}  %% US letter paper size - req. by SPIE\r
+% \documentclass[a4paper]{spie}  %% use this for A4 paper\r
+%\r
+% This style file does not automatically implement all the formatting\r
+%  required for an SPIE manuscript.  The user must make a few \r
+%  manual adjustments For proper formatting, such as:\r
+% 1. Title, subsection, and subsubsection should be in lower case \r
+%    except for the first letter and proper nouns or acronyms\r
+% 2. Format authors and their affiliations as follows\r
+%    \author{author1\supscr{a}, author2\supscr{b}, and author3\supscr{c} )\r
+%    \affiliation{\supscr{a}affiliation1\\\r
+%                 \supscr{b}affiliation2\\\r
+%                 \supscr{c}affiliation3\r
+%                }\r
+%\r
+%%%  Note: \supscr{} is defined in this class\r
+% ------------------------------------------------------------\r
+%%  Based on standard LaTeX article class --\r
+\NeedsTeXFormat{LaTeX2e}\r
+\ProvidesClass{spiebook}[2007/04/11  v0.01 SPIE book class]\r
+\r
+\PassOptionsToClass{11pt}{book}\r
+\DeclareOption{a4paper}{%\r
+   \AtEndOfClass{%\r
+%       \oddsidemargin 1.31cm    % for side margins of 3.85 cm\r
+%       \evensidemargin 1.31cm   % for side margins of 3.85 cm\r
+       \typeout{a4paper used}\r
+       }\r
+   }\r
+\r
+\r
+\r
+\ProcessOptions*      % set margins for a4paper if specified\r
+\LoadClass{book}  % build on standard article class\r
+\r
+\r
+\r
+\r
+%% type out specified font size\r
+\if0\@ptsize\typeout{ten-point font}\fi\r
+\if1\@ptsize\typeout{eleven-point font}\fi\r
+\if2\@ptsize\typeout{twelve-point font}\fi\r
+\r
+\IfFileExists{times.sty}{\RequirePackage[T1]{fontenc}\RequirePackage{times}}{%\r
+  \IfFileExists{lmodern}{\RequirePackage[T1]{fontenc}\RequirePackage{lmodern}}{%\r
+    \renewcommand\rmdefault{utm}%\r
+    \renewcommand\sfdefault{uhv}%\r
+    \renewcommand\ttdefault{ucr}%\r
+}%\r
+}\r
+\r
+\RequirePackage{float}\r
+\RequirePackage{ifthen}\r
+\RequirePackage{cite}[2003/11/04] % need vers. > 4.01 \r
+\RequirePackage{color}\r
+%% page format (see "Sample manuscript showing specifications and style")\r
+%% following based on default top and left offset of 1 inch = 25.4mm\r
+%% the next two side margins are for US letter paper \r
+%% and are overridden by the a4paper option\r
+\oddsidemargin 0.75in           % for side margin of 1.75 in\r
+\evensidemargin 0.75in          % for side margin of 1.75 in\r
+%\r
+\textheight 8in                % approx 20.32 cm\r
+\textwidth 5in                 % approx 12.7 cm\r
+\topsep 11\p@\r
+\headheight 12\p@ \headsep 3pc      % avoid extra space for header\r
+\advance\headsep by -\topsep\r
+\topmargin 0.7in                % for top margin of 1.7in\r
+\advance\topmargin by -\headheight\r
+\advance\topmargin by -\headsep\r
+\setlength{\parskip}{\z@} % spacing between paragraph\r
+%%\parskip 1ex plus 1ex minus 0.3ex % spacing between paragraphs\r
+\date{}                           % avoid date\r
+\r
+%%  space for floats - figures and tables\r
+\setlength{\abovecaptionskip}{0ex}\r
+\setlength{\floatsep}{3ex plus 0.3ex minus 0.3ex} \r
+\setlength{\textfloatsep}{ 3ex plus 3ex minus 1.5ex}\r
+\renewcommand{\textfraction}{0.10} \r
+\renewcommand{\floatpagefraction}{0.60} \r
+\renewcommand{\topfraction}{0.90} \r
+\renewcommand{\bottomfraction}{0.90}\r
+\setcounter{totalnumber}{3} \r
+\setcounter{topnumber}{2} \r
+\setcounter{bottomnumber}{2} \r
+\setlength{\doublerulesep}{\arrayrulewidth}\r
+\r
+\r
+%%%% useful definitions %%%%\r
+\def\skiplinehalf{\medskip\\}\r
+\def\skipline{\\}\r
+\def\exspace{\vspace{1ex}}\r
+% superscript, to cross reference author and affiliations\r
+\def\supscr#1{\raisebox{0.8ex}{\small #1}\hspace{0.05em}}  \r
+% superscript in italics, \r
+\def\supit#1{\raisebox{0.8ex}{\small\it #1}\hspace{0.05em}}  \r
+\r
+\newcommand{\LB}[1][3]{\linebreak[#1]} % allows linebreak with default of level 3; \LB[2] uses level 2\r
+\newcommand{\linkable}[1]{\textcolor{blue}{\underline{#1}}}\r
+%%%%%%%%%%%%%%%%%%%%\r
+%%%%  define \ample font size %%%%\r
+%% 10% larger than \normalsize for 10 pt, \r
+%% but smaller than \large\r
+\def\ample{\large}   % insurance\r
+\r
+\def\setamplefont{\r
+\if0\@ptsize    % 10pt text; use 11pt bold fonts\r
+  \def\ample{\@setsize\large{12pt}\xipt\@xipt}\r
+\fi\r
+\r
+\if1\@ptsize    % 10pt text; use 11pt bold fonts\r
+  \def\ample{\@setsize\large{12pt}\xiipt\@xiipt}\r
+\fi\r
+\r
+\if2\@ptsize    % 12pt text; use 13.2pt bold fonts\r
+  \renewcommand{\ample}{\fontsize{13.2pt}{15.8pt}\selectfont\bfseries} \r
+  \ifcmr \font\ample = cmbx17 at 13.2truept  \fi\r
+\fi  }\r
+\r
+\r
+%%%% define title aspects %%%%\r
+\def\titlefont{\normalfont\sffamily\fontsize{24}{30}\bfseries}  %% insurance\r
+\def\chapternamefont{\huge\bfseries}\r
+\def\title#1{\thispagestyle{empty}\gdef\@title{\titlefont{\chapternamefont\r
+      \chaptername\ \thechapter}\\ #1}} \r
+\def\runningchapter#1{\markboth{#1}{}}\r
+\def\runningtitle#1{\markright{#1}}\r
+\r
+\r
+\def\settitlefont{\r
+%%% identify font used; cmr = Computer Modern Roman, ptm = Times Roman\r
+\typeout{\rmdefault -font_in_spiecls}\r
+\def\cmr{cmr}  % variables for font tests\r
+\newif\ifcmr\r
+\def\ptm{ptm}\r
+\newif\ifptm\r
+\ifthenelse{\equal{\rmdefault}{\cmr}}{\cmrtrue}{\cmrfalse}\r
+\ifthenelse{\equal{\rmdefault}{\ptm}}{\ptmtrue}{\ptmfalse}\r
+%%% scale title according to default font and size\r
+\if0\@ptsize    % 10pt text; use 16pt bold fonts\r
+  \renewcommand{\titlefont}{\fontsize{16pt}{19.2pt}\selectfont\bfseries}\r
+  \ifcmr  \font\titlefont = cmbx12 at 16truept  \fi\r
+\fi\r
+% for 11pt text, title font should be 17pt = \LARGE for 11pt. No change needed\r
+\if2\@ptsize    % 12pt text; use 19.2pt bold fonts\r
+  \renewcommand{\titlefont}{\fontsize{19.2pt}{23pt}\selectfont\bfseries}\r
+  \ifcmr  \font\titlefont = cmbx12 at 19.2truept  \fi\r
+\fi  }\r
+\r
+\def\authorinfo#1{\gdef\@authorinfo{#1}}\r
+\authorinfo{}     %% default is empty\r
+\let\@affiliation\@empty\r
+\def\affiliation#1{\gdef\@affiliation{#1}}\r
+\r
+%% Chapter\r
+%\let\chapter\title\r
+\r
+\renewcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi\r
+                    \thispagestyle{empty}%\r
+                    \global\@topnum\z@\r
+                    \@afterindentfalse\r
+                    \secdef\@chapter\@schapter}\r
+\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne\r
+                       \if@mainmatter\r
+                         \refstepcounter{chapter}%\r
+                         \typeout{\@chapapp\space\thechapter.}%\r
+                         \addcontentsline{toc}{chapter}%\r
+                                   {\protect\numberline{\thechapter}#1}%\r
+                       \else\r
+                         \addcontentsline{toc}{chapter}{#1}%\r
+                       \fi\r
+                    \else\r
+                      \addcontentsline{toc}{chapter}{#1}%\r
+                    \fi\r
+                    \chaptermark{#1}%\r
+                    \addtocontents{lof}{\protect\addvspace{10\p@}}%\r
+                    \addtocontents{lot}{\protect\addvspace{10\p@}}%\r
+                    \if@twocolumn\r
+                      \@topnewpage[\@makechapterhead{#2}]%\r
+                    \else\r
+                      \@makechapterhead{#2}%\r
+                      \@afterheading\r
+                    \fi}\r
+\def\@makechapterhead#1{%\r
+  \vspace*{50\p@}%\r
+  {\parindent \z@ \raggedright \normalfont\r
+    \ifnum \c@secnumdepth >\m@ne\r
+      \if@mainmatter\r
+        \fontsize{20}{24}\sffamily\bfseries \@chapapp\space \thechapter\r
+        \par\nobreak\r
+        \vskip 4\p@\r
+      \fi\r
+    \fi\r
+    \interlinepenalty\@M\r
+    \fontsize{24}{30} \bfseries #1\par\nobreak\r
+    \vskip 20\p@\r
+  }}\r
+\def\@schapter#1{\if@twocolumn\r
+                   \@topnewpage[\@makeschapterhead{#1}]%\r
+                 \else\r
+                   \@makeschapterhead{#1}%\r
+                   \@afterheading\r
+                 \fi}\r
+\def\@makeschapterhead#1{%\r
+  \vspace*{50\p@}%\r
+  {\parindent \z@ \raggedright\r
+    \normalfont\r
+    \interlinepenalty\@M\r
+    \fontsize{24}{30}\sffamily \bfseries  #1\par\nobreak\r
+    \vskip 20\p@\r
+  }}\r
+\r
+\r
+\def\runninghead@font{\sffamily\fontsize{9}{11}\itshape}\r
+\def\runninghead@rule{\hbox to0pt{\vbox{\hrule height-2.5\p@ depth3pt width\textwidth}\hss}}\r
+\def\ps@headings{%\r
+      \let\@oddfoot\@empty\let\@evenfoot\@empty\r
+      \def\@evenhead{\runninghead@rule\@gobble{\thepage}\hfil\runninghead@font\leftmark}%\r
+      \def\@oddhead{\runninghead@rule{\runninghead@font\rightmark}\hfil\@gobble{\thepage}}%\r
+      \let\@mkboth\markboth%\r
+}\r
+\r
+\r
+%%%%  define footnote attributes %%%%\r
+\renewcommand{\footnotesize}{\small}  % enlarge footnote font to small\r
+\renewcommand{\thefootnote}{\fnsymbol{footnote}}\r
+\ifx\@authorinfo\empty \else\footnotetext[0]{\@authorinfo}\fi      \r
+%% use zero to avoid footnote mark\r
+%\renewcommand{\thefootnote}{\fnsymbol{footnote}}  \r
+%% use footnote symbols, not numbers\r
+\r
+\let\sv@footnote=\footnote\r
+\def\footnote{\ifnum\c@footnote>8\setcounter{footnote}{0}\fi\sv@footnote}\r
+\r
+\r
+\r
+\r
+%%%% section aspects %%%%\r
+% all headings bold\r
+% all section headings, ample size, flush left\r
+\def\sectfont{\raggedright\sffamily\bfseries\large}\r
+\def\subsectfont{\raggedright\sffamily\bfseries\normalsize}\r
+\def\subsubsectfont{\raggedright\sffamily\bfseries\small}\r
+\r
+\def\section{\@startsection{section}{1}{\z@}\r
+   {-2.5ex plus -1ex minus -0.5ex}{1.2ex plus 0.5ex minus 0ex}{\sectfont}} \r
+\def\subsection{\@startsection{subsection}{2}{\z@}\r
+   {-2.5ex plus -1ex minus -0.5ex}{1.1ex plus 0.1ex minus 0.1ex}{\subsectfont}}\r
+\def\subsubsection{\@startsection{subsubsection}{3}{\z@}\r
+   {-2.5ex plus -1ex minus -0.5ex}{1.1ex plus 0.1ex}{\subsubsectfont}}\r
+\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%\r
+                                    {3.25ex \@plus1ex \@minus.2ex}%\r
+                                    {-1em}%\r
+                                    {\normalfont\small\sffamily\itshape}}\r
+\r
+\setcounter{secnumdepth}{3}\r
+\gdef\sectionmark#1{}\r
+%\def\chaptermark#1{\markleft{#1}}\r
+%\r
+\def\@seccntformat#1{\csname the#1\endcsname\enskip}\r
+\r
+%%%% references %%%%\r
+\def\citeleft{}\r
+\def\citeright{}\r
+\def\cite@fmt#1{\ensuremath{{}^{\mbox{\scriptsize #1}}}}\r
+\r
+\r
+%\RequirePackage{cite}\r
+% Hacking cite.sty\r
+\def\@cite#1#2{\leavevmode %\cite@adjust\r
+  \cite@fmt{\citeleft{#1\if@tempswa \citemid #2\fi\r
+  \spacefactor\@m % punctuation in note doesn't affect outside\r
+  }\citeright}}\r
+\def\inlinecite#1{\bgroup\let\cite@fmt\relax\cite{#1}\egroup}\r
+\r
+\r
+\r
+\r
+% Give the references section a section number\r
+\def\thebibliography#1{\section*{References}%\r
+  \addcontentsline{toc}{section}{References}{}%\r
+ \list\r
+ {\arabic{enumi}.~}   % kmh - was  {\arabic{enumi}.}\r
+ {\settowidth\labelwidth{#1.~}\leftmargin\labelwidth\r
+ \advance\leftmargin\labelsep \usecounter{enumi}}\r
+ \def\newblock{\hskip .11em plus .33em minus .07em}\r
+  %% reduce vspace between items\r
+  \parskip 0.2ex plus 0.001ex minus 0ex   \r
+% \sloppy\clubpenalty4000\widowpenalty4000\r
+ \sfcode`\.=1000\relax}\r
+\let\endthebibliography=\endlist\r
+\r
+\r
+%%%% Add theorem, lemma, and definition environments %%%%\r
+% kmh - noindent\r
+\def\@begintheorem#1#2{\addvspace{2ex}%\r
+   \par\noindent\bgroup{#1\ #2. }\ignorespaces}\r
+\def\@opargbegintheorem#1#2#3{\addvspace{2ex}%\r
+   \par\noindent\bgroup{ #1\ #2\ (#3). }\ignorespaces}\r
+\def\@endtheorem{\egroup}\r
+\def\proof{\par{\it Proof}. \ignorespaces}\r
+\def\endproof{{\ \vbox{\hrule\hbox{%\r
+   \vrule height1.3ex\hskip0.8ex\vrule}\hrule\r
+  }}\par}\r
+\newtheorem{theorem}{Theorem}\r
+\newtheorem{lemma}{Lemma}\r
+\newtheorem{definition}{Definition}\r
+\r
+%%%% Figure and table captions %%%\r
+\def\figurenamefont{\sffamily\fontsize{9}{11}\bfseries}\r
+\def\figurefont{\sffamily\fontsize{9}{11}\selectfont}\r
+\renewcommand\figurename{Figure}\r
+\long\def\@makecaption#1#2{%     % from article.cls\r
+  \vskip\abovecaptionskip\r
+  \sbox\@tempboxa{{{\figurenamefont #1}  \figurefont#2}}%\r
+  \ifdim \wd\@tempboxa >\hsize   % unbold with period\r
+    {{\figurenamefont #1} \figurefont#2 \par}\r
+  \else\r
+    \global \@minipagefalse\r
+    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%\r
+  \fi\r
+  \vskip\belowcaptionskip}\r
+\r
+\r
+%%%% appendix aspects %%%% \r
+% use \appendix to start an appendix\r
+% use \section{} for each appendix section\r
+\def\appendix{\def\append{1}\r
+  \par\r
+  \setcounter{section}{0}\r
+  \setcounter{subsection}{0}\r
+  \setcounter{subsubsection}{0}\r
+  \def\thesection{\Alph{section}}  \r
+  \def\thesubsection{\Alph{section}.\arabic{subsection}}\r
+\def\thesubsubsection{\r
+\Alph{section}.\arabic{subsection}.\arabic{subsubsection}}\r
+}\r
+\r
+%% Table of Contents\r
+\renewcommand\@pnumwidth{1.55em}\r
+\renewcommand\@tocrmarg{0.00em}\r
+\renewcommand\@dotsep{10000}\r
+%\r
+\def\pagenum@shape{\normalsize\sffamily}\r
+\def\part@shape{}\r
+\def\chapter@shape{}\r
+\def\section@shape{\normalsize\sffamily}\r
+\def\subsection@shape{\normalsize\sffamily}\r
+\def\subsubsection@shape{\normalsize\sffamily}\r
+%\r
+\def\l@chapter@hook{}\r
+\def\l@section@hook{\section@shape}\r
+\def\l@subsection@hook{\normalsize\subsection@shape\@tempdimb\cw@chapter\advance\@tempdimb by\cw@section}\r
+\def\l@subsubsection@hook{\normalsize\subsubsection@shape\@tempdimb\cw@chapter\advance\@tempdimb by\cw@section}\r
+\r
+\setcounter{tocdepth}{2}\r
+\def\contentsline#1#2#3{\bgroup\let\num@dot@sep\enspace\r
+  \csname l@#1@hook\endcsname\csname l@#1\endcsname{#2}{\@gobble{#3}}\egroup}\r
+%\r
+\def\max@cw@dim#1#2{%\r
+  \bgroup\r
+    \let\num@dot@sep\enspace\r
+%    \def\num@dot@sep{\hskip0pt}\r
+    \csname l@#1@hook\endcsname\r
+    \setbox\@tempboxa\hbox{#2\num@dot@sep}%\r
+    \@ifundefined{cw@#1}{\expandafter\newdimen\csname cw@#1\endcsname}{}%\r
+    \global\csname cw@#1\endcsname\wd\@tempboxa\r
+  \egroup\r
+  }\r
+\def\maxcchap#1{\max@cw@dim{chapter}{#1}}\r
+\def\maxcsec#1{\max@cw@dim{section}{#1}}\r
+\def\maxcssec#1{\max@cw@dim{subsection}{#1}}\r
+\AtBeginDocument{%\r
+  \maxcchap{}%\r
+  \maxcsec{1.1}%\r
+  \maxcssec{1.1.1}%\r
+  }\r
+\r
+\r
+\renewcommand*\l@part[2]{}\r
+\renewcommand*\l@chapter[2]{}\r
+\r
+\renewcommand*\l@section{\@dottedtocline{1}{\z@}{\cw@section}}\r
+\renewcommand*\l@subsection{\@dottedtocline{2}{\cw@section}{\cw@subsection}}\r
+\renewcommand*\l@subsubsection{\@dottedtocline{3}{1.0em}{10.1em}}\r
+\renewcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}\r
+\renewcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}\r
+\r
+\renewcommand\tableofcontents{%\r
+  \medskip\r
+    \if@twocolumn\r
+      \@restonecoltrue\onecolumn\r
+    \else\r
+      \@restonecolfalse\r
+    \fi\r
+    \@starttoc{toc}%\r
+    \if@restonecol\twocolumn\fi\r
+\medskip\r
+    }\r
+\r
+\r
+%% Authors\r
+\newenvironment{aug}{%\r
+\def\author##1{\noindent\bgroup\sffamily\bfseries\large##1\egroup\par}%\r
+\def\affilation##1{\noindent\bgroup\sffamily##1\egroup\par}%\r
+}{\addvspace{\bigskipamount}}\r
+\pagestyle{headings}\r
+\endinput\r
+%% end of spiebook.cls
\ No newline at end of file