summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/resphilosophica/resphilosophica.dtx155
1 files changed, 136 insertions, 19 deletions
diff --git a/Master/texmf-dist/source/latex/resphilosophica/resphilosophica.dtx b/Master/texmf-dist/source/latex/resphilosophica/resphilosophica.dtx
index 4337ddab6f1..460da4d9735 100644
--- a/Master/texmf-dist/source/latex/resphilosophica/resphilosophica.dtx
+++ b/Master/texmf-dist/source/latex/resphilosophica/resphilosophica.dtx
@@ -1,6 +1,6 @@
% \iffalse
%<*gobble>
-% $Id: resphilosophica.dtx,v 1.27 2013-07-21 17:53:47 boris Exp $
+% $Id: resphilosophica.dtx,v 1.35 2013-08-19 03:48:56 boris Exp $
%
% Copyright 2012-2013, Boris Veytsman <boris@varphi.com>
% This work may be distributed and/or modified under the
@@ -20,7 +20,7 @@
% derived file resphilosophica.cls
%
% \fi
-% \CheckSum{1080}
+% \CheckSum{1238}
%
%
%% \CharacterTable
@@ -53,7 +53,7 @@
\ProvidesFile{resphilosophica.dtx}
%</gobble>
%<class>\ProvidesClass{resphilosophica}
-[2013/07/21 v1.12 Typesetting articles for Res Philosophica]
+[2013/08/18 v1.13 Typesetting articles for Res Philosophica]
%<*gobble>
% \end{macrocode}
%
@@ -71,6 +71,8 @@
% \changes{v1.10}{2012/09/19}{Bibliography changes}
% \changes{v1.11}{2013/01/08}{Bibliography changes}
% \changes{v1.12}{2013/07/13}{Bibliography changes}
+% \changes{v1.13}{2013/08/14}{New options: preprint and forthcoming}
+% \changes{v1.13}{2013/08/14}{New command: titlenote}
%
%\iffalse
% \begin{macrocode}
@@ -220,10 +222,24 @@
% produces mariginal commentaries in the manuscript
% \end{enumerate}
%
+% \DescribeOption{preprint}
+% The option |preprint| is for the final version of the manuscript.
+% In this mode there are no editorial comments, but the numbering of
+% lines is preserved
+%
+%
+%
% \DescribeOption{screen}
% The option |screen| is intended for the screen reading. When this
% option is selected, the links become highlighted.
%
+%
+% \DescribeOption{forthcoming}
+% The option |forthcoming| is like |screen|, but it is used when there
+% is no information about the volume and or dates for publication.
+%
+%
+%
% \DescribeOption{natbib}
% The preferred solution for bibliography is |natbib|
% package~\cite{Daly07:Natbib}. The option |natbib=true| (default)
@@ -289,7 +305,10 @@
% Note that the right vertical positioning of this footnote might
% require an additional run of \LaTeX.
%
-%
+% \DescribeMacro{\titlenote}
+% The \cs{titlenote}\marg{note} command creates a specila footnote for
+% the title. This command should be issued \emph{outside} the
+% \cs{title} command.
%
% \DescribeMacro{\copyrightnote}
% Normally each paper is copyrighted by the authors and by the
@@ -596,6 +615,27 @@
% \end{macro}
%
%
+% \begin{macro}{\ifRESP@preprint}
+% \changes{v1.13}{2013/08/14}{Added option}
+% Whether we are in the preprint mode
+% \begin{macrocode}
+\newif\ifRESP@preprint
+\RESP@preprintfalse
+\DeclareOptionX{preprint}{\RESP@preprinttrue}
+% \end{macrocode}
+%
+% \end{macro}
+% \begin{macro}{\ifRESP@forthcoming}
+% \changes{v1.13}{2013/08/14}{Added option}
+% Whether we are in the forthcoming mode
+% \begin{macrocode}
+\newif\ifRESP@forthcoming
+\RESP@forthcomingfalse
+\DeclareOptionX{forthcoming}{\RESP@forthcomingtrue}
+% \end{macrocode}
+%
+% \end{macro}
+%
% All other options are passed to \progname{amsart}:
% \begin{macrocode}
\DeclareOptionX{*}{\PassOptionsToClass{\CurrentOption}{amsart}}
@@ -628,7 +668,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
% \end{macrocode}
%
%
@@ -791,12 +833,25 @@
%
% \end{macro}
%
+% \begin{macro}{\RESP@printlinecount}
+% \changes{v1.13}{2013/08/14}{Added macro}
+% Do we want to print line count?
+% \begin{macrocode}
+\newif\ifRESP@printlinecount
+\RESP@printlinecountfalse
+\ifRESP@manuscript\RESP@printlinecounttrue\fi
+\ifRESP@preprint\RESP@printlinecounttrue\fi
+% \end{macrocode}
+%
+% \end{macro}
+%
% \begin{macro}{\RESP@linecount}
% \changes{v1.4}{2012/09/06}{Changed color}
% \changes{v1.5}{2012/09/07}{Changed color}
+% \changes{v1.3}{2013/08/14}{Changed check for linecount}
% This is the box displayed in the manuscript mode
% \begin{macrocode}
-\ifRESP@manuscript
+\ifRESP@printlinecount
\newsavebox{\RESP@linecount}
\savebox{\RESP@linecount}[4em][t]{\parbox[t]{4em}{%
\@tempcnta\@ne\relax
@@ -809,22 +864,28 @@
%
% It is easy to set up headers with \progname{fancyhdr}:
% \changes{v1.4}{2012/09/06}{Changed color of ``Author's proof' mark}
-% \changes{v1.5}{2012/09/07}{Changed color}
+% \changes{v1.5}{2012/09/07}{Changed color for headers and footers}
% \changes{v1.7}{2012/09/11}{Changed formatting of doi}
+% \changes{v1.13}{2013/08/14}{Changed check for line numbering mode}
% \begin{macrocode}
\pagestyle{fancy}
\fancyhead{}
\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
% \end{macrocode}
%
@@ -834,18 +895,52 @@
% \begin{macrocode}
\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}
% \end{macrocode}
%
%
@@ -860,31 +955,35 @@
% The next macros mimic the functionality of \progname{amsart}
% |\issueinfo| command. Note that |\issueinfo| still works.
% \begin{macro}{\volumenumber}
+% \changes{v1.13}{2013/08/14}{The default is now empty}
% This sets the volume of the paper
% \begin{macrocode}
\def\volumenumber#1{\def\currentvolume{#1}}
-\volumenumber{00}
+\volumenumber{}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\issuenumber}
+% \changes{v1.13}{2013/08/14}{The default is now empty}
% This sets the issue of the paper:
% \begin{macrocode}
\def\issuenumber#1{\def\currentissue{#1}}
-\issuenumber{0--0}
+\issuenumber{}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\publicationyear}
+% \changes{v1.13}{2013/08/14}{The default is now empty}
% This sets the year of the paper
% \begin{macrocode}
\def\publicationyear#1{\def\currentyear{#1}}
-\publicationyear{2090}
+\publicationyear{}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\publicationmonth}
+% \changes{v1.13}{2013/08/14}{The default is now empty}
% This sets the month of the paper
% \begin{macrocode}
\def\publicationmonth#1{\def\currentmonth{#1}}
-\publicationmonth{January--February}
+\publicationmonth{}
% \end{macrocode}
% \end{macro}
%
@@ -994,11 +1093,15 @@
% \end{macro}
%
% \begin{macro}{\copyrightyear}
+% \changes{v1.3}{2013/08/14}{In the forthcoming mode the copyright
+% year is the present year}
% This is the copyright year in case it does not coincide with the
% publication year:
% \begin{macrocode}
\def\copyrightyear#1{\def\@copyrightyear{#1}}
-\copyrightyear{}
+\ifRESP@forthcoming
+ \copyrightyear{\the\year}\else
+ \copyrightyear{}\fi
% \end{macrocode}
%
% \end{macro}
@@ -1016,6 +1119,7 @@
% \begin{macro}{\copyrightnote}
% \changes{v1.2}{2012/09/02}{Used \cmd{\rpdefault} for RP font}
% \changes{v1.9}{2012/09/13}{Made bullet disappear at break}
+% \changes{v1.13}{2013/08/18}{Changed font family for forthcoming mode}
% This is the copyrightnote. The default has some trickery with the
% year and short authors.
%
@@ -1029,7 +1133,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}}
% \end{macrocode}
% \end{macro}
%
@@ -1062,6 +1166,17 @@
%
% \end{macro}
%
+% \begin{macro}{\titlenote}
+% \changes{v1.13}{2013/08/14}{Added command}
+% This command adds an entry to the list of titlenotes
+% \begin{macrocode}
+\def\@titlenotes{}%
+\def\titlenote#1{%
+ \ifx\@empty\@titlenotes\gdef\@titlenotes{\footnote{#1}}%
+ \else\g@addto@macro\@titlenotes{\footnote{#1}}\fi}
+% \end{macrocode}
+%
+% \end{macro}
%
%\subsection{Typesetting Top Matter}
%\label{sec:maketitle}
@@ -1069,13 +1184,15 @@
%
% \begin{macro}{\@settitle}
% \changes{v1.3}{2012/09/05}{Deleted ifpdf}
+% \changes{v1.13}{2013/08/14}{Added titlenotes}
% We do not uppercase title. Also, we use this occasion to set PDF
% information:
% \begin{macrocode}
\def\@settitle{\begin{center}%
\baselineskip20\p@\relax
\LARGE\scshape
- \@title
+ \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+ \@title\@titlenotes
\hypersetup{pdftitle=\@title}%
\end{center}%
}