% ============================================================================= % File jetpp.cls : LaTeX2E class for JET preprints, derived from article class. % % Author : Adam Stephen, CODAS % % Notes : See JDN(04)25 for details on usage. % ============================================================================= % % TODO : Support the formatting of figures properly. % TODO : Specify the default parameters to article a4paper, twoside, english % TODO : Override the maketitle command % \NeedsTeXFormat{LaTeX2e} \ProvidesClass{jetpp}[2003/09/01 Standard article style customised for JET preprints.] % ============================================================================= % Base Class and Options % ============================================================================= % Specify default options for article and load article with these options \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} \ExecuteOptions{12pt, twoside, a4paper} \ProcessOptions\relax \LoadClassWithOptions{article} % ============================================================================= % Required packages % ============================================================================= %\usepackage{sectsty} \usepackage{titlesec} \usepackage{fancyhdr} \usepackage{caption2} \usepackage{multicol} %\usepackage{color} % ============================================================================= % Default font is Times 12pt with 18pt leading % ============================================================================= \renewcommand{\normalsize}% {\fontfamily{ptm}\fontseries{m}\fontshape{n}\fontsize{12pt}{18pt}\selectfont} % ============================================================================= % Page Layout and Fonts % ============================================================================= % General Page Dimensions % JET requires A4 210 width split with two 22.5mm margins and textwidth of 165mm % We express this by setting the margin as 22.5mm - 1 inch = 22.5 - 25.4 = -3.1 \newlength{\jetpponecolwidth} \setlength{\jetpponecolwidth}{165mm} \newlength{\jetpptwocolwidth} \setlength{\jetpptwocolwidth}{80mm} \setlength{\textwidth}{\jetpponecolwidth} \setlength{\oddsidemargin}{-3.1mm} \setlength{\evensidemargin}{-3.1mm} \setlength{\marginparsep}{0mm} \setlength{\marginparwidth}{0mm} % Vertical settings : A4 height is 297 % % JET requires top margin of 25mm to text top : no headers used % Express this with relation to voffset as : 25mm - 1inch = 25mm - 25.4mm = -0.4mm \setlength{\topmargin}{0.0mm} \setlength{\headheight}{0mm} \setlength{\headsep}{0mm} % Bottom margin is nominally 30mm to bottom of text, with 15mm footskip % This leaves a text height of 297 - 30 - 25 = 242 \setlength{\textheight}{242mm} \setlength{\footskip}{15mm} \setlength{\parindent}{5mm} \setlength{\baselineskip}{18pt} % ============================================================================= % Page numbering : tune the headers and footers % ============================================================================= \pagestyle{fancy} % Put the page numbers in the right place \fancyhead{} % Clear all headers - none required \renewcommand{\headrulewidth}{0pt} % No header rule \fancyfoot{} % Clear all \fancyfoot[LE,RO]{\thepage} % Also change plain style where this may be invoked indirectly by LaTeX \fancypagestyle{plain}{% \fancyhead{} % Clear all headers - none required \renewcommand{\headrulewidth}{0pt} % No header rule \fancyfoot{} % Clear all \fancyfoot[LE,RO]{\thepage} } % ----------------------------------------------------------------------------- % Section Formatting. % ----------------------------------------------------------------------------- % ----------------------------------------------------------------------------- % \section : JET Rule : Heading is in bold, upper case, caps. % ----------------------------------------------------------------------------- \newcommand{\secformat}[1]{\MakeUppercase{#1}} \titleformat{\section} % No optional shape {\normalsize\bfseries} % Format {\thesection.} % Label {1em} % Sep {\secformat} % Before % After % ----------------------------------------------------------------------------- % \subsection : % JET Rule : Sub heading 1 is bold, 12 pt Times, Italics, Caps % ----------------------------------------------------------------------------- \titleformat{\subsection} % No optional shape {\normalsize\bfseries\itshape} % Format {\thesubsection.} % Label {1em} % Sep {\secformat} % Before % After % ----------------------------------------------------------------------------- % \subsubsection : % JET Rule : Sub heading 1 is 12 pt Times, Italics, Mixed case (at author's discretion) % ----------------------------------------------------------------------------- \titleformat{\subsubsection} % No optional shape {\normalsize\itshape} % Format {\thetitle.} % Label {1em} % Sep {} % Before % After % ----------------------------------------------------------------------------- % Figure related % ----------------------------------------------------------------------------- % ----------------------------------------------------------------------------- % JET Rule : Caption to be in italics % ----------------------------------------------------------------------------- %\newcommand{\figcaption}[1]{\caption{\textit{#1}}} %\newcommand{\startfigures}% % {\fontfamily{ptm}\fontseries{m}\fontshape{it}\fontsize{10pt}{12pt}\selectfont} \renewcommand{\captionfont}{\small\itshape} \newenvironment{onecolumnfigures}% {\setcaptionwidth{\jetpponecolwidth}}% Setup for one column figures {} % End code for one column figures \newenvironment{twocolumnfigures}% {\setcaptionwidth{\jetpptwocolwidth}\setlength{\columnsep}{5mm}\twocolumn}% Setup for two column figures {\onecolumn} % End code for one column figures