From de0332fcc5336a39edea9f6a5103f6d8f1c4d608 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 17 Dec 2016 20:39:05 +0000 Subject: resphilosophica (17dec16) git-svn-id: svn://tug.org/texlive/trunk@42736 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/resphilosophica/resphilosophica.dtx | 39 ++++++++++++++++------ 1 file changed, 28 insertions(+), 11 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 768a57c7a99..7df18d03549 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.60 2015/11/15 00:16:06 boris Exp $ +% $Id: resphilosophica.dtx,v 1.61 2016/08/27 01:12:02 boris Exp $ % % Copyright 2012-2015, Boris Veytsman % This work may be distributed and/or modified under the @@ -20,7 +20,7 @@ % derived file resphilosophica.cls % % \fi -% \CheckSum{1378} +% \CheckSum{1396} % % %% \CharacterTable @@ -53,7 +53,7 @@ \ProvidesFile{resphilosophica.dtx} % %\ProvidesClass{resphilosophica} -[2015/11/14 v1.28 Typesetting articles for Res Philosophica] +[2016/08/26 v1.29 Typesetting articles for Res Philosophica] %<*gobble> % \end{macrocode} % @@ -400,15 +400,18 @@ % \publicationmonth[Jan--Feb]{January--February} % \end{verbatim} % +% \DescribeMacro{\manuscriptid}% +% The comman \cs{manuscriptid}\oarg{id} sets the number of the +% manuscript assigned at submission. If it is set, it is used to +% calculate the doi number (see below). % -% -% \DescribeMacro{\doinumber} +% \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. +% construct the number using the paper data. 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 @@ -1159,13 +1162,27 @@ % % \end{macro} % +% \begin{macro}{\manuscriptid} +% \changes{v1.29}{2016/08/26}{Added macro} +% Submission id +% \begin{macrocode} +\def\manuscriptid#1{\gdef\@manuscriptid{#1}} +\manuscriptid{} +% +% \end{macro} +% % % \begin{macro}{\doinumber} % \changes{v1.11}{2012/12/25}{Added default} +% \changes{v1.29}{2016/08/26}{Now we use \cs{manuscriptid} to make doi} % DOI number for the article: % \begin{macrocode} \def\doinumber#1{\gdef\@doinumber{#1}} -\doinumber{10.11612/resphil.\currentyear.\currentvolume.\currentissue.\currentpaper} +\doinumber{\ifx\@manuscriptid\@empty + 10.11612/resphil.\currentyear.\currentvolume.\currentissue.\currentpaper + \else + 10.11612/resphil.\@manuscriptid + \fi} % \end{macrocode} % \end{macro} % -- cgit v1.2.3