ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: ConTeXt users <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: [NTG-context] \getdocumentfilename or document.files
Date: Tue, 27 Feb 2024 12:43:10 +0100	[thread overview]
Message-ID: <e6ba194b-98f7-4767-465a-c9ffce77afe5@gmx.es> (raw)

Dear list,

I have the following sample (saved as "a.tex"):

  \starttext
  \getdocumentfilename{1}
  \cldcontext{document.files[1]}
  \getdocumentfilename{2}
  \cldcontext{document.files[2]}
  \getdocumentfilename{3}
  \cldcontext{document.files[3]}
  \stoptext

I compile it with:

  context --purgeall a b c

"b.tex" is a different file and "c.tex" is a symlink to "a.tex".

I only get the first filename for "a.tex" and the last filename for "c.tex".

Which is the right way to get the second and third filenames when in
"a.pdf" (or the first two ones in "c.pdf")?

Many thanks for your help,

Pablo
___________________________________________________________________________________
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
___________________________________________________________________________________

                 reply	other threads:[~2024-02-27 11:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e6ba194b-98f7-4767-465a-c9ffce77afe5@gmx.es \
    --to=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).