On 28/09/2023 19:31, Juan Manuel Macías wrote:
I think I should insist on what I said in my previous message, with a
copy/paste:
The thing is that here it is not a question of whether something can be
done in this way or in another better way. This is how a given package
recommends doing it. If the user wants to use that specific package, she/he
will have to follow these instructions.
My reading of these instructions: users have 2 options, they either
provide .xmpdata files directly or they ask LaTeX to generate it using
filecontents* and take responsibility to remove the file when they
change metadata.
I do not see any words discouraging the former way, while there are
warnings concerning pitfalls with the latter approach that still may be
convenient in some cases.
It's more. I am thinking, for
example, of the case in which the user has to obtain a * tex file, not a
PDF, because she/he is collaborating with more people who do not use
Org, but do use that code in the * tex document.
Perhaps I am wrong in my assumption that in particular case of PDF-X
compliant documents, it is unlikely that it is just a single .tex
document. If there are more files: graphics, custom packages, included
.tex file then an additional separate .xmpdata file is not an issue.