ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: [NTG-context] Re: missing metadata in LMTX
Date: Mon, 4 Mar 2024 01:18:43 +0100	[thread overview]
Message-ID: <7daf567a-898c-b69a-48fb-64d5eee8db68@gmail.com> (raw)
In-Reply-To: <de6e2b0b-25af-eaa3-e136-7a5d8c963339@gmx.es>

Pablo Rodriguez via ntg-context schrieb am 03.03.2024 um 20:02:
> Dear list,
> 
> this issue has been bugging me for some time:
> 
> [...]
> 
> With LuaTeX, I get PDF metadata. With LuaMetaTeX, I cannot get them.
> 
> For both, I’m using current latest (from 2024.02.27 09:21).
> 
> Could anyone confirm the issue or explain me what I am missing

I can confirm the issue and it happens because Hans changed they way
how the values of the \setupinteraction commands are passed to Lua
side of ConTeXt to be written to the PDF file.

I can provide at the moment solutions which ensure the information
appear in the PDF but none of the is very elegant and I hope Hans
can help with a clean solution.

The first solution works around the grouping issue of the xmlsetups
environment and pushes the setting beyond the limit of it.

\startxmlsetups xml:meta
   \aftergrouped{\setupinteraction
     [author={\xmltext{#1}{/author}},
      title={\xmltext{#1}{/title}}]}
\stopxmlsetups

The second solution makes the assignment to the \setupinteraction
command global to ensure they are kept even the environment ends,
int old MkII days ConTeXt provided a \startglobal environment to
do this but now I have rely on the primitives.

\startxmlsetups xml:meta
   \globaldefs\plusone
   \setupinteraction
     [author={\xmltext{#1}{/author}},
      title={\xmltext{#1}{/title}}]
   \globaldefs\zerocount
\stopxmlsetups

Wolfgang
___________________________________________________________________________________
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-03-04  0:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-03 19:02 [NTG-context] " Pablo Rodriguez via ntg-context
2024-03-04  0:18 ` Wolfgang Schuster [this message]
2024-03-04  6:17   ` [NTG-context] " Pablo Rodriguez via ntg-context
2024-03-05 22:14     ` Wolfgang Schuster
2024-03-06 10:18       ` Marco Patzer
2024-03-06 10:32         ` Henning Hraban Ramm
2024-03-06 14:54         ` Hans Hagen
2024-03-06 15:52           ` Pablo Rodriguez via ntg-context
2024-03-06 16:35             ` Wolfgang Schuster
2024-03-06 19:11               ` Pablo Rodriguez via ntg-context
2024-03-06 19:23                 ` Wolfgang Schuster
2024-03-06 19:27                 ` Wolfgang Schuster

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=7daf567a-898c-b69a-48fb-64d5eee8db68@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=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).