summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/resphilosophica
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-01-11 23:58:24 +0000
committerKarl Berry <karl@freefriends.org>2013-01-11 23:58:24 +0000
commit3ad11a84df06ccfbf00d1663d5b6595dd72f07a9 (patch)
tree0ae6a5cc475cebd361824b9a5bb8b4361f78ffad /Master/texmf-dist/source/latex/resphilosophica
parent04d65e6b467b8b270ebd626181c4b87d6a66a5de (diff)
resphilosophica 1.11 (10jan13)
git-svn-id: svn://tug.org/texlive/trunk@28799 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/resphilosophica')
-rw-r--r--Master/texmf-dist/source/latex/resphilosophica/resphilosophica.dtx59
1 files changed, 50 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/resphilosophica/resphilosophica.dtx b/Master/texmf-dist/source/latex/resphilosophica/resphilosophica.dtx
index 8a527831338..bb90b2f474f 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.22 2012-09-20 02:54:34 boris Exp $
+% $Id: resphilosophica.dtx,v 1.25 2013-01-08 18:42:59 boris Exp $
%
-% Copyright 2012, Boris Veytsman <boris@varphi.com>
+% Copyright 2012-2013, Boris Veytsman <boris@varphi.com>
% 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{1030}
+% \CheckSum{1080}
%
%
%% \CharacterTable
@@ -53,7 +53,7 @@
\ProvidesFile{resphilosophica.dtx}
%</gobble>
%<class>\ProvidesClass{resphilosophica}
-[2012/09/19 v1.10 Typesetting articles for Res Philosophica]
+[2013/01/08 v1.11 Typesetting articles for Res Philosophica]
%<*gobble>
% \end{macrocode}
%
@@ -69,6 +69,7 @@
% \changes{v1.8}{2012/09/12}{Added blank last page if the last page is
% odd}
% \changes{v1.10}{2012/09/19}{Bibliography changes}
+% \changes{v1.11}{2013/01/08}{Bibliography changes}
%
%\iffalse
% \begin{macrocode}
@@ -337,11 +338,11 @@
% \DescribeMacro{\issuenumber}
% \DescribeMacro{\publicationyear}
% \DescribeMacro{\publicationmonth}
-% \DescribeMacro{\doinumber}
+% \DescribeMacro{\papernumber}
% \DescribeMacro{\startpage}
% \DescribeMacro{\endpage}
% The macros |\volumenumber|, |\issuenumber|, |\publicationyear|,
-% |\publicationmonth|, |\doinumber|, |\startpage|, |\endpage| set up the
+% |\publicationmonth|, |\papernumber|, |\startpage|, |\endpage| set up the
% corresponding
% data for the paper, for example:
% \begin{verbatim}
@@ -349,13 +350,21 @@
% \issuenumber{1--2}
% \publicationyear{2012}
% \publicationmonth{January and April}
-% \doinumber{100.234/RP-2-3-12}
+% \papernumber{2}
% \startpage{1}
% \endpage{39}
% \end{verbatim}
% Note that if the argument of |\endpage| is empty, \LaTeX{} tries to
% calculate the last page number as best as it can.
%
+% \DescribeMacro{\doinumber}
+% Normally you do not need to set the DOI of the paper: \TeX{} will
+% construct the number using the paper data (including paper number in
+% the current issue). However, you \emph{may} override its decision
+% using the command |\doinumber| which sets the DOI explicitly, for
+% example, |\doinumber|\marg{10.11612/resphilosophica.2013.01.01}.
+% You probably should not use this macro.
+%
% \DescribeMacro{\prevpaper}
% Instead of setting |\startpage|, one can use the the command
% |\prevpaper|\marg{previous paper}, with the argument being the
@@ -878,12 +887,22 @@
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{\papernumber}
+% \changes{v1.11}{2012/12/24}{Added macro}
+% This is absent from the |\issueinfo|.
+% \begin{macrocode}
+\def\papernumber#1{\def\currentpaper{#1}}
+\papernumber{0000}
+%
+% \end{macro}
+%
+%
% \begin{macro}{\doinumber}
-% \changes{v1.1}{2012/09/01}{Added macro}
+% \changes{v1.11}{2012/12/25}{Added default}
% DOI number for the article:
% \begin{macrocode}
\def\doinumber#1{\gdef\@doinumber{#1}}
-\doinumber{}
+\doinumber{10.11612/resphil.\currentyear.\currentvolume.\currentissue.\currentpaper}
% \end{macrocode}
% \end{macro}
%
@@ -1157,6 +1176,7 @@
% \begin{macro}{\RESP@write@paper@info}
% \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}
% This writes the information about the paper into the file
% |jobname.rpi|. Note that hyperref makes our life a little bit
% more complex
@@ -1175,6 +1195,27 @@
\def\and{\string\and\space}%
\protected@write\@mainrpi{}%
{\string\articleentry{\authors}{\@title}{\start@page}{\@tempa}}%
+% \end{macrocode}
+% The next lines are for crossref software
+% \begin{macrocode}
+ \protected@write\@mainrpi{}%
+ {\@percentchar authors=\authors}%
+ \protected@write\@mainrpi{}%
+ {\@percentchar title=\@title}%
+ \protected@write\@mainrpi{}%
+ {\@percentchar year=\currentyear}%
+ \protected@write\@mainrpi{}%
+ {\@percentchar volume=\currentvolume}%
+ \protected@write\@mainrpi{}%
+ {\@percentchar issue=\currentissue}%
+ \protected@write\@mainrpi{}%
+ {\@percentchar paper=\currentpaper}%
+ \protected@write\@mainrpi{}%
+ {\@percentchar startpage=\start@page}%
+ \protected@write\@mainrpi{}%
+ {\@percentchar endpage=\@tempa}%
+ \protected@write\@mainrpi{}%
+ {\@percentchar doi=\@doinumber}%
\closeout\@mainrpi
\fi
\egroup}