Skip to content

Commit

Permalink
extend listing format with current file path and options
Browse files Browse the repository at this point in the history
  • Loading branch information
xqms committed Apr 8, 2024
1 parent bf9dbf5 commit 2ecc5bf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions graphicscache.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,12 @@
% corresponds to the ``Maximum'' setting mentioned by Adobe.
%
% \DescribeKey{listing}'=true|false'
% If enabled, |graphicscache| will write an extra |.graphicscache| file with
% If enabled, |graphicscache| will write an extra |name.graphicscache| file with
% mappings from |includegraphics| arguments to cache files. This can be used
% to produce a version of the TeX source code that directly references the
% PDF files instead of the original sources.
% PDF files instead of the original sources. The format of the file is as
% follows:\\
% |file:line name [options] [resolved-options] resolved-name output-file|.
%
% \DescribeKey{render}'=true|false'
% Controls whether rendering is allowed. The default is |true|. If |false|,
Expand Down Expand Up @@ -218,6 +220,7 @@
\RequirePackage{ifplatform}
\RequirePackage{pdftexcmds}
\RequirePackage{ltxcmds}
\RequirePackage{currfile}
\newif\ifgraphicscache@render
\newif\ifgraphicscache@disable
\newif\ifgraphicscache@compress
Expand Down Expand Up @@ -641,7 +644,7 @@
\edef\graphicscache@output{\graphicscache@cachedir/\graphicscache@outputhash.pdf}%
\ifgraphicscache@listing
\PackageInfo{graphicscache}{graphicscache: includegraphics\{#2\} => \graphicscache@output}%
\immediate\write\graphicscache@listout{#2 \graphicscache@fname\space \graphicscache@output}%
\immediate\write\graphicscache@listout{\currfilepath:\number\inputlineno\space #2 [#1] [\graphicscache@graphicsargs] \graphicscache@fname\space \graphicscache@output}%
\fi
\graphicscache@work
\else
Expand Down

0 comments on commit 2ecc5bf

Please sign in to comment.