From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: Hans Hagen via ntg-context <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: Re: extra lines in PDF annotations
Date: Tue, 14 Mar 2023 16:27:50 +0100 [thread overview]
Message-ID: <e78386fd-6d35-c4dd-5f78-125fcb89bf5e@gmx.es> (raw)
In-Reply-To: <ebafc4d7-3db4-58e7-50e6-f82ab550ef58@freedom.nl>
On 3/13/23 22:32, Hans Hagen via ntg-context wrote:
>> [...]
>> I hope EOLs are fine now.
> dunno ... no full example so ...
Sorry, Hans, the full example reads:
\startbuffer[text]
<pre>
<element/>
</pre>
\stopbuffer
\savebuffer[text][sample-text.xml, prefix=no]
\setupinteraction[state=start]
\startxmlsetups xml:text
\xmlsetsetup{\xmldocument}
{pre}
{xml:copy:html}
\stopxmlsetups
\xmlregistersetup{xml:text}
\startxmlsetups xml:copy:html
\xmltobuffer{#1}{.}{text}
\comment[location=inmargin,buffer=text]{}
\stopxmlsetups
\setuppapersize[A9]
\starttext
\section{one\xmlprocessbuffer{main}{text}{}}
\section{two\xmlprocessfile{main}{sample-text.xml}{}}
\stoptext
It requires that the source is saved with CRLF line endings (so that
\savebuffer will save that way too), otherwise both \comment will be
exactly the same.
I hope it is clearer now.
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://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2023-03-14 15:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-13 15:06 Pablo Rodriguez via ntg-context
2023-03-13 15:22 ` Pablo Rodriguez via ntg-context
2023-03-13 21:32 ` Hans Hagen via ntg-context
2023-03-14 15:27 ` Pablo Rodriguez via ntg-context [this message]
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=e78386fd-6d35-c4dd-5f78-125fcb89bf5e@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).