summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pfarrei/pfarrei.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-11-23 03:01:03 +0000
committerNorbert Preining <norbert@preining.info>2023-11-23 03:01:03 +0000
commit4b11f001033c31cf22cda6f3d77dc2b5f013cd5b (patch)
treeea4d2ddd208b47806191c038078b3a9e688ae001 /macros/latex/contrib/pfarrei/pfarrei.dtx
parent3ccfe4b1586c1cafd045993a517e3b9ad3ed631e (diff)
CTAN sync 202311230301
Diffstat (limited to 'macros/latex/contrib/pfarrei/pfarrei.dtx')
-rw-r--r--macros/latex/contrib/pfarrei/pfarrei.dtx27
1 files changed, 16 insertions, 11 deletions
diff --git a/macros/latex/contrib/pfarrei/pfarrei.dtx b/macros/latex/contrib/pfarrei/pfarrei.dtx
index 17ab114049..9f3b663a51 100644
--- a/macros/latex/contrib/pfarrei/pfarrei.dtx
+++ b/macros/latex/contrib/pfarrei/pfarrei.dtx
@@ -12,9 +12,9 @@
% and version 1.3c or later is part of all distributions of LaTeX
% version 2005/12/01.
%
-% This work has the LPPL maintenance status `maintained'.
+% This work has the LPPL maintenance status `unmaintained'.
%
-% The Current Maintainer and author of this work is Markus Kohm.
+% This package is currently unmaintained.
%
% This work consists of the files `README' and `pfarrei.dtx'.
%
@@ -36,9 +36,9 @@
% und Version 1.3c ist Teil aller Verteilungen von LaTeX
% Version 2005/12/01.
%
-% Dieses Wert hat den LPPL-Verwaltungszustand `maintained' (verwaltet).
+% Dieses Wert hat den LPPL-Verwaltungszustand `unmaintained' (verwaltet).
%
-% Der Aktuelle Verwalter und Autor dieses Werkes ist Markus Kohm.
+% Autor dieses Werkes ist Markus Kohm.
%
% Das Werk besteht aus den Dateien `README' und `pfarrei.dtx'.
%
@@ -72,10 +72,10 @@
\begingroup
\def\revisiondate$#1: #2-#3-#4 #5${%
\gdef\pfarreirevisiondate{#2/#3/#4}%
- }\revisiondate$Date: 2013-10-16 20:54:26 +0200 (Mi, 16. Okt 2013) $
+ }\revisiondate$Date: 2023-11-22 20:54:26 +0200 (Mi, 22. Nov 2023) $
\def\revision$#1: #2 #3${%
\gdef\pfarreirevision{#2}%
- }\revision$Revision: 36 $
+ }\revision$Revision: 37 $
\endgroup
%<*dtx>
\def\LaTeXformat{LaTeX2e}
@@ -152,9 +152,10 @@ with the work `pfarrei'. You may however distribute the work
<http://www.latex-project.org/lppl.txt> for additional
information.
-This work has the LPPL maintenance status `maintained'.
+This work has the LPPL maintenance status `unmaintained'.
-The Current Maintainer of this work is Markus Kohm.
+
+This package is currently unmaintained.
The list of files belonging to the work `pfarrei' is given in
the file `pfarrei.dtx'.
@@ -1034,7 +1035,7 @@ the file `pfarrei.dtx'.
%<*a5toa4>
% \fi^^A meta-comment
% \begin{macrocode}
--- $Id: pfarrei.dtx 36 2013-10-16 18:54:26Z mjk $
+-- $Id: pfarrei.dtx 37 2023-11-22 18:54:26Z ps $
kpse.set_program_name(arg[-1], 'a5toa4')
require('pfarrei.pfarrei')
@@ -1049,7 +1050,7 @@ require('pfarrei.pfarrei')
%<*pfarrei>
% \fi^^A meta-comment
% \begin{macrocode}
-local version_number = string.sub( '$Revision: 36 $', 12, -2 )
+local version_number = string.sub( '$Revision: 37 $', 12, -2 )
local action_version = ' r' .. version_number .. '\n' .. [[
Copyright (c) 2013 Markus Kohm.
@@ -1121,11 +1122,15 @@ while arg[i] do
-- build the temporary tex file
local tmpdir = os.tmpdir("pfarrei.XXXXXX" )
local tmpfile = string.match( arg[i], '.*/(.*)$') or arg[i]
+ -- pdflatex's -output-directory search for source pdf works with path specification but fails
+ -- when simple file name in the current working directory is provided, we need to provide '../' then
+ local local_source=''
+ if tmpfile == arg[i] then local_source = '../' end
local basename = string.match( tmpfile,'(.*)%.[^.]*$') or tmpfile
tmpfile = tmpdir..'/'..basename..'.tex'
local file = assert( io.open( tmpfile, 'w' ) )
if booklet then assert( file:write("\\PassOptionsToPackage{booklet}{pfarrei}\n") ) end
- assert( file:write("\\def\\OriginalFile{",arg[i],"}\n") )
+ assert( file:write("\\def\\OriginalFile{"..local_source,arg[i],"}\n") )
assert( file:write("\\input{a5toa4.tex}\n") )
assert( file:flush() )
file:close()