summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/mnras/mnras.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/mnras/mnras.cls')
-rw-r--r--macros/latex/contrib/mnras/mnras.cls62
1 files changed, 36 insertions, 26 deletions
diff --git a/macros/latex/contrib/mnras/mnras.cls b/macros/latex/contrib/mnras/mnras.cls
index 2850b098be..ddf3c30148 100644
--- a/macros/latex/contrib/mnras/mnras.cls
+++ b/macros/latex/contrib/mnras/mnras.cls
@@ -102,6 +102,7 @@
% Silently execute these options. I'm not convinced this actually does anything.
\ExecuteOptions{a4paper,twoside,final,fleqn}
+% \ExecuteOptions{twoside,final,fleqn}
% Throw warning if the user tries to use US Letter paper
\newif\if@letterpaper
@@ -114,14 +115,17 @@
% Before we do anything else with layout, ensure that the paper is A4
\usepackage[a4paper]{geometry}
+%%
+\setlength\paperwidth{210mm}%
+\setlength\paperheight{276mm}%
+%%
% Fix several errors with LaTeX2e, including 2-column floats out of order
-\usepackage{fixltx2e}
+% \usepackage{fixltx2e} %% Unnecessary since TL2015
% Include hyperref, so we can have clickable links
-\usepackage{hyperref} % Hyperlinks
-\hypersetup{colorlinks=true,linkcolor=blue,citecolor=blue,filecolor=blue,urlcolor=blue}
-
+\usepackage[pdfpagelabels=false]{hyperref} % Hyperlinks
+\hypersetup{colorlinks=true,linkcolor=blue,citecolor=blue,filecolor=blue,urlcolor=blue,}
%
% ****************************************
% * Font sizes *
@@ -183,14 +187,22 @@
\newcommand\scriptsize{\@setfontsize\scriptsize\@vipt{8}}
\newcommand\tiny{\@setfontsize\tiny\@vpt{6}}
%
+%%new font for abstract/keywords
+\def\@xivpt{14}
+\def\@xiipt{12}
+\def\@xvipt{16}
+\newcommand\abslarge{\@setfontsize\abslarge\@xpt{12.5}}
+%%
\if@twocolumn
\newcommand\large{\@setfontsize\large\@xpt{11}}
\else
\newcommand\large{\@setfontsize\large\@xpt{12}}
\fi
\newcommand\Large{\@setfontsize\Large\@xiipt{14}}
-\newcommand\LARGE{\@setfontsize\LARGE\@xivpt{17}}
-\newcommand\huge{\@setfontsize\huge\@xviipt{20}}
+%%\newcommand\LARGE{\@setfontsize\LARGE\@xivpt{17}}
+\newcommand\LARGE{\@setfontsize\LARGE\@xiipt{15}}
+%%\newcommand\huge{\@setfontsize\huge\@xviipt{20}}
+\newcommand\huge{\@setfontsize\huge\@xvipt{18}}
\newcommand\Huge{\@setfontsize\Huge\@xxpt{25}}
%
\newcommand\sevensize{\@setfontsize\sevensize\@viipt{8}}
@@ -582,7 +594,7 @@ $\reset@font\displaystyle##$\hfil\cr>\cr\approx\cr}}}
%\if@twocolumn
\setlength\topmargin{-2pc}
%\else
- \setlength\topmargin{\z@}
+ \setlength\topmargin{-4pc}
%\fi
\setlength{\headheight}{14pt}
\setlength{\headsep} {15pt}
@@ -592,7 +604,7 @@ $\reset@font\displaystyle##$\hfil\cr>\cr\approx\cr}}}
% DIMENSION OF TEXT: % SFB 0.1.01
%
\newdimen\SFB@measure
-\SFB@measure 42pc
+\SFB@measure 508pt%42pc
%
\setlength\textheight{682pt}
\setlength\textwidth{\SFB@measure}
@@ -604,7 +616,7 @@ $\reset@font\displaystyle##$\hfil\cr>\cr\approx\cr}}}
\ifSFB@referee
\setlength\textwidth{39pc}
\fi
-\setlength\columnsep{2pc}
+\setlength\columnsep{20pt}%{2pc}
\setlength\columnseprule{0pt}
% FOOTNOTES:
@@ -631,7 +643,7 @@ $\reset@font\displaystyle##$\hfil\cr>\cr\approx\cr}}}
%
\newlength{\realparindent} % needed for abstract
\setlength\parskip{ \z@ plus .1pt }
-\setlength\parindent{ 18pt }
+\setlength\parindent{9pt}
\setlength{\realparindent}{\parindent}
\setlength\partopsep{ 0pt plus 1pt }
\@lowpenalty 51
@@ -748,10 +760,10 @@ $\reset@font\displaystyle##$\hfil\cr>\cr\approx\cr}}}
\ifSFB@appendix
\edef\@svsec{}%
\else
- \edef\@svsec{\csname the#1\endcsname\hskip 1em}%
+ \edef\@svsec{\csname the#1\endcsname\hskip .5em}%
\fi
\else
- \edef\@svsec{\csname the#1\endcsname\hskip 1em}%
+ \edef\@svsec{\csname the#1\endcsname\hskip .5em}%
\fi
\fi
\@tempskipa #5\relax
@@ -1069,9 +1081,9 @@ $\reset@font\displaystyle##$\hfil\cr>\cr\approx\cr}}}
\vspace*{7pt}
{\raggedright \sloppy
{\reset@font\huge \bf \@title \par}
- \vskip 23pt
+ \vskip 16pt
{\reset@font\LARGE
- \begin{tabular}[t]{@{}l@{}}\let\\=\author@nextline\@author
+ \begin{tabular}[t]{@{}l@{}}\let\\=\author@nextline\@author%
\end{tabular}
\par}
\vskip 22pt
@@ -1081,9 +1093,9 @@ $\reset@font\displaystyle##$\hfil\cr>\cr\approx\cr}}}
\vskip 22pt
}
-\def\author@nextline{ %DE's definition
-\tabularnewline[-7pt]\reset@font\small\it\ignorespaces
-\let\\=\author@nextline} %let command added by NT to bring
+\def\author@nextline{% %DE's definition
+\tabularnewline[-5pt]\reset@font\small\it\ignorespaces\unskip\unskip\unskip%
+\let\\=\author@nextline}% %let command added by NT to bring
% subsequent lines into correct format
%
@@ -1101,9 +1113,9 @@ $\reset@font\displaystyle##$\hfil\cr>\cr\approx\cr}}}
\listparindent\realparindent
\itemindent\z@
\labelwidth\z@ \labelsep\z@
- \leftmargin 11pc\rightmargin\z@
+ \leftmargin\z@\rightmargin\z@%%was 11pc left
\parsep 0pt plus 1pt}\item[]%
- \reset@font\normalsize{\bf ABSTRACT}\\\reset@font\large
+ \reset@font\normalsize{\bf ABSTRACT}\\\reset@font\abslarge
} % SFB 0.1.01
%
\newif\ifSFB@keywords
@@ -1115,8 +1127,8 @@ $\reset@font\displaystyle##$\hfil\cr>\cr\approx\cr}}}
}
\def\@keywords{\list{}{%
\labelwidth\z@ \labelsep\z@
- \leftmargin 11pc\rightmargin\z@ % was 11pc\right....
- \parsep 0pt plus 1pt}\item[]\reset@font\large{\bf Key words: }%
+ \leftmargin\z@\rightmargin\z@ %was 11pc left was 11pc\right....
+ \parsep 0pt plus 1pt}\item[]\reset@font\abslarge{\bf Key words: }%
}
\def\endkeywords{\if@twocolumn
\endlist\addvspace{37pt plus 0.5\baselineskip}\finish@SFBbox
@@ -1210,9 +1222,9 @@ $\reset@font\displaystyle##$\hfil\cr>\cr\approx\cr}}}
\def\ps@headings{\let\@mkboth\markboth
\def\@oddhead{\Large\hfill{\it\@shorttitle}\hspace{1.5em}%
\rm\@ddell\thepage}
- \def\@oddfoot{\small MNRAS {\bf \@volume}, \@pagerange\ (\@pubyear)\hfil}
+ \def\@oddfoot{\hfill\small MNRAS {\bf \@volume}, \@pagerange\ (\@pubyear)}
\def\@evenhead{\Large\@ddell\thepage\hspace{1.5em}\it\@shortauthor\hfill}
- \def\@evenfoot{\hfil\small MNRAS {\bf \@volume}, \@pagerange\ (\@pubyear)}
+ \def\@evenfoot{\small MNRAS {\bf \@volume}, \@pagerange\ (\@pubyear)\hfil}
\def\sectionmark##1{\markboth{##1}{}}
\def\subsectionmark##1{\markright{##1}}}
@@ -1292,7 +1304,6 @@ $\reset@font\displaystyle##$\hfil\cr>\cr\approx\cr}}}
\section*{LIST OF TABLES\@mkboth{LIST OF TABLES}{LIST OF TABLES}}
\@starttoc{lot} \if@restonecol\twocolumn\fi}
\let\l@table\l@figure
-
% ****************************************
% * BIBLIOGRAPHY *
% ****************************************
@@ -1805,5 +1816,4 @@ has been typeset from a \TeX/\LaTeX\ file prepared by the author.}
% Package renamed from 'mn2e' to 'mnras' after
% discussion with the TeX Users Group
% Numerous small tweaks and improvements following testing
-
-% end of mnras.cls \ No newline at end of file
+% end of mnras.cls