Debian Codegraph @

packages/tpetra/core/doc/TpetraDesign/TpetraDesign.cls

raw
1 %%-------------------------------------------------------------------------
2 %% Copyright Notice
3 %%
4 %% Copyright (c) 2000, Sandia Corporation, Albuquerque, NM.
5 %%-------------------------------------------------------------------------
6
7 %%-------------------------------------------------------------------------
8 %% Purpose : LaTeX class (.cls) file for the Tpetra Design Document report.
9 %% Special Notes : Under construction - a merge between the original Xyce
10 %% version hack and the SAND version by Rolf Riesen.
11 %% Creator : Michael A. Heroux, Sandia National Labs
12 %%
13 %%-------------------------------------------------------------------------
14 % ---------------------------------------------------------------------------- %
15 % Started with Scott Hutchinsons Xyce cls file and modified for use with Trilinos.
16 %
17 % Michael A. Heroux January 28, 2003.
18 %
19 % We start out with the standard LaTeX document class "article" and
20 % modify it so it conforms to the Sandia Technical report style.
21 % The modifications are based on "Guide to Preparing SAND Reports",
22 % SAND98-0730, edited by Tamara K. Locke.
23 %
24 % Rolf Riesen, May 29, 2002.
25 %
26 %
27 % 06/14/2002 v1.01
28 % Make distribution list wider. Spaces between area codes and phone numbers
29 % 06/17/2002 v1.02
30 % Use \raggedright for main title
31 % 06/19/2002 v1.03
32 % Set tocdepth to 2 to only list sections and subsections in TOC
33 % 08/07/2002 v1.04
34 % Added a Makefile based on one Mike Heroux provided
35 % Allow for distribution lists that span more than one page and
36 % typeset the distribution in two columns
37 %
38
39
40 % The version of this file
41 \typeout{Using Sandia Trilinos Technical Report class:
42 January 28, 2003, v1.00 Michael Heroux}
43 \newcommand\SANDreportVersion{2003/01/28 v1.00}
44
45 % We need LaTeX 2e or better
46 \NeedsTeXFormat{LaTeX2e}
47
48 % We need ifthenelse. \newboolean are false by default
49 \RequirePackage{ifthen}
50 \RequirePackage{graphicx}
51 \RequirePackage{multicol}
52
53 \newboolean{relaxedSAND}
54 \newboolean{strictSAND}
55 \newboolean{SANDmainProvided}
56 \newboolean{SANDnumProvided}
57 \newboolean{SANDprintDateProvided}
58 \newboolean{SANDauthorProvided}
59 \newboolean{SANDsupersedProvided}
60 \newboolean{SANDdistributionProvided}
61 \newboolean{inAppendix}
62
63 % We need calc to divide by 3 in setlength
64 \RequirePackage{calc}
65
66 % Needed for Trilinos
67 \RequirePackage{color}
68 \RequirePackage{eepic}
69 \RequirePackage{amssymb}
70 \RequirePackage{scalefnt}
71 \RequirePackage{fancyhdr}
72 \RequirePackage{epsfig}
73 %\RequirePackage{tabularx}
74 %\RequirePackage{supertabular}
75 \RequirePackage{alltt}
76 %\RequirePackage{colortbl}
77 %\RequirePackage{framed}
78 \RequirePackage{verbatim}
79 \RequirePackage{fancybox}
80 \RequirePackage{float}
81
82
83 % Specify what this file provides
84 \ProvidesPackage{TpetraDesign}[\SANDreportVersion]
85 \ProvidesFile{TpetraDesign.cls}[\SANDreportVersion]
86
87
88 % We understand two options: "relax" and "strict".
89 % Using "relax" make the document look more LaTeXy
90 % No option follows the format of SAND98-0730
91 % Using "strict" tries to follow the guideline even more closely
92 \DeclareOption{relax}{
93 \typeout{"relax": Relaxing some of the SAND98-0730 requirements}
94 \setboolean{relaxedSAND}{true}
95 }
96 \DeclareOption{strict}{
97 \typeout{"strict": Follow the SAND98-0730 requirements more strictly}
98 \setboolean{strictSAND}{true}
99 }
100 \ifthenelse{\boolean{relaxedSAND} \and \boolean{strictSAND}} {
101 \ClassWarning{SANDreport.cls}{Both, "strict" and "relax" options given}
102 }{
103 }
104
105 % We're based on the standard article class and assume certain
106 % options. Set those, and pass all others to the article class
107 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
108 \ProcessOptions
109 \LoadClass[letterpaper,twoside,final,notitlepage]{article}
110
111
112 %
113 % Setup for letter paper (This IS a SAND report!)
114 %
115 \setlength{\textwidth}{6in}
116 \setlength{\oddsidemargin}{0.5in}
117 \setlength{\evensidemargin}{0.0in}
118 \setlength{\marginparwidth}{1.0in - \marginparsep}
119
120 % Page header and foooter
121 \pagestyle{fancyplain}
122 \addtolength{\headwidth}{\marginparsep}
123 %\addtolength{\headwidth}{0.5in}
124 %\addtolength{\headwidth}{\marginparsep}
125 %\addtolength{\headwidth}{\marginparwidth}
126 \renewcommand{\headrulewidth}{1.6pt}
127 \setlength{\headheight}{48pt}
128 \setlength{\headsep}{24pt}
129
130 %\setlength{\textheight}{9in - \footskip - \headheight - \headsep}
131 \setlength{\textheight}{10in - \footskip - \headheight - \headsep}
132 \setlength{\topmargin}{-0.5in}
133
134 \AtBeginDocument{
135
136 % Do some usage checking
137 \ifthenelse{\boolean{SANDnumProvided}} {
138 }{
139 \ClassError{TpetraDesign.cls}{\@backslashchar SANDnum
140 not provided}{Insert \@backslashchar SANDnum in the preamble
141 of your document}
142 }
143 \ifthenelse{\boolean{SANDauthorProvided}} {
144 }{
145 \ClassError{TpetraDesign.cls}{\@backslashchar SANDauthor
146 not provided}{Insert \@backslashchar SANDauthor in the preamble
147 of your document}
148 }
149 \ifthenelse{\boolean{SANDprintDateProvided}} {
150 }{
151 \ClassError{TpetraDesign.cls}{\@backslashchar SANDprintDate
152 not provided}{Insert \@backslashchar SANDprintDate in the
153 preamble of your document}
154 }
155
156 % Save the title, it will be cleared by \maketitle, but we need it later
157 \newsavebox{\SANDtitletempbox}
158 \sbox{\SANDtitletempbox}{\parbox{\textwidth - 1.5in}{
159 \centering \LARGE \bf \@title \par}
160 }
161
162 %
163 % Some measurements to format the title page properly
164 %
165 \newlength{\textwidththird}
166 \newlength{\topheight}
167 \newlength{\topleftwidth}
168 \newlength{\topmiddlewidth}
169 \newlength{\toprightwidth}
170 \setlength{\textwidththird}{(\textwidth / 3) - (\fboxsep * 2)}
171 \setlength{\topleftwidth}{\the\textwidththird}
172 \setlength{\topmiddlewidth}{\the\textwidththird}
173 \setlength{\toprightwidth}{\the\textwidththird}
174 \addtolength{\topleftwidth}{-3em}
175 \addtolength{\topmiddlewidth}{+4em}
176 \addtolength{\toprightwidth}{-3em}
177
178
179 \ifthenelse{\boolean{SANDsupersedProvided}} {
180 \setlength{\topheight}{1.5in}
181 }{
182 \setlength{\topheight}{1.0in}
183 }
184
185 %
186 % We want a blank line between paragraphs
187 %
188 \setlength\parskip{2ex}
189
190
191 %
192 % Print the cover pages
193 %
194 {
195 \pagestyle{empty}
196 \newlength{\coverindent}
197 \setlength{\coverindent}{1em}
198 \setlength{\parindent}{0em}
199
200 %
201 % Front Cover
202 %
203 \addtolength{\headheight}{-0.5in}
204 \hspace*{-0.5in}
205 \begin{minipage}[t]{6.0in}
206 {
207 \CoverFont{b}{18}{20pt}
208 SAND REPORT
209 \vspace{0.125in}\\
210 \CoverFont{m}{12}{14pt}
211 \SANDnumVar\\
212 \SANDreleaseTypeVar\\
213 \SANDprintDateVar
214 \ifthenelse{\boolean{SANDsupersedProvided}} {
215 \vspace{0.125in}\\
216 \SANDsupersedVar
217 }{
218 \\
219 }
220
221 \vspace{0.25in}
222 \CoverFont{b}{24}{28pt}
223 \parbox[t]{\textwidth}{
224 % \@title
225 \begin{flushleft}
226 \Huge\scalefont{1.1}\@title
227 \end{flushleft}
228 % \vspace{-1em}
229 % \Thicklines\raggedleft\line(1,0){400} \\[0.5em]
230 \LARGE\bf \SANDsubtitleVar
231 }
232
233
234 \vspace{0.75in}
235 \CoverFont{m}{12}{14pt}
236 % \SANDauthorVar
237 \@author
238
239 \vspace{0.25in}
240 \CoverFont{m}{8}{10pt}
241 \selectfont
242 Prepared by\\
243 Sandia National Laboratories\\
244 Albuquerque, New Mexico 87185 and Livermore, California 94550\\
245 \\
246 Sandia National Laboratories is a multimission laboratory managed and operated\\
247 by National Technology and Engineering Solutions of Sandia, LLC, a wholly owned\\
248 subsidiary of Honeywell International Inc., for the U.S. Department of Energy’s\\
249 National Nuclear Security Administration under contract DE-NA0003525.\\
250 \\
251 Approved for public release; further dissemination unlimited.\\
252
253 \includegraphics{snllineblk}
254 % \includegraphics{snllineblk.eps}
255 }
256 \end{minipage}
257
258 %
259 % Back cover
260 %
261 \newpage
262 \hspace{1.0in}
263 \begin{minipage}[t]{5.0in}
264 \fontencoding{OT1}
265 \fontfamily{pnc}
266 \fontseries{m}
267 \fontshape{n}
268 \fontsize{9}{11pt}
269 \selectfont
270
271 Issued by Sandia National Laboratories, operated for the
272 United States Department of Energy by Sandia Corporation.
273 \vspace{\baselineskip}
274
275 {\fontsize{11}{13pt}\fontseries{b}\selectfont NOTICE:} This report was
276 prepared as an account of work sponsored by an agency of the United
277 States Government. Neither the United States Government, nor any agency
278 thereof, nor any of their employees, nor any of their contractors,
279 subcontractors, or their employees, make any warranty, express or
280 implied, or assume any legal liability or responsibility for the
281 accuracy, completeness, or usefulness of any information, apparatus,
282 product, or process disclosed, or represent that its use would not
283 infringe privately owned rights. Reference herein to any specific
284 commercial product, process, or service by trade name, trademark,
285 manufacturer, or otherwise, does not necessarily constitute or imply its
286 endorsement, recommendation, or favoring by the United States Government,
287 any agency thereof, or any of their contractors or subcontractors. The
288 views and opinions expressed herein do not necessarily state or reflect
289 those of the United States Government, any agency thereof, or any of
290 their contractors.
291 \vspace{\baselineskip}
292
293 Printed in the United States of America. This report has been reproduced
294 directly from the best available copy.
295 \vspace{\baselineskip}
296
297 Available to DOE and DOE contractors from\\
298 \begin{tabular}{ll}
299 \hspace*{\coverindent} & U.S. Department of Energy \\
300 & Office of Scientific and Technical Information \\
301 & P.O. Box 62 \\
302 & Oak Ridge, TN 37831 \\
303 & \\
304 \end{tabular}
305 \\
306 \begin{tabular}{lll}
307 \hspace*{\coverindent} & Telephone: & (865) 576-8401\\
308 & Facsimile: & (865) 576-5728\\
309 & E-Mail: & [email protected]\\
310 & Online ordering: & http://www.doe.gov/bridge\\
311 \end{tabular}
312 \vspace{\baselineskip}
313 \vspace{0.25in}
314
315 Available to the public from\\
316 \begin{tabular}{ll}
317 \hspace*{\coverindent} & U.S. Department of Commerce \\
318 & National Technical Information Service \\
319 & 5285 Port Royal Rd \\
320 & Springfield, VA 22161 \\
321 & \\
322 \end{tabular}
323 \\
324 \begin{tabular}{lll}
325 \hspace*{\coverindent} & Telephone: & (800) 553-6847 \\
326 & Facsimile: & (703) 605-6900 \\
327 & E-Mail: & [email protected] \\
328 & Online ordering: & http://www.ntis.gov/ordering.htm \\
329 \end{tabular}
330 \vspace{\baselineskip}
331 \vspace{0.125in}
332
333 \includegraphics[width=0.75in]{DOEbwlogo}
334 % \includegraphics[width=0.75in]{DOEbwlogo.eps}
335 \end{minipage}
336 \newpage
337 \addtolength{\headheight}{0.5in}
338 }
339 } % End of AtBeginDocument{}
340
341
342 \AtEndDocument{
343 % Do some more usage checking
344 % \ifthenelse{\boolean{SANDmainProvided}} {
345 % }{
346 % \ClassError{TpetraDesign.cls}{\@backslashchar SANDmain
347 % not provided}{Add \@backslashchar SANDmain before your
348 % introduction (first) section of your document}
349 % }
350 % \ifthenelse{\boolean{SANDdistributionProvided}} {
351 % }{
352 % \ClassError{TpetraDesign.cls}{\@backslashchar SANDdistribution
353 % not provided}{Add \@backslashchar SANDdistribution at the
354 % end of your document}
355 % }
356 } % End of AtEndDocument{}
357
358
359 % ---------------------------------------------------------------------------- %
360 % We need to (re)define some commands from the standard report class.
361 %
362
363 % ------------------------------------------------------------------------ %
364 % Font selections for the cover page \Coverfont{series}{size}{skip}
365 %
366 \newcommand{\CoverFont}[3]{
367 \fontencoding{OT1}
368 \fontfamily{phv}
369 \fontseries{#1}
370 \fontshape{n}
371 \fontsize{#2}{#3}
372 \selectfont
373 }
374
375
376 % ------------------------------------------------------------------------ %
377 % Here we define the mandatory declarations
378 %
379 \newcommand{\SANDnum}[1]{
380 \newsavebox{\SANDnumtempbox}
381 \newcommand{\SANDnumVar}{#1}
382 \sbox{\SANDnumtempbox}{#1}
383 \setboolean{SANDnumProvided}{true}
384 }
385
386 \newcommand{\SANDauthor}[1]{
387 \newcommand{\SANDauthorVar}{#1}
388 \setboolean{SANDauthorProvided}{true}
389 }
390
391 \newcommand{\SANDprintDate}[1]{
392 \newsavebox{\SANDprintDatetempbox}
393 \newcommand{\SANDprintDateVar}{#1}
394 \sbox{\SANDprintDatetempbox}{#1}
395 \setboolean{SANDprintDateProvided}{true}
396 }
397
398
399 % ------------------------------------------------------------------------ %
400 % Distribution page at the end
401 %
402 \renewcommand{\descriptionlabel}[1]{
403 \makebox[3em][r]{#1}
404 }
405 \newenvironment{SANDdistribution}{
406 \setboolean{SANDdistributionProvided}{true}
407 \clearpage
408 \setlength{\columnseprule}{1pt}
409 \begin{multicols}{2}[{\Large DISTRIBUTION:}]
410 \normalsize
411 \begin{description}
412 }{
413 \end{description}
414 \end{multicols}
415 }
416
417 \newcommand{\SANDdistInternal}[4]{
418 \ifthenelse{\boolean{SANDdistributionProvided}} {
419 }{
420 \ClassError{TpetraDesign.cls}{\@backslashchar SANDdistribution
421 not (yet) provided}{\@backslashchar SANDdistribution must
422 be used before any \@backslashchar SANDdistInternal}
423 }
424 \item[#1] MS \makebox[6ex][r]{#2}\\
425 \mbox{}
426 \hspace{1em} \parbox[t]{2.0in}{#3, \mbox{#4}}
427 }
428
429
430 \newcommand{\SANDdistExternal}[2]{
431 \ifthenelse{\boolean{SANDdistributionProvided}} {
432 }{
433 \ClassError{TpetraDesign.cls}{\@backslashchar SANDdistribution
434 not (yet) provided}{\@backslashchar SANDdistribution must
435 be used before any \@backslashchar SANDdistExternal}
436 }
437 \item[#1] \parbox[t]{2.1in}{#2}
438 }
439
440
441 % ------------------------------------------------------------------------ %
442 % And now some optional declarations
443 %
444 \newsavebox{\SANDreleaseTypetempbox}
445 \newcommand{\SANDreleaseTypeVar}{Unlimited Release}
446 \sbox{\SANDreleaseTypetempbox}{Unlimited Release}
447 \newcommand{\SANDreleaseType}[1]{
448 \sbox{\SANDreleaseTypetempbox}{#1}
449 \renewcommand{\SANDreleaseTypeVar}{#1}
450 }
451
452 \newcommand{\SANDsubtitle}[1]{
453 \newcommand{\SANDsubtitleVar}{#1}
454 }
455
456 \newcommand{\SANDsupersed}[2]{
457 \newsavebox{\SANDsupersedtempbox}
458 \newcommand{\SANDsupersedVar}{
459 Supersedes #1 \\
460 dated #2
461 }
462 \sbox{\SANDsupersedtempbox}{
463 \begin{tabular}{c}
464 Supersedes #1 \\
465 dated #2
466 \end{tabular}
467 }
468 \setboolean{SANDsupersedProvided}{true}
469 }
470
471 \newsavebox{\SANDdistcattempbox}
472 \sbox{\SANDdistcattempbox}{}
473 \newcommand{\SANDdistcategory}[1]{
474 \sbox{\SANDdistcattempbox}{
475 \begin{tabular}{r}
476 Distribution\\
477 Category #1
478 \end{tabular}
479 }
480 }
481
482
483 % Repeat the title and start on an odd page for the main part
484 \newcommand{\SANDmain}{
485 \cleardoublepage % Must start on an odd page
486 \begin{center}
487 \pagestyle{plain}
488 \SANDnumVar\\
489 \SANDreleaseTypeVar\\
490 \SANDprintDateVar
491 \ifthenelse{\boolean{SANDsupersedProvided}} {
492 \vspace{0.125in}\\
493 \SANDsupersedVar
494 }{
495 \\
496 }
497 % \vspace{0.5in}
498 \usebox{\SANDtitletempbox} \\[1ex] %
499 {\Large\bf \SANDsubtitleVar} \\[0.5in] %
500 \SANDauthorVar \\[1ex] %
501 Sandia National Laboratories \\ %
502 P.O. Box 5800 \\ %
503 Albuquerque, NM 87185-0316 %
504 \end{center}
505 \setboolean{SANDmainProvided}{true}
506 }
507
508
509 % ------------------------------------------------------------------------ %
510 % Table of Contents
511 % The names we use to label the table of contents, and lists of figures,
512 % and tables. Only list Sections and Subsections.
513 %
514 \renewcommand{\contentsname}{\bf Contents}
515 %\renewcommand{\contentsname}{\raggedright \normalfont\Large\bfseries
516 % Contents}
517 \renewcommand{\listfigurename}{\bf Figures}
518 \renewcommand{\listtablename}{\bf Tables}
519 %\renewcommand\refname{\raggedright \bf References}
520 %\setcounter{tocdepth}{2}
521
522 %
523 % Don't enter figures, tables, and subsections of an appendix in
524 % the main table of contents.
525 \renewcommand{\addcontentsline}[3]{
526 \ifthenelse{\boolean{strictSAND}} {
527 \ifthenelse{\boolean{inAppendix}} {
528 \ifthenelse{\equal{#2}{section}} {
529 \addtocontents{#1}{\protect\contentsline{#2}{#3}{\thepage}}
530 }{
531 }
532 }{
533 \addtocontents{#1}{\protect\contentsline{#2}{#3}{\thepage}}
534 }
535 }{
536 \addtocontents{#1}{\protect\contentsline{#2}{#3}{\thepage}}
537 }
538 }
539
540 % ------------------------------------------------------------------------ %
541 % We want the dots closer together, and the same as in \dotfill
542 %
543 \renewcommand{\@dotsep}{2.27}
544
545 \renewcommand{\l@section}{\@dottedtocline{1}{1.5em}{1em}}
546
547
548 % ------------------------------------------------------------------------ %
549 % We don't want blank lines between entries and no boldface.
550 % This is the l@section definition from article.sty. We get rid of
551 % \addvspace{1.0em... and \bfseries (if relax is not set in the main doc)
552 %
553 \renewcommand*\l@section[2]{
554 \setlength\parskip{0ex}
555 \ifnum \c@tocdepth >\z@
556 \addpenalty\@secpenalty
557 \ifthenelse{\boolean{relaxedSAND}} {
558 \addvspace{1.0em \@plus\p@}
559 }{
560 }
561
562 % Changed this from 1.5em to 2.5em since if the number of sections went to
563 % double digits the TOC entry was screwed up - SAH, 20 Sep. 2002.
564 % \setlength\@tempdima{1.5em}
565 \setlength\@tempdima{2.5em}
566 \begingroup
567 \parindent \z@ \rightskip \@pnumwidth
568 \parfillskip -\@pnumwidth
569 \leavevmode
570 \ifthenelse{\boolean{relaxedSAND}} {
571 \bfseries
572 }{
573 }
574 \advance\leftskip\@tempdima
575 \hskip -\leftskip
576 #1\nobreak\dotfill \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
577 \endgroup
578 \fi}
579
580 \renewcommand*\l@figure{\setlength\parskip{0ex}
581 \@dottedtocline{1}{1.5em}{2.3em}
582 }
583 \let\l@table\l@figure
584
585
586 % ------------------------------------------------------------------------ %
587 % If there is an appendix, set it apart in the table of contents
588 %
589 \renewcommand\appendix{
590 \setboolean{inAppendix}{true}
591 \par
592 %\setcounter{chapter}{0}
593 \setcounter{section}{0}
594 \setcounter{subsection}{0}
595 \setcounter{subsubsection}{0}
596 \setcounter{paragraph}{0}
597 \setcounter{subparagraph}{0}
598 \setcounter{figure}{0}
599 \setcounter{table}{0}
600
601 \renewcommand{\thefigure}{\thesection.\arabic{figure}}
602 \renewcommand{\thetable}{\thesection.\arabic{table}}
603
604 \gdef\thesection{\@Alph\c@section}
605 \addtocontents{toc}{\protect\subsubsection*{\appendixname}}
606 \setcounter{secnumdepth}{1}
607
608 % We want each appendix starting on a new page
609 % Add \cleardoublepage to the standard definition
610 \renewcommand\section{
611 \cleardoublepage
612 \@startsection {section}{2}{-0.25in}%
613 % \@startsection {section}{1}{\z@}%
614 {-3.5ex \@plus -1ex \@minus -.2ex}%
615 {2.3ex \@plus.2ex}%
616 {\normalfont\Huge\color{TrilinosTextBlue}}
617 }
618
619 \renewcommand{\sectionmark}{\markboth%
620 % {\appendixname~\thesection}%
621 {\appendixname~\thesection}%
622 }
623 }
624
625 % ------------------------------------------------------------------------ %
626 % Sections
627 % We want centered and unnumbered section headings (subsection and
628 % subsubsection start on the left hand side)
629 %
630 \ifthenelse{\boolean{strictSAND}} {
631 % The samples in SAND98-0730 don't number sections.
632 \setcounter{secnumdepth}{0}
633 }{
634 % The report SAND98-0730 itself does, though ;-)
635 \setcounter{secnumdepth}{2}
636 }
637
638 % Instead of this, use the Trilinos definition below.
639 %\renewcommand\section{\@startsection {section}{1}{0mm}
640 % {-3.5ex \@plus -1ex \@minus -.2ex}
641 % {2.3ex \@plus.2ex}
642 % {\normalfont\Large\bfseries\centering}}
643
644
645 % ------------------------------------------------------------------------ %
646 % Captions
647 % We want the label bold face, and the whole captionwidth about 4",
648 % and the text a little smaller than the main text.
649 %
650 \newlength{\SANDcaptionwidth}
651 \setlength{\SANDcaptionwidth}{4in}
652 \newsavebox{\SANDtempbox}
653 \renewcommand{\@makecaption}[2]{
654 \par\vspace{\abovecaptionskip}
655 \sbox{\SANDtempbox}{{\bf #1. }\ #2}
656 \ifthenelse{\lengthtest{\wd\SANDtempbox < \SANDcaptionwidth}} {
657 \begin{center}
658 {\bf #1. }\small #2
659 \end{center}
660 }{
661 \begin{center}
662 \parbox[t]{\SANDcaptionwidth}{{\bf #1. }\small #2}
663 \end{center}
664 }
665 }
666
667
668 % ------------------------------------------------------------------------ %
669 % The basic report class title page is almost what we want. We
670 % need to make sure it is on page three and has the SAND number on top
671 %
672 \renewcommand{\@maketitle}{
673 \newpage
674 {
675 % use framebox instead of makebox for debugging
676 \makebox[\topleftwidth][t]{
677 \begin{minipage}[c][\topheight][t]{\topleftwidth}
678 % There is nothing at top left
679 \end{minipage}
680 }
681 \makebox[\topmiddlewidth][c]{
682 \begin{minipage}[c][\topheight][t]{\topmiddlewidth}
683 \begin{center}
684 \usebox{\SANDnumtempbox}\\
685 \usebox{\SANDreleaseTypetempbox}\\
686 \usebox{\SANDprintDatetempbox}\\
687 \ifthenelse{\boolean{SANDsupersedProvided}} {
688 \bigskip
689 \usebox{\SANDsupersedtempbox}\\
690 }{
691 }
692 \end{center}
693 \end{minipage}
694 }
695 \makebox[\toprightwidth][r]{
696 \begin{minipage}[c][\topheight][t]{\toprightwidth}
697 \raggedleft
698 \usebox{\SANDdistcattempbox}
699 \end{minipage}
700 }
701 }
702
703 \begin{center}
704 \let \footnote \thanks
705 {\LARGE \bf \@title\par%
706 \Large\bf \SANDsubtitleVar\par}
707 % {\@title\par}
708 \vskip 1.5em
709 {\large
710 \lineskip .5em%
711 \begin{tabular}[t]{c}
712 % \@author
713 \SANDauthorVar
714 \end{tabular}
715 \par
716 }
717 \vskip 1em
718 {\large \@date}
719 \end{center}
720 \par
721 \vskip 1.5em
722 }
723
724 %------------------------------------------------------------------------------
725 % Trilinos added stuff
726 %------------------------------------------------------------------------------
727
728 \setlength{\parindent}{0pt}
729 \setlength{\parskip}{1ex plus0.5ex minus0.2ex}
730
731 % Tabularx environment changes
732 %\renewcommand{\tabularxcolumn}[1]{>{\vspace{0.5em}}m{#1}}
733 %\newcolumntype{Y}{>{\raggedright\arraybackslash}X}
734 %\newcolumntype{Z}{>{\raggedright\arraybackslash}X}
735 %\newcolumntype{W}{>{\centering\arraybackslash}X}
736
737 % Trilinos Colors remapped to BW
738 \definecolor{TrilinosBlue}{rgb}{0,0,0}
739 \definecolor{TrilinosDeepBlue}{rgb}{0,0,0}
740 \definecolor{TrilinosDarkBlue}{rgb}{0,0,0}
741 \definecolor{TrilinosTextBlue}{rgb}{0,0,0}
742 \definecolor{TrilinosRed}{rgb}{0,0,0}
743 \definecolor{TrilinosDeepRed}{rgb}{0,0,0}
744 \definecolor{turquoise}{rgb}{0,0,0}
745 \definecolor{grey}{rgb}{0.5,0.5,0.5}
746 \definecolor{shadecolor}{rgb}{0.753,0.753,0.753}
747 \definecolor{pink}{rgb}{0.5,0.5,0.5}
748
749 % Trilinos Colors
750 % \definecolor{TrilinosBlue}{rgb}{0.498,0.749,1}
751 % \definecolor{TrilinosDeepBlue}{rgb}{0.4,0.4,0.6}
752 % \definecolor{TrilinosDarkBlue}{rgb}{0,0,0.5}
753 % \definecolor{TrilinosTextBlue}{rgb}{0.2,0,0.6}
754 % \definecolor{TrilinosRed}{rgb}{1,0,0}
755 % \definecolor{TrilinosDeepRed}{rgb}{0.502,0,0}
756 % \definecolor{turquoise}{rgb}{0.5,1,1}
757 % \definecolor{grey}{rgb}{0.5,0.5,0.5}
758 % \definecolor{shadecolor}{rgb}{0.753,0.753,0.753}
759 % \definecolor{pink}{rgb}{1,.6,.8}
760
761 % Define strings
762 %\def\Trilinos{{\color{TrilinosBlue}{\bf \textsf{Trilinos}}}
763 \def\Trilinos{\textsf{\bf Trilinos}}
764 \def\TrilinosTM{{\color{TrilinosBlue} \bf
765 \textsf{Trilinos}}\textsuperscript{\tiny{\texttrademark}}}
766 \def\TrilinosTitle{\bf
767 % {\color{TrilinosBlue}{\Huge\scalefont{1.45}\bf
768 % {\color{TrilinosBlue}{\Huge\scalefont{1.00}\bf
769 {
770 \linethickness{6pt}
771 \raggedright{\color{TrilinosDeepBlue}\line(1,0){450}} \\
772 \vspace{0.125in}
773 \color{TrilinosBlue}
774 {
775 % \textsf{Trilinos}}}\textsuperscript{\small{\texttrademark}}}
776 \textsf{Trilinos}}}\textsuperscript{\small\scalefont{1.1}{\texttrademark}}}
777
778 % New commands
779 \newcommand{\shadebg}[1]{\begin{shaded}{#1}\end{shaded}}
780 \newcommand{\textrmb}[1]{\textrm{\textbf{#1}}}
781
782 % DRAFT
783 \def\draft{%
784 \special{!userdict begin /bop-hook{gsave
785 200 30 translate 65 rotate
786 /Times-Roman findfont 216 scalefont setfont
787 0 0 moveto 0.9 setgray (DRAFT) show grestore}def end}
788 }
789
790 % Footer
791 %\cfoot{\bfseries\thepage \\ DRAFT - Not Approved for External Release}
792 \cfoot{\bfseries\thepage}
793
794 \renewcommand{\familydefault}{phv}
795 \renewcommand{\sfdefault}{phv}
796
797 % Heading
798 \newcommand{\HeadingC}[1]{%
799 \par\vspace{\baselineskip}%
800 {\Large\color{TrilinosTextBlue}#1}%
801 \par\vspace{\baselineskip}}
802
803 % Examples
804 \newcommand{\Example}[1]{%
805 \par\vspace{1ex}%
806 {\bf Example:}%
807 {\hspace{0.2 in}} {#1} {\par\vspace{1ex}}}
808
809 % DisplayCommand
810 \newcommand{\DisplayCommand}[1]{%
811 \par\vspace{1ex}%
812 {\bf Command:}%
813 {\hspace{0.2 in}} {\tt #1} {\par\vspace{1ex}}}
814
815 % InlineCommand
816 \newcommand{\InlineCommand}[1]{
817 {\hspace{0.01 in}} {\tt #1} {\hspace{0.01 in}}}
818
819 % InlineCommand
820 \newcommand{\InlineDirectory}[1]{
821 {\hspace{0.01 in}} {\tt #1} {\hspace{0.01 in}}}
822
823 % Verbatim-quote environment
824 \newenvironment{vquote}{\begin{quote}\begin{alltt}}
825 {\end{alltt}\end{quote}}
826
827 % Trilinos itemize environment
828 \newenvironment{TrilinosItemize}{%
829 \renewcommand{\labelitemi}{{\color{TrilinosRed}$\blacksquare$}}%
830 \begin{itemize}}{\end{itemize}}
831
832 % Trilinos chapter style
833 \def\chaptermark#1{}
834 \def\sec@hangfrom#1{\setbox\@tempboxa\hbox{#1}%
835 \hangindent \z@\noindent\box\@tempboxa}
836
837 \def\@chapapp{\chaptername}
838
839 %\newcommand{\chapterrulecolor}{TrilinosDeepRed}
840 %\newcommand{\chapterrulewidth}{1.6pt}
841 %\newcommand{\plainchapterrulewidth}{\z@skip}
842 %\def\chapterrule{{\if@fancyplain\let\chapterrulewidth\plainchapterrulewidth\fi
843 % \color{\chapterrulecolor}\hrule\@height\chapterrulewidth}}
844
845 \def\@makechapterhead#1{{\parindent0pt\raggedright
846 \hyphenpenalty \@M
847 \Huge\scalefont{1.45}\color{TrilinosTextBlue}
848 \sec@hangfrom{\thechapter.\hspace{1em}}%
849 \ignorespaces#1\par
850 \color{TrilinosDeepRed}\vspace{0.5ex}\headrule
851 \ifdim\pagetotal>118pt
852 \vskip 24pt
853 \else
854 \@tempdima=118pt\advance\@tempdima by-\pagetotal
855 \vskip\@tempdima
856 \fi
857 }
858 }
859
860 \def\@makeschapterhead#1{{\parindent0pt\raggedright
861 \hyphenpenalty \@M
862 \Large\bf\boldmath
863 \ignorespaces#1\par
864 \ifdim\pagetotal>118pt
865 \vskip 24pt
866 \else
867 \@tempdima=118pt\advance\@tempdima by-\pagetotal
868 \vskip\@tempdima
869 \fi}
870 }
871
872 \def\chapter{\cleardoublepage\thispagestyle{empty}
873 \global\@topnum\z@\@afterindentfalse
874 \secdef\@chapter\@schapter}
875
876 \def\@chapter[#1]#2{%
877 \ifnum\c@secnumdepth>\m@ne
878 \refstepcounter{chapter}
879 \typeout{\@chapapp\space\thechapter}
880 \addcontentsline{toc}{chapter}{\protect
881 \numberline{\thechapter.}#1}
882 \else
883 \addcontentsline{toc}{chapter}{#1}
884 \fi
885 \chaptermark{#1}
886 \addtocontents{lof}{\protect\addvspace{10pt}}
887 \addtocontents{lot}{\protect\addvspace{10pt}}
888 \if@twocolumn
889 \@topnewpage[\@makechapterhead{#2}]
890 \else \@makechapterhead{#2}
891 \@afterheading
892 \fi
893 }
894
895 \def\@schapter#1{
896 \if@twocolumn\@topnewpage[\@makeschapterhead{#1}]
897 \else \@makeschapterhead{#1}
898 \@afterheading
899 \fi
900 }
901
902 % Chapter Overview style
903 \newcommand{\chapteroverview}[2]{%
904 \vspace{\baselineskip}%
905 {\Huge\color{TrilinosTextBlue}#1}%
906 \vspace{\baselineskip}\\ #2 \clearpage}
907
908 % Trilinos Abstract style
909 \renewcommand{\abstractname}%
910 {\raggedright\Large Abstract}
911 %{\raggedright\Large\color{TrilinosTextBlue} Abstract}
912
913 % Trilinos Contents heading style
914 %\renewcommand{\contentsname}{\raggedright\Huge\color{TrilinosTextBlue} Contents}
915
916 % Trilinos List of Figures heading style
917 %\renewcommand{\listfigurename}{\raggedright\normalfont\Large\bfseries\color{TrilinosTextBlue}
918 %List of Figures}
919
920 % Trilinos section style
921 \renewcommand{\section}{\@startsection
922 {section}
923 {1}
924 {-0.25in}
925 {1ex plus 0.5ex minus 0.5ex}
926 {1ex plus 1ex minus 0ex}
927 {\raggedright\Huge\color{TrilinosTextBlue}}
928 % {\clearpage\raggedright\Huge\color{TrilinosTextBlue}}
929 }
930
931 % Trilinos subsection style
932 \renewcommand{\subsection}{\@startsection
933 {subsection}
934 {2}
935 {-0.25in}
936 {1ex plus 0.5ex minus 0.5ex}
937 {0.5ex plus 1ex minus 0ex}
938 {\raggedright\LARGE\color{TrilinosTextBlue}}
939 }
940
941 % Trilinos subsubsection style
942 \renewcommand{\subsubsection}{\@startsection
943 {subsubsection}
944 {3}
945 {-0.25in}
946 {0.75ex plus 0.5ex minus 0.5ex}
947 {0.5ex plus 0.5ex minus 0ex}
948 {\raggedright\large\color{TrilinosTextBlue}}
949 }
950
951 % Trilinos paragraph style
952 \renewcommand{\paragraph}{\@startsection
953 {paragraph}
954 {4}
955 {\z@}
956 {0ex plus 0.1ex minus 0.1ex}
957 {0.3ex plus 0.2ex minus 0ex}
958 {\raggedright\bfseries\large\color{TrilinosTextBlue}}
959 }
960
961 % Trilinos subparagraph style
962 \renewcommand{\subparagraph}{\@startsection
963 {subparagraph}
964 {5}
965 {\z@}
966 {0ex plus 0.1ex minus 0.1ex}
967 {0.3ex plus 0.2ex minus 0ex}
968 % {\color{TrilinosTextBlue}\raggedright\normalsize\underline}
969 {\raggedright\normalsize\underline}
970 }
971
972 % Trilinos Header style
973 \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
974 \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
975 \lhead[\fancyplain{}{The Design and Evolution of Tpetra}]%
976 {\fancyplain{}{\rightmark}}
977 \rhead[\fancyplain{}{\rightmark}]
978 {\fancyplain{}{The Design and Evolution of Tpetra}}