summaryrefslogtreecommitdiff
path: root/support/latex-make/texdepends.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-01-04 03:00:45 +0000
committerNorbert Preining <norbert@preining.info>2021-01-04 03:00:45 +0000
commitb49dd7c340dbe68a28c8a976cd6a1429ca8aafff (patch)
tree1e22dd36991a3910a34ab5c5a8721c51e439a9fd /support/latex-make/texdepends.dtx
parent1a272a3cba66aebe829cd28965c0e8acc8c44681 (diff)
CTAN sync 202101040300
Diffstat (limited to 'support/latex-make/texdepends.dtx')
-rw-r--r--support/latex-make/texdepends.dtx35
1 files changed, 23 insertions, 12 deletions
diff --git a/support/latex-make/texdepends.dtx b/support/latex-make/texdepends.dtx
index 0b206a2ae6..8c02e23f77 100644
--- a/support/latex-make/texdepends.dtx
+++ b/support/latex-make/texdepends.dtx
@@ -27,7 +27,7 @@
%<package>\ProvidesPackage{texdepends}%
% \fi
% \ProvidesFile{texdepends.dtx}
-[2020/06/01 v2.4.0 No changes in texdepends.dtx]
+[2021/01/03 v2.4.2 Replace // by / in paths]
% \iffalse
%<*driver>
\documentclass{ltxdoc}
@@ -100,7 +100,7 @@
% This package allows \LaTeX\space to automatically generate
% dependencies while compiling documents.
% \end{abstract}
-% \CheckSum{793}
+% \CheckSum{801}
%
% \changes{v1.0.1}{2005/03/22}{Version 1.0.1 at last}
% \changes{v1.0.2}{2005/10/22}{Add support for package index.sty}
@@ -110,6 +110,8 @@
% \changes{v1.3.0}{2011/09/25}{Management of svg files}
% \changes{v2.2.5}{2018/09/04}{No changes in texdepends.dtx}
% \changes{v2.3.0}{2018/10/17}{ignore comment.cut file from the comment package}
+% \changes{v2.4.1}{2020/07/10}{No changes in texdepends.dtx}
+% \changes{v2.4.2}{2021/01/03}{Replace // by / in paths}
%
% \makeatletter
% \def\SpecialOptionIndex#1{\@bsphack
@@ -267,6 +269,7 @@
% \begin{macro}{\TD@warning}
% To write a warning
% \begin{macrocode}
+\RequirePackage{xstring}%
\newcommand{\TD@warning}[1]{%
\PackageWarningNoLine{texdepends}{#1}%
}%
@@ -316,7 +319,13 @@
% We write something in the file
% \begin{macrocode}
\def\TD@print#1{%
- \immediate\write\TD@write{#1}%
+ {%
+ % TODO: fix pb when #1 contains '#'
+ %\noexpandarg%
+ \StrSubstitute{#1}{//}{/}[\TD@write@text]%
+ \immediate\write\TD@write{\TD@write@text}%
+ %\immediate\write\TD@write{#1}%
+ }
}%
% \end{macrocode}
% \end{macro}
@@ -372,7 +381,7 @@
% A file is missing. |texdepend| will try to skip it this time,
% but it will be needed at the next compilation
% \begin{macrocode}
-\def\TD@printRequiredFile#1{%
+\def\TD@printRequiredFile#1#2{%
\TD@print{TD_\jobname\TD@extention _REQUIRED\space += #1}%
}%
% \end{macrocode}
@@ -380,7 +389,9 @@
% \begin{macro}{\RequireFile}
% LaTeX users can directly declare a dependencie
% \begin{macrocode}
-\let\RequireFile\TD@printRequiredFile
+\def\RequireFile#1{%
+ \TD@printRequiredFile{#1}{User}%
+}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\TD@printOut}
@@ -798,7 +809,7 @@
\PackageWarning{texdepends}{Figure '#1' needed\MessageBreak
Skipping it this time (the last one however)\MessageBreak}%
\TD@missingDepends%
- \TD@printRequiredFile{#1}%
+ \TD@printRequiredFile{#1}{eps}%
}%
}%
\def\TD@Ginclude@pdf#1{%
@@ -808,7 +819,7 @@
\PackageWarning{texdepends}{Figure '#1' needed\MessageBreak
Skipping it this time (the last one however)\MessageBreak}%
\TD@missingDepends%
- \TD@printRequiredFile{#1}%
+ \TD@printRequiredFile{#1}{pdf}%
}%
}%
\def\TD@graphicspath#1{%
@@ -862,7 +873,7 @@
\PackageWarning{texdepends}{Figure '#2' needed\MessageBreak
Skipping it this time (the last one however)\MessageBreak}%
\TD@missingDepends%
- \TD@printRequiredFile{#2}%
+ \TD@printRequiredFile{#2}{rawtexgraphics}%
}%
}%
@@ -873,7 +884,7 @@
\PackageWarning{texdepends}{Figure '#1' needed\MessageBreak
Skipping it this time (the last one however)\MessageBreak}%
\TD@missingDepends%
- \TD@printRequiredFile{#1}%
+ \TD@printRequiredFile{#1}{rawtex}%
}%
}%
@@ -892,7 +903,7 @@
Skipping it this time (the last one however)\MessageBreak}%
}
\TD@missingDepends%
- \TD@printRequiredFile{#1}%
+ \TD@printRequiredFile{#1}{figtex}%
}%
}%
% \@Ginclude@svgtex
@@ -910,7 +921,7 @@
Skipping it this time (the last one however)\MessageBreak}%
}
\TD@missingDepends%
- \TD@printRequiredFile{#1}%
+ \TD@printRequiredFile{#1}{svgtex}%
}%
}%
@@ -946,7 +957,7 @@
}%
% \FL@subfig@check
\def\TD@FL@subfig@check#1{%
- \TD@printRequiredFile{#1}%
+ \TD@printRequiredFile{#1}{subfigcheck}%
\TD@printSubfig{#1}%
}%
%