From 159c0f9b4397fce4ebb181dd2877849155199127 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 19 Aug 2013 22:50:51 +0000 Subject: resphilosophica (19aug13) git-svn-id: svn://tug.org/texlive/trunk@31475 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/resphilosophica/resphilosophica.cls | 88 ++++++++++++++++++---- 1 file changed, 73 insertions(+), 15 deletions(-) (limited to 'Master/texmf-dist/tex/latex/resphilosophica') diff --git a/Master/texmf-dist/tex/latex/resphilosophica/resphilosophica.cls b/Master/texmf-dist/tex/latex/resphilosophica/resphilosophica.cls index d2d37b9677b..d3c92415e05 100644 --- a/Master/texmf-dist/tex/latex/resphilosophica/resphilosophica.cls +++ b/Master/texmf-dist/tex/latex/resphilosophica/resphilosophica.cls @@ -22,7 +22,7 @@ %% in the same archive or directory.) \NeedsTeXFormat{LaTeX2e} \ProvidesClass{resphilosophica} -[2013/07/21 v1.12 Typesetting articles for Res Philosophica] +[2013/08/18 v1.13 Typesetting articles for Res Philosophica] \RequirePackage{xkeyval} \newif\ifRESP@fontauto \RESP@fontautotrue @@ -82,6 +82,12 @@ \newif\ifRESP@screen \RESP@screenfalse \DeclareOptionX{screen}{\RESP@screentrue} +\newif\ifRESP@preprint +\RESP@preprintfalse +\DeclareOptionX{preprint}{\RESP@preprinttrue} +\newif\ifRESP@forthcoming +\RESP@forthcomingfalse +\DeclareOptionX{forthcoming}{\RESP@forthcomingtrue} \DeclareOptionX{*}{\PassOptionsToClass{\CurrentOption}{amsart}} \ProcessOptionsX \LoadClass[noamsfonts]{amsart} @@ -91,7 +97,9 @@ \urlstyle{rm} \ifRESP@manuscript\hypersetup{colorlinks,allcolors=blue}\else \ifRESP@screen\hypersetup{colorlinks,allcolors=blue}\else - \hypersetup{hidelinks}\fi\fi + \ifRESP@preprint\hypersetup{colorlinks,allcolors=blue}\else + \ifRESP@forthcoming\hypersetup{colorlinks,allcolors=blue}\else + \hypersetup{hidelinks}\fi\fi\fi\fi \ifRESP@fontauto \IfFileExists{t1lsb.fd}{\RESP@lsabontrue}{\RESP@lsabonfalse}\fi \ifRESP@lsabon @@ -129,7 +137,11 @@ \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} \setlength{\footskip}{20pt} -\ifRESP@manuscript +\newif\ifRESP@printlinecount +\RESP@printlinecountfalse +\ifRESP@manuscript\RESP@printlinecounttrue\fi +\ifRESP@preprint\RESP@printlinecounttrue\fi +\ifRESP@printlinecount \newsavebox{\RESP@linecount} \savebox{\RESP@linecount}[4em][t]{\parbox[t]{4em}{% \@tempcnta\@ne\relax @@ -141,37 +153,76 @@ \fancyfoot{} \fancyhead[LE]{\footnotesize\thepage\qquad\itshape\shortauthors} \fancyhead[RO]{\footnotesize\textit{\shorttitle}\qquad\thepage} -\ifRESP@manuscript +\ifRESP@printlinecount \fancyhead[LE]{\begin{picture}(0,0)% \put(-26,-22){\usebox{\RESP@linecount}}% \end{picture}\footnotesize\thepage\qquad\itshape\shortauthors} \fancyhead[LO]{\begin{picture}(0,0)% \put(-21,-22){\usebox{\RESP@linecount}}% \end{picture}} - \fancyfoot[C]{\scriptsize\color{red}Author's Proof} +\fi +\ifRESP@manuscript + \fancyfoot[C]{\scriptsize\color{red}Author's Proof}% +\fi +\ifRESP@preprint + \fancyfoot[C]{\scriptsize\color{red}Author's Pre-Print}% \fi \fancypagestyle{firstpage}{% \fancyhf{}% - \ifRESP@manuscript + \ifRESP@printlinecount \lhead{\begin{picture}(0,0)% \put(-26,-20){\usebox{\RESP@linecount}}% \end{picture}} \fi + \ifRESP@preprint \cfoot{\footnotesize{\fontfamily{\rpdefault}\selectfont Res Philosophica,} \itshape Vol.~\currentvolume, No.~\currentissue, - \currentmonth~\currentyear, pp.~\start@page--\end@page + \currentmonth~\currentyear + \ifx\@doinumber\@empty\else\\% + \doi{\@doinumber}\fi + \\ + \@copyrightnote}% + \chead{\scriptsize\color{red}Author's Pre-print. Forthcoming in + Res Philosophica. Pagination may change. Published version will + be available at \url{http://pdcnet.org/resphilosophica/}} + \else + \ifRESP@forthcoming + \cfoot{\footnotesize\itshape Res + Philosophica% + \ifx\currentvolume\@empty\else, % + Vol.~\currentvolume\fi + \ifx\currentissue\@empty\else, No.~\currentissue\fi + \ifx\currentmonth\@empty + \ifx\currentyear\@empty\else, \currentyear\fi + \else, + \currentmonth~\currentyear + \fi \ifx\@doinumber\@empty\else\\% \doi{\@doinumber}\fi \\ - \@copyrightnote}} + \@copyrightnote}% + \chead{\vspace*{-\bigskipamount}\footnotesize Forthcoming in \emph{Res + Philosophica}% + \ifx\currentvolume\@empty\else~\currentvolume + \ifx\currentissue\@empty\else:\currentissue\fi\fi + \ifx\currentyear\@empty\else~(\currentyear)\fi.} + \else + \cfoot{\footnotesize{\fontfamily{\rpdefault}\selectfont Res Philosophica,} + \itshape Vol.~\currentvolume, No.~\currentissue, + \currentmonth~\currentyear, pp.~\start@page--\end@page + \ifx\@doinumber\@empty\else\\% + \doi{\@doinumber}\fi + \\ + \@copyrightnote}% + \fi\fi} \def\volumenumber#1{\def\currentvolume{#1}} -\volumenumber{00} +\volumenumber{} \def\issuenumber#1{\def\currentissue{#1}} -\issuenumber{0--0} +\issuenumber{} \def\publicationyear#1{\def\currentyear{#1}} -\publicationyear{2090} +\publicationyear{} \def\publicationmonth#1{\def\currentmonth{#1}} -\publicationmonth{January--February} +\publicationmonth{} \def\papernumber#1{\def\currentpaper{#1}} \papernumber{0000} \def\doinumber#1{\gdef\@doinumber{#1}} @@ -215,7 +266,9 @@ \ifx\@setabstract\relax\@setabstracta\fi% } \def\copyrightyear#1{\def\@copyrightyear{#1}} -\copyrightyear{} +\ifRESP@forthcoming + \copyrightyear{\the\year}\else + \copyrightyear{}\fi \newlength\RESP@bulletboxwidth \settowidth\RESP@bulletboxwidth{\quad\textbullet\quad} \def\copyrightnote#1{\def\@copyrightnote{#1}} @@ -224,7 +277,7 @@ \shortauthors\cleaders\hbox{\quad\textbullet\quad}\hskip\RESP@bulletboxwidth \textcopyright~% \ifx\@empty\@copyrightyear\currentyear\else\@copyrightyear\fi~% - {\normalfont\fontfamily{\rpdefault}\selectfont Res~Philosophica}} + {\ifRESP@forthcoming\else\normalfont\fontfamily{\rpdefault}\selectfont\fi Res~Philosophica}} \renewcommand{\author}[2][]{% \ifx\@empty\addresses \gdef\addresses{\author{#2}}% @@ -246,10 +299,15 @@ } \edef\author{\@nx\@dblarg \@xp\@nx\csname\string\author\endcsname} +\def\@titlenotes{}% +\def\titlenote#1{% + \ifx\@empty\@titlenotes\gdef\@titlenotes{\footnote{#1}}% + \else\g@addto@macro\@titlenotes{\footnote{#1}}\fi} \def\@settitle{\begin{center}% \baselineskip20\p@\relax \LARGE\scshape - \@title + \renewcommand\thefootnote{\@fnsymbol\c@footnote}% + \@title\@titlenotes \hypersetup{pdftitle=\@title}% \end{center}% } -- cgit v1.2.3