From 38abb16203e10729d9936fef27a395edfb1860e8 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 16 Jan 2015 23:23:12 +0000 Subject: resphilosophica (16jan15) git-svn-id: svn://tug.org/texlive/trunk@36074 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/resphilosophica/resphilosophica.dtx | 100 ++++++++++++++++++--- 1 file changed, 86 insertions(+), 14 deletions(-) (limited to 'Master/texmf-dist/source/latex/resphilosophica') diff --git a/Master/texmf-dist/source/latex/resphilosophica/resphilosophica.dtx b/Master/texmf-dist/source/latex/resphilosophica/resphilosophica.dtx index b54f3a9be3e..25f5001e8f7 100644 --- a/Master/texmf-dist/source/latex/resphilosophica/resphilosophica.dtx +++ b/Master/texmf-dist/source/latex/resphilosophica/resphilosophica.dtx @@ -1,8 +1,8 @@ % \iffalse %<*gobble> -% $Id: resphilosophica.dtx,v 1.44 2013-12-23 20:38:14 boris Exp $ +% $Id: resphilosophica.dtx,v 1.50 2015-01-16 01:00:49 boris Exp $ % -% Copyright 2012-2013, Boris Veytsman +% Copyright 2012-2014, Boris Veytsman % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either % version 1.3 of this license or (at your option) any @@ -20,7 +20,7 @@ % derived file resphilosophica.cls % % \fi -% \CheckSum{1306} +% \CheckSum{0} % % %% \CharacterTable @@ -53,7 +53,7 @@ \ProvidesFile{resphilosophica.dtx} % %\ProvidesClass{resphilosophica} -[2013/12/23 v1.19 Typesetting articles for Res Philosophica] +[2015/01/14 v1.24 Typesetting articles for Res Philosophica] %<*gobble> % \end{macrocode} % @@ -81,6 +81,7 @@ % comments} % \changes{v1.17}{2013/12/01}{Bibliography changes: % `inloosecollection' entry} +% \changes{v1.24}{2015/01/14}{New command: authornote} % %\iffalse % \begin{macrocode} @@ -306,11 +307,16 @@ % 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 +% \DescribeMacro{\titlenote}% +% The \cs{titlenote}\marg{note} command creates a special footnote for % the title. This command should be issued \emph{outside} the % \cs{title} command. % +% \DescribeMacro{\authornote}% +% The similar \cs{authornote}\marg{note} command creates a special +% footnote for the author. This command should be issued +% \emph{outside} the \cs{author} command. +% % \DescribeMacro{\copyrightnote} % Normally each paper is copyrighted by the authors and by the % journal. This is reflected in the footnote on the @@ -407,6 +413,13 @@ % this case |latex| will read the last page of the previous paper, and % start the current one from the proper page number. % +% \DescribeMacro{\paperUrl} +% When a paper is submitted to the Crossref service, which keeps the +% database of Digital Object Identifiers, its URL is calculated by +% the script used by editors. The command \cs{paperURL}\marg{url} +% overrides this choice. +% +% % \DescribeMacro{\EditorialComment} % The macro |\EditorialComment|\oarg{level}\marg{comments} typesets % the comments @@ -681,7 +694,7 @@ % \begin{macro}{natbib} % Checking natbib option: % \begin{macrocode} -\define@boolkey+{resphilosophica.cls}[RESP@]{natbib}[tue]{}{% +\define@boolkey+{resphilosophica.cls}[RESP@]{natbib}[true]{}{% \PackageWarning{resphilosophica}{The option natbib must be yes or no. Using yes}} \RESP@natbibtrue @@ -760,9 +773,10 @@ %\subsection{Loading Classes and Packages} %\label{sec:classes} % +% \changes{v1.23}{2014/11/17}{Switched to twoside mode of amsart} % We use |amsart| since it has nice features for front matter: % \begin{macrocode} -\LoadClass[noamsfonts]{amsart} +\LoadClass[noamsfonts,twoside]{amsart} % \end{macrocode} % % \changes{v1.3}{2012/09/05}{Ifpdf is no longer needed with modern engines} @@ -860,10 +874,12 @@ % \begin{macro}{\pdfpaperheight} % \changes{v1.3}{2012/09/05}{Deleted ifpdf} % \changes{v1.4}{2012/09/06}{Changed paper in the manuscript mode} +% \changes{v1.23}{2014/11/17}{Added to paper width to accomodate +% larger thumb side margins} % Paper: % \begin{macrocode} \ifRESP@manuscript\else -\AtBeginDocument{\setlength{\pdfpagewidth}{432bp}% +\AtBeginDocument{\setlength{\pdfpagewidth}{441bp}% \setlength{\pdfpageheight}{648bp}} \fi % \end{macrocode} @@ -883,10 +899,20 @@ % % \begin{macro}{\evensidemargin} % \begin{macro}{\oddsidemargin} +% \changes{v1.23}{2014/11/17}{Made even- and odd- side margins +% different, except in screen and forthcoming modes} % The margins: % \begin{macrocode} -\setlength{\evensidemargin}{-18pt} -\setlength{\oddsidemargin}{\evensidemargin} +\setlength{\evensidemargin}{-9pt} +\setlength{\oddsidemargin}{-18pt} +\ifRESP@screen +\setlength{\evensidemargin}{-13pt} +\setlength{\oddsidemargin}{-13pt} +\fi +\ifRESP@forthcoming +\setlength{\evensidemargin}{-13pt} +\setlength{\oddsidemargin}{-13pt} +\fi % \end{macrocode} % % \end{macro} @@ -1126,6 +1152,16 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\paperUrl} +% \changes{v1.21}{2014/04/11}{Added macro} +% The url to submit to crossref +% \begin{macrocode} +\def\paperUrl#1{\gdef\@paperUrl{#1}} +\paperUrl{} +% \end{macrocode} +% +% \end{macro} +% % \begin{macro}{\startpage} % This defines the starting page of the paper. We have some nice % features to set up roman page numbers for editorial @@ -1313,6 +1349,17 @@ % \end{macrocode} % % \end{macro} +% \begin{macro}{\authornote} +% \changes{v1.24}{2015/01/14}{Added command} +% This command adds an entry to the list of titlenotes +% \begin{macrocode} +\def\@authornotes{}% +\def\authornote#1{% + \ifx\@empty\@authornotes\gdef\@authornotes{\footnote{#1}}% + \else\g@addto@macro\@authornotes{\footnote{#1}}\fi} +% \end{macrocode} +% +% \end{macro} % %\subsection{Typesetting Top Matter} %\label{sec:maketitle} @@ -1339,6 +1386,7 @@ % \changes{v1.1}{2012/09/01}{Changed font} % \changes{v1.2}{2012/09/04}{Changed font} % \changes{v1.3}{2012/09/05}{Deleted ifpdf} +% \changes{v1.24}{2015/01/14}{Added authornotes} % Now we typeset authors according to our specs. Again, we use this % occasion to set some PDF information: % \begin{macrocode} @@ -1354,7 +1402,8 @@ \author@andify\authors \hypersetup{pdfauthor=\authors}% \def\\{\protect\linebreak}% - \large\normalfont\authors% + \renewcommand\thefootnote{\@fnsymbol\c@footnote}% + \large\normalfont\authors\@authornotes \endtrivlist \endgroup \fi} @@ -1432,6 +1481,7 @@ % \changes{v1.1}{2012/09/01}{Added protection for \cmd{\\}} % \changes{v1.2}{2012/09/02}{Used \cmd{\protected@write}} % \changes{v1.11}{2012/12/25}{Added writing info for crossref} +% \changes{v1.21}{2014/04/11}{Added paperUrl} % This writes the information about the paper into the file % |jobname.rpi|. Note that hyperref makes our life a little bit % more complex @@ -1471,6 +1521,10 @@ {\@percentchar endpage=\@tempa}% \protected@write\@mainrpi{}% {\@percentchar doi=\@doinumber}% + \ifx\@paperUrl\@empty\else + \protected@write\@mainrpi{}% + {\@percentchar paperUrl=\@paperUrl}% + \fi \closeout\@mainrpi \fi \egroup} @@ -1655,9 +1709,18 @@ % % \end{macro} % -% At the end we eject the last page +% \changes{v1.22}{2014/04/17}{Now we add empty even page at the end +% for printed version only} +% At the end we eject the last page. If the document is printed and +% the last page is odd, we add an empty page. % \begin{macrocode} -\AtEndDocument{\cleardoublepage} +\AtEndDocument{\clearpage + \ifRESP@manuscript\else + \ifRESP@screen\else + \ifRESP@preprint\else + \ifRESP@forthcoming\else + \cleardoublepage + \fi\fi\fi\fi} % \end{macrocode} % % @@ -1818,6 +1881,15 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\@makefnmark} +% \changes{v1.20}{2014/03/25}{Redefined} +% The definition of \cs{@makefnmark} in amsart has a bug. Here we +% return to the \LaTeX\ one: +% \begin{macrocode} +\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}} +% \end{macrocode} +% +% \end{macro} % % \begin{macro}{\@makefntext} % \changes{v1.4}{2012/09/06}{Redefined} -- cgit v1.2.3