ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] list of used files
@ 2024-07-20  7:31 Henning Hraban Ramm
  2024-07-20  8:04 ` [NTG-context] " Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2024-07-20  7:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

is there some mechanism (directive?) that gives me a list of files that 
were involved in making a PDF? Preferably only those outside of the 
texmf trees, but I could filter that myself.

(With "latexmk -recorder somelatexfile" I get the file list as a .fls file.)

My goal is to commit all used images to my git repo, while I often have 
a big collection of images that I didn’t use in the end and don’t need 
in the repo.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: list of used files
  2024-07-20  7:31 [NTG-context] list of used files Henning Hraban Ramm
@ 2024-07-20  8:04 ` Hans Hagen
  2024-07-20 10:40   ` Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2024-07-20  8:04 UTC (permalink / raw)
  To: ntg-context

On 7/20/2024 9:31 AM, Henning Hraban Ramm wrote:
> Hi,
> 
> is there some mechanism (directive?) that gives me a list of files that 
> were involved in making a PDF? Preferably only those outside of the 
> texmf trees, but I could filter that myself.
> 
> (With "latexmk -recorder somelatexfile" I get the file list as a .fls 
> file.)
> 
> My goal is to commit all used images to my git repo, while I often have 
> a big collection of images that I didn’t use in the end and don’t need 
> in the repo.
subconscious you know the answer:

    look at the log file

files are tagged with "start used files"

of course you can also try

\enabledirectives[system.dumpfiles=lua]

and stare at the resulting job log file (jlg)

(the default is xml but i noticed some empty entries in there ... a very 
old feature so i need to travel back in time now)

if files are missing let me know

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: list of used files
  2024-07-20  8:04 ` [NTG-context] " Hans Hagen
@ 2024-07-20 10:40   ` Henning Hraban Ramm
  2024-07-20 14:23     ` Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2024-07-20 10:40 UTC (permalink / raw)
  To: ntg-context

Am 20.07.24 um 10:04 schrieb Hans Hagen:
> subconscious you know the answer:
> 
>     look at the log file

Not only sub*; I forgot to mention I’d like to avoid parsing that.

> of course you can also try
> 
> \enabledirectives[system.dumpfiles=lua]
> 
> and stare at the resulting job log file (jlg)

Thank you!

Now my downsampling bites me:

   {
 
["filename"]="…/img/m_k_i_v_Fenster_jpg_2ec2682ee73b38bbc98c6d1432bf1bcb.lowres.jpg",
 
["foundname"]="…/img/m_k_i_v_Fenster_jpg_2ec2682ee73b38bbc98c6d1432bf1bcb.lowres.jpg",
 
["fullname"]="…/img/m_k_i_v_Fenster_jpg_2ec2682ee73b38bbc98c6d1432bf1bcb.lowres.jpg",
    ["usedmethod"]="direct",
   },

I can disable it:

   {
    ["filename"]="…/img/Fenster.jpg",
    ["foundname"]="…/img/Fenster.jpg",
    ["fullname"]="…/img/Fenster.jpg",
    ["usedmethod"]="direct",
   },

But images lack the "filetype" entry that other file types have, it 
would have been useful. But checking the file extension is good enough 
for my task.


Hraban

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: list of used files
  2024-07-20 10:40   ` Henning Hraban Ramm
@ 2024-07-20 14:23     ` Henning Hraban Ramm
  0 siblings, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2024-07-20 14:23 UTC (permalink / raw)
  To: ntg-context

Hans provided me with a patch that allows
\enabledirectives[system.dumpfiles=json]

It will be in the next update, I guess.

I’m using it with the new tool "addtogit.py"
in https://codeberg.org/fiee/context-tools
to add all files that are necessary for a
ConTeXt job to the current git repository.

Of course I could have parsed the log file.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-20 14:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-20  7:31 [NTG-context] list of used files Henning Hraban Ramm
2024-07-20  8:04 ` [NTG-context] " Hans Hagen
2024-07-20 10:40   ` Henning Hraban Ramm
2024-07-20 14:23     ` Henning Hraban Ramm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).