[NTG-context] Re: Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-25 Thread Gerion Entrup
I solved it, although it's kinda hacky. I'm pretty sure that publications.citevariants.short is not meant to be called directly. Do you know why `context.getdetail(dataset, tag, "author")` does not work in render_cite? It always returns nil. ``` \setupinteraction[state=start] \s

[NTG-context] Combine lua and btx setup, was: Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-23 Thread Gerion Entrup
Here is a solution for the first part of my question. This is based on https://www.mail-archive.com/ntg-context@ntg.nl/msg101156.html and try and error based on publ-imp-aps.mkvi and publ-imp-apa.mkvi: It display now the citation _and_ numbering labels in the short form: ``` \setupinteraction

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Gerion Entrup
form). It is more less also > > described here [1]. > > - Highlight publications of a certain author with an extra char (e.g. > > '>') > > > > Here is a minimal example (lets assume, every occurrence of Knuth > > should be highlighted): ``` > > \setupintera

[NTG-context] Re: Customize citation format of a bibliography (use the short form as reference format)

2024-04-17 Thread Alan Braslau via ntg-context
year as reference > (this should be exactly the short form). It is more less also > described here [1]. > - Highlight publications of a certain author with an extra char (e.g. > '>') > > Here is a minimal example (lets assume, every occurrence of Knuth > should be highlig

[NTG-context] Customize citation format of a bibliography (use the short form as reference format)

2024-04-15 Thread Gerion Entrup
the short form). It is more less also described here [1]. - Highlight publications of a certain author with an extra char (e.g. '>') Here is a minimal example (lets assume, every occurrence of Knuth should be highlighted): ``` \setupinteraction[state=start] \startbuffer[testdata] @Book{knu

[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
=off] \setupnarrower[left=0.80cm, right=0.80cm] \definehspace[oneem][0.5em] \setupinteraction [state=start, color=blue] \usecolors[svg] \setupinteraction [state=start, contrastcolor=cornflowerblue] \starttext \margintext {1.1.1} {\bf Beispiel 3.2.17 (Vertauschung von All- und

[NTG-context] Re: Log entries about confusing level change

2024-03-08 Thread Hans Hagen
nge at level 3 around 'back1' and they refer to the first chapter of the bodymatter and the first chapter of the backmatter, respectively. The example: \setupinteraction [state=start] \placebookmarks   [chapter] \starttext   \startfrontmatter     \startchapter [

[NTG-context] Log entries about confusing level change

2024-03-07 Thread Rik Kabel
d they refer to the first chapter of the bodymatter and the first chapter of the backmatter, respectively. The example: \setupinteraction [state=start] \placebookmarks   [chapter] \starttext   \startfrontmatter     \startchapter [title=front1]   \samplefil

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Wolfgang Schuster
Pablo Rodriguez via ntg-context schrieb am 06.03.2024 um 20:11: [...] \startxmlsetupsxml:meta %\aftergrouped{\setupinteraction% \setupmetadata [author={\xmlconcat{#1}{/h2[contains(@class,'author')]}{, }}] %} \stopxmlsetups Use \expanded. \startxmlsetups xml:meta

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Wolfgang Schuster
works in your previous example. Many thanks for your reply, Wolfgang. Now I have the minimal sample: [...] \startxmlsetups xml:meta %\aftergrouped{\setupinteraction% \setupmetadata [author={\xmlconcat{#1}{/h2[contains(@class,'author')]}{, }}] %} \stopxmlsetups Use

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Pablo Rodriguez via ntg-context
etups \startxmlsetups xml:meta %\aftergrouped{\setupinteraction% \setupmetadata [author={\xmlconcat{#1}{/h2[contains(@class,'author')]}{, }}] %} \stopxmlsetups \startxmlsetups xml:title:author \xmlflush{#1} \stopxmlsetups \setupinteraction[state=start] \xml

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Hans Hagen
: \setupinteraction [title=FooBar] \setupdocument [metadata:title=FooBar] that just sets defaults for \setupinteraction so that they inherit from document \setupmetadata [title=FooBar] that's for those who go global Are any of those deprecated or the preferred way? I'm starting to get

[NTG-context] How can I do this?

2024-03-06 Thread Ursula Hermann
=13.50cm] \setupinteraction [state=start, color=blue] \reference[Regel:1]{3.1}\par {\bf Aufgabe 3.2.18} Formulieren Sie gemäß der Regel (\goto{3.1}[Regel:1]) äquivalent \startitemize[n,packed,broad] \item \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \implies n > 1},\item \m{\fo

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Henning Hraban Ramm
: \setupinteraction [title=FooBar] \setupdocument [metadata:title=FooBar] \setupmetadata [title=FooBar] Are any of those deprecated or the preferred way? I'm starting to get confused. There’s also \settaggedmetadata; I actually didn’t know \setupmetadata. Both are missing in the wiki yet

[NTG-context] Re: missing metadata in LMTX

2024-03-06 Thread Marco Patzer
On Tue, 5 Mar 2024 23:14:04 +0100 Wolfgang Schuster wrote: > Here is the official solution: > > \startxmlsetups xml:meta >\setupmetadata > [author={\xmltext{#1}{/author}}, > title={\xmltext{#1}{/title}}] > \stopxmlsetups So now we have: \setupintera

[NTG-context] Re: missing metadata in LMTX

2024-03-05 Thread Wolfgang Schuster
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. Many thanks for your reply and your explanation, Wolfgang. I can provide at the moment solutions which ensure the information appear in the PDF but none

[NTG-context] Re: missing metadata in LMTX

2024-03-03 Thread Pablo Rodriguez via ntg-context
hey way > how the values of the \setupinteraction commands are passed to Lua > side of ConTeXt to be written to the PDF file. Many thanks for your reply and your explanation, Wolfgang. > I can provide at the moment solutions which ensure the information > appear in the PDF but none of the is ver

[NTG-context] Re: missing metadata in LMTX

2024-03-03 Thread Wolfgang Schuster
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

[NTG-context] missing metadata in LMTX

2024-03-03 Thread Pablo Rodriguez via ntg-context
{xml:initialize} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:meta \setupinteraction [author={\xmltext{#1}{/author}}, title={\xmltext{#1}{/title}}] \stopxmlsetups \startxmlsetups xml:text \xmlflush{#1} \stopxmlsetups \setupinteraction

[NTG-context] Re: \in, \at, and labletext

2024-02-29 Thread Ursula Hermann
Dear List, So I changed my sentence a little bit, now it works perfect, as I wanted it. \setupinteraction[state=start] \starttext \reference[Rule:1]{Rule (3.1)} Formulate equivalents according to rule (\goto {3.1} [Rule:1]). \stoptext Uschi Von: Ursula

[NTG-context] Re: \in, \at, and labletext

2024-02-28 Thread Pablo Rodriguez via ntg-context
rst document with a theorem]). Other than that, I must confess I cannot imagine what is the issue you might be facing. But don’t hesitate to ask with a more verbose description. > Sorry, I have no example. Here you have one: \setupinteraction[state=start, focus=standard] \defineenumeration[theo

[NTG-context] Hyperlinks cease working after page selection

2024-02-26 Thread Michael Guravage
be greatly appreciated. \setupinteraction[state=start, color=darkblue] \setupwhitespace [big] \starttext Consult the \goto{\ConTeXt\ wiki}[url(https://wiki.contextgarden.net/)] .\par \dorecurse{5}{\samplefile{lorem}\par} \stoptext Processed as follows: context mwe.tex context --extra=select

[NTG-context] XML processing, unwanted indentation/alignment

2024-02-15 Thread Michael Guravage
dth, align={flushleft,broad,nothyphenated}] \setupinteraction[state=start, color=darkblue] \starttext \xmlprocessfile{list}{mwe.xml}{} \stoptext % finis mwe.pdf Description: Adobe PD

[NTG-context] /AFRelationship for attachments

2024-02-15 Thread Pablo Rodriguez via ntg-context
Dear list, the new lpdf-wid.lmt contains in lines 302 and 377: local relation = specification.relation or "Unspecified" AFRelationship = pdfconstant(relation), The following sample compiled with current latest: \setupinteraction[state=start] \starttext attachment\attachm

[NTG-context] Re: removing whitespace

2024-02-13 Thread Wolfgang Schuster
Michael Guravage schrieb am 13.02.2024 um 14:01: While reading the documentation I spotted something similar from which I derived this solution: \setupinteraction[state=start] \def\squeeze#1%   {     \goto{#1} [url(tel:\ctxlua{context(string.gsub("#1", " ", "")

[NTG-context] Re: removing whitespace

2024-02-13 Thread Michael Guravage
While reading the documentation I spotted something similar from which I derived this solution: \setupinteraction[state=start] \def\squeeze#1% { \goto{#1} [url(tel:\ctxlua{context(string.gsub("#1", " ", ""))})] } \starttext Call \squeeze{01234 56789

[NTG-context] removing whitespace

2024-02-12 Thread Michael Guravage
In the example below I pass the macro a string with a space, but the space should not appear in the url. I've tried using \ctxlua to invoke string substitution, but without success. What is the proper way to remove this space, and to perform string manipulation more generally? \setupinteraction

[NTG-context] BUG: colour spilling in btxrendering

2024-02-01 Thread Alexandre Christe
Dear list, It seems with one of the latest lmtx this old reported issue (https://www.mail-archive.com/ntg-context@ntg.nl/msg84988.html) is back. MWE: \setupinteraction[state=start,color=red,style=] \setupbtx[aps:cite][alternative=entry] \usebtxdefinitions[aps] \startbuffer [bib] @ARTICLE

[NTG-context] Re: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-29 Thread Wolfgang Schuster
context(text) end end \stopluacode % without that line there is no problem \setupinteraction[state=start] \defineenumeration[enu][text=Enu] \defineenumeration[enu][text=Enu,title=yes] \unprotect \def\mc{\dosingleempty\do_my_command} \def\do_my_command[#1]#2{% \iffirstargumen

[NTG-context] Re: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-29 Thread Taco Hoekwater
to_hash(keywords) > > if cfg['emph'] ~= nil then > context("\\emph{" .. text .. "}") > elseif cfg['bold'] ~= nil then > context("\\bold{" .. text .. "}") > else > context(text) > end > end > \stopluacode > > % without tha

[NTG-context] Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-25 Thread Gerion Entrup
nd end \stopluacode % without that line there is no problem \setupinteraction[state=start] \defineenumeration[enu][text=Enu] \unprotect \def\mc{\dosingleempty\do_my_command} \def\do_my_command[#1]#2{% \iffirstargument{% \ctxlua{userdata.my_command('#1', [==[#2]==])}% }\el

[NTG-context] Re: Links

2024-01-09 Thread Ursula Hermann
t; > I want to use linked bibliography numbers, linked Chapter, section > subsection, linked margin numbers, in the text. > > \setupinteraction[state=start] This is essential. > > \starttext > > Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von > \m{x\dou

[NTG-context] Re: Links

2024-01-08 Thread Henning Hraban Ramm
Am 08.01.24 um 14:10 schrieb Ursula Hermann: Dear List, Is this the right way? I want to use linked bibliography numbers, linked Chapter, section subsection, linked margin numbers, in the text. \setupinteraction[state=start] This is essential. \starttext Der Wert von \m{y = f(x)} ist

[NTG-context] Links

2024-01-08 Thread Ursula Hermann
Dear List, Is this the right way? I want to use linked bibliography numbers, linked Chapter, section subsection, linked margin numbers, in the text. \setupinteraction[state=start] \starttext Der Wert von \m{y = f(x)} ist unabhängig von der Wahl\par von \m{x\doubleprime} ist gleichbedeutend mit

[NTG-context] Re: (again) wrong destination types?

2023-12-06 Thread Pablo Rodriguez via ntg-context
. > > What are you using for links to external documents? If just a single > command such as \goto then you might be able to get away with defining a > wrapper (e.g. \myGoto) that does > \setupinteraction[state=start,page=name,focus=standard] then the \goto > command then \

[NTG-context] Re: (again) wrong destination types?

2023-12-04 Thread Bruce Horrocks
> On 3 Dec 2023, at 15:26, Pablo Rodriguez via ntg-context > wrote: > > On 11/22/23 00:06, Bruce Horrocks wrote: >> [...] >> I changed your example to the following: >> \setupinteraction[state=start, page=name, focus=standard] >> \starttext >&g

[NTG-context] Re: externalfigure crashed

2023-12-04 Thread Hans Hagen via ntg-context
themselves. Basically one can sign (with some certificate) and then validate. % sign-001.tex \setupinteraction[state=start] \definefield[signature][signed] \defineoverlay[signature][my signature] \starttext \startTEXpage[offset=1ts,frame=on,framecolor=darkblue] sign: \inframed

[NTG-context] Re: (again) wrong destination types?

2023-12-03 Thread Pablo Rodriguez via ntg-context
On 11/22/23 00:06, Bruce Horrocks wrote: > [...] > I changed your example to the following: > \setupinteraction[state=start, page=name, focus=standard] > \starttext > \input knuth \par > a\footnote{b} \par > \dorecurse{7}{\input knuth \par} > \stoptext Many thanks for yo

[NTG-context] Re: (again) wrong destination types?

2023-11-21 Thread Bruce Horrocks
> On 20 Nov 2023, at 18:01, Pablo Rodriguez via ntg-context > wrote: > > Dear list, > > sorry for insisting, but this is important for my documents. > > I have the following sample: > > \setupinteraction[state=start, page=name, focus=standard] > \startt

[NTG-context] (again) wrong destination types?

2023-11-20 Thread Pablo Rodriguez via ntg-context
Dear list, sorry for insisting, but this is important for my documents. I have the following sample: \setupinteraction[state=start, page=name, focus=standard] \starttext a\footnote{b} \stoptext If page is set to anything different than no in \setupinteractionscreen, focus=standard

[NTG-context] wrong destination types?

2023-11-17 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupinteraction[state=start, page=name, focus=standard] \starttext a\footnote{b} \stoptext In \setupinteraction, "focus=standard" is ignored when I use "page=name". I mean, link destinations are to the full page and they

[NTG-context] Re: named destinations in /GoToR

2023-11-14 Thread Pablo Rodriguez via ntg-context
> > It seems that the default mode for outer (external file) references is > the "auto" mode. This one seems to load the whatever.pdf file, check the > named destinations and decide based on that. Many thanks for your explanation, Michal. I was totally ignorant of the page k

[NTG-context] Re: named destinations in /GoToR

2023-11-13 Thread Michal Vlasák
Hello Pablo, On Mon Nov 13, 2023 at 5:25 PM CET, Pablo Rodriguez via ntg-context wrote: > Dear list, > > imagine I have a PDF document (named "whatever.pdf") such as the one > generated from this source: > > \setupinteraction[state=start, > focus=standard]

[NTG-context] named destinations in /GoToR

2023-11-13 Thread Pablo Rodriguez via ntg-context
Dear list, imagine I have a PDF document (named "whatever.pdf") such as the one generated from this source: \setupinteraction[state=start, focus=standard] \starttext \dorecurse{5} {\chapter[\recurselevel]{Chapter} \section[sec-\recurselevel]{Section}} \stoptext T

[NTG-context] Re: command to process CSV file (database module)

2023-11-05 Thread Pablo Rodriguez via ntg-context
iki (https://wiki.contextgarden.net/Commands_with_optional_arguments). It seems that the command has to be defined as unexpanded, such as in: \setupinteraction[state=start] \setupattachments[method=hidden] \usemodule[database] \starttext \unexpanded\def\ItemContents#1#2#3{\doiftext{#2}

[NTG-context] Re: Color option in \setupinteraction doesn't work sometimes

2023-10-28 Thread redspacecube
Thank You, It works great. ___ 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 :

[NTG-context] Re: Color option in \setupinteraction doesn't work sometimes

2023-10-28 Thread Mikael Sundqvist
Hi, you can try contrastcolor: \setupinteraction[state=start,color=,contrastcolor=] /Mikael On Sat, Oct 28, 2023 at 1:54 PM Mia Bikey wrote: > > Ah, wrong attachment. > Here is the correct one. > > On Sat, Oct 28, 2023 at 5:18 PM Mia Bikey wrote: >> >> Hi, &g

[NTG-context] Re: Color option in \setupinteraction doesn't work sometimes

2023-10-28 Thread Mia Bikey
software issue but it is > still the same. > > Here is a minimal working example: > > ConTeXt ver: 2023.09.26 18:19 LMTX > > \setupinteraction[state=start, color=black] > > \starttext > > \placeformula[eq:equation1] > \startformula > x > \stopformula

[NTG-context] Color option in \setupinteraction doesn't work sometimes

2023-10-28 Thread Mia Bikey
\setupinteraction[state=start, color=black] \starttext \placeformula[eq:equation1] \startformula x \stopformula References are red on the first page \in[eq:equation1] \at{page}[eq:equation1] \input tufte \input tufte \input tufte \input tufte \input tufte Now they become black \in[eq:equation1] \at{page

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
poor explanation of the issue. Wanting to give a minimal sample, I didn’t add my full interaction setup: \setupinteraction [state=start, style=, color=, contrastcolor=, display=new, focus=standard] \enabledirectives [references.border=darkgreen] I

[NTG-context] Re: colors for links

2023-10-14 Thread Pablo Rodriguez
f the issue. Wanting to give a minimal sample, I didn’t add my full interaction setup: \setupinteraction [state=start, style=, color=, contrastcolor=, display=new, focus=standard] \enabledirectives [references.border=darkgreen] I wanted to be able to setup the i

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
On 10/12/2023 3:14 PM, Pablo Rodriguez wrote: Hi Hans, I have the following source, which tries to resemble three kinds of links: \setupinteraction[state=start, style=, focus=standard] \def\inone#1{% \start\setupinteraction[color=darkgreen]% \enabledirectives

[NTG-context] colors for links

2023-10-12 Thread Pablo Rodriguez
Hi Hans, I have the following source, which tries to resemble three kinds of links: \setupinteraction[state=start, style=, focus=standard] \def\inone#1{% \start\setupinteraction[color=darkgreen]% \enabledirectives[references.border=darkgreen]% \goto{#1}[url(#1)]\stop

[NTG-context] Re: Attempting to Generate PDF/A in LMTX

2023-10-04 Thread Henning Hraban Ramm
ion 'ISO coated v2 300% (ECI)' loaded from '/Users/jinho/context-osx-arm64/tex/texmf-context/colors/icc/context/colorprofiles.xml' backend > profiles > error, couldn't locate profile 'ISOcoated_v2_300_eci.icc' backend > profiles > invalid output intent 'ISO Coated

[NTG-context] Attempting to Generate PDF/A in LMTX

2023-10-03 Thread Jin-Ho King
/texmf-context/colors/icc/context/colorprofiles.xml' backend > profiles > error, couldn't locate profile 'ISOcoated_v2_300_eci.icc' backend > profiles > invalid output intent 'ISO Coated v2 300% (ECI)' Here is a MWE that generates these errors: setupinteraction [title=TITLE,

[NTG-context] problems with comments

2023-09-21 Thread Henning Hraban Ramm
hat doesn’t matter. "location=inmargin": the symbol is at the edge of the text, but not in the margin. Hraban \setupinteraction[ state=start, ] \setupcomment[ author=Don, location=inmargin, ] \starttext \samplefile{knuth} \comment[author=Me

[NTG-context] XML, multiple spaces encoded as %20 get merged into one space

2023-09-06 Thread denis.maier
image () gets included even though the actual file name does not contain two spaces (but @xlink:href does). Any ideas what is going on here? Then, in the case of the link, the two %20 end up as a single %20. Best, Denis \setupinteraction[state=start] \startxmlsetups xml:test

[NTG-context] Fwd: escaping \ in Lua

2023-09-05 Thread Hans Hagen via ntg-context
Forwarded Message Subject: Re: [NTG-context] escaping \ in Lua Date: Tue, 5 Sep 2023 21:00:21 +0200 From: Hans Hagen To: Pablo Rodriguez On 9/5/2023 6:43 PM, Pablo Rodriguez wrote: Dear list, I have the following source: \setupinteraction[state=start, display=new

[NTG-context] escaping \ in Lua

2023-09-05 Thread Pablo Rodriguez
Dear list, I have the following source: \setupinteraction[state=start, display=new] \enabledirectives[references.border=darkgreen] \starttext \startTEXpage[offset=1dk] \attachment[method=hidden, file=a(b).pdf] \stopTEXpage \stoptext The name in EmbeddedFiles is "a\(b\

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
I’m afraid that \in{attachment}[foobar] doesn‘t generate a link in your sample. Or do you get a link border from the following source? \setupinteraction[state=start] \enabledirectives[references.border=green] \starttext \startTEXpage[offset=1em] \attachment[ file={hacker.jpg}, m

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Henning Hraban Ramm
the hood, I think there’s just a “reference” key missing in \attachment or \setupattachment: \setupinteraction[state=start] \starttext \samplefile{lorem} \attachment[ file={hacker.jpg}, title={Hacker}, symbol=Paperclip, author=Hans, location=inmargin, reference=foobar, ] As you can see

[NTG-context] XML: Correct usage of hash symbol in url

2023-08-25 Thread denis.maier
, as a special character seems to cause an error. Adding a double hash seems to work, but those ## will end up in the link URL. How can I properly escape a single #? I've already tried using \Ux{23}, but that won't work either. Best, Denis \setupinteraction[state=start] \startxmlsetups xml:test

[NTG-context] Enable interaction on custom apa cite variant

2023-08-19 Thread Jethro Djan
] @book{burago2022course, title={A course in metric geometry}, author={Burago, Dmitri and Burago, Yuri and Ivanov, Sergei}, volume={33}, year={2022}, publisher={American Mathematical Society} } \stopbuffer \setupinteraction[state=start, color=blue] \setupcolors[state=start] \usebtxdataset

[NTG-context] Experiments with \doloopoverlist

2023-08-16 Thread Andres Conrado Montoya
inlineuserdata? %% MWE: \setupinteraction[state=start] \define[2]\imghref{\bgroup\goto{#1}[url(#2)]\egroup} \defineexternalfigure[logo][height=1em] \definedataset[autores] \setdataset[autores][ nombre={Angie Natalia Farfán Acevedo}, cvlac={ https://scienti.minciencias.gov.co/cvlac/visualizador

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-27 Thread Pablo Rodriguez
ng, since I forgot enabling interaction in the main PDF document to generate the targets (or named destinations). \setupinteraction[state=start, focus=standard] \starttext \dorecurse{15} {\chapter[chap\recurselevel]{Chapter}} \stoptext The first line was missing yesterday. After that (

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-26 Thread Pablo Rodriguez
reference (save it as main.tex): \starttext \dorecurse{15} {\chapter[chap\recurselevel]{Chapter}} \stoptext You have the file that reads the references from main.tuc and generates the inter-document links: \setupinteraction[state=start] \starttext Links to each chapter using

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-22 Thread Pablo Rodriguez
If that could be what you might need, here is a sample. First you have the destination file: \setupinteraction[state=start, focus=standard, prefix=n_,] \starttext \dorecurse{50} {a\footnote{b} } \startluacode luatex.wrapup( function() os.rename(tex.jobname ..

[NTG-context] Re: Ukrainian hyphenation?

2023-07-19 Thread Hans Hagen
On 7/19/2023 12:36 AM, Gerben Wierda wrote: This file: \setupinteraction [state=start, color=blue, style=bold] \definefallbackfamily [archimate] [ss] [Helvetica] [preset=range:cyrillic, tf=style:light, it=style:lightoblique, bf=style:regular, bi

[NTG-context] Ukrainian hyphenation?

2023-07-18 Thread Gerben Wierda
This file: \setupinteraction [state=start, color=blue, style=bold] \definefallbackfamily [archimate] [ss] [Helvetica] [preset=range:cyrillic, tf=style:light, it=style:lightoblique, bf=style:regular, bi=style:oblique, force=yes, rscale=1.0] \definefontfamily

[NTG-context] digitally sign fields with MuPDF-GL

2023-07-13 Thread Pablo Rodriguez
Dear list, having the following sample code: \setuppapersize[A4, landscape] \setuplayout[page] \setupinteraction[state=start] \starttext \setupfield[sl][horizontal] [frame=off, width=\textwidth, height=\textheight] \definefield[x][signature][sl] \field[x] I also attach

[NTG-context] viewer layers (optional content groups, OCG)

2023-06-19 Thread Henning Hraban Ramm via ntg-context
upports JS to control OCGs (\overlayrollbutton in the MWE) Hraban \setupinteraction[state=start]% needed for JS \defineviewerlayer[Gebuesch][ state=stop, ] \defineviewerlayer[Versteck] \setupviewerlayer[Versteck][ % doesn’t work state=stop, ] \starttext Hier fängt der Wald an. \startviewerlaye

Re: [NTG-context] hyperlinks not working with current latest

2023-05-29 Thread Hans Hagen via ntg-context
On 5/28/2023 8:57 PM, Pablo Rodriguez via ntg-context wrote: Dear list, in the following sample, hyperlinks for footnotest don’t work with current latest (2023.05.28 18:57) with current LMTX (20230528): \setupinteraction [state=start, focus=standard] \starttext

Re: [NTG-context] hyperlinks not working with current latest

2023-05-28 Thread Hans Hagen via ntg-context
On 5/28/2023 8:57 PM, Pablo Rodriguez via ntg-context wrote: Dear list, in the following sample, hyperlinks for footnotest don’t work with current latest (2023.05.28 18:57) with current LMTX (20230528): \setupinteraction [state=start, focus=standard] \starttext

[NTG-context] hyperlinks not working with current latest

2023-05-28 Thread Pablo Rodriguez via ntg-context
Dear list, in the following sample, hyperlinks for footnotest don’t work with current latest (2023.05.28 18:57) with current LMTX (20230528): \setupinteraction [state=start, focus=standard] \starttext \completecontent \dorecurse{5} {a\footnote{}} \stoptext LuaTeX

Re: [NTG-context] extra lines in PDF annotations

2023-03-14 Thread Pablo Rodriguez via ntg-context
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] \stopbuffer \savebuffer[text][sample-text.xml, prefix=no] \setupinteract

[NTG-context] extra lines in PDF annotations

2023-03-13 Thread Pablo Rodriguez via ntg-context
Dear list, using current latest from 2023.03.10 12:18, I have this XML sample: And the following environment: \setupinteraction[state=start] \startxmlsetups xml:text \xmlsetsetup{\xmldocument} {pre} {xml:copy:html} \stopxmlsetups \xmlregistersetup{xml:text

Re: [NTG-context] How to add data from another PDF in index?

2023-02-26 Thread Joel via ntg-context
iles (MWEs): % index-1.tex \setupinteraction[state=start] \starttext     test \index{entry    WB.1} \page empty \page     test \index{another  WB.1} \page empty \page     test \index{onemore  WB.1} \page empty \page     test \index{whatever WB.1} \page empty \page     test \index{common}        \page e

Re: [NTG-context] How to add data from another PDF in index?

2023-02-26 Thread Alan Braslau via ntg-context
Hans needs to confirm, "In the next update..." Test files (MWEs): % index-1.tex \setupinteraction[state=start] \starttext test \index{entryWB.1} \page empty \page test \index{another WB.1} \page empty \page test \index{onemore WB.1} \page empty \page test \inde

Re: [NTG-context] including documents with mediaclips in other documents

2023-02-14 Thread Hans Hagen via ntg-context
On 2/14/2023 7:41 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \setupinteraction[state=start] \starttext \null\page \definerenderingwindow[myrenderingwindow] [width=\textwidth, height=\textwidth] \userendering[key-name][audio/mp3

[NTG-context] including documents with mediaclips in other documents

2023-02-14 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupinteraction[state=start] \starttext \null\page \definerenderingwindow[myrenderingwindow] [width=\textwidth, height=\textwidth] \userendering[key-name][audio/mp3][audio.mp3] [embed=yes, auto] \placerenderingwindow[myrenderingwindow

[NTG-context] list not following "focus=standard"?

2023-01-30 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupinteraction[state=start, focus=standard] \starttext \completecontent \dorecurse{25} {\section{Section} a\footnote{b}} \stoptext Using current latest (from 2023.01.26 18:34), destinations for TOC are pages (/D [ 7 0 R /Fit

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Kalouguine Andre via ntg-context
Hi Pablo, > \showframe > \setupinteraction[state=start] > \starttext > \startbuffer[abc] > def foo(x): > if x == 0: > bar() > else: > baz(x) > foo(x - 1) > \stopbuffer > \comment[location=leftmargin, > space=yes, > buffer=abc, > title={P

Re: [NTG-context] Subject: Leading spaces verbatim

2023-01-28 Thread Pablo Rodriguez via ntg-context
g your point with the following sample: \showframe \setupinteraction[state=start] \starttext \startbuffer[abc] def foo(x): if x == 0: bar() else: baz(x) foo(x - 1) \stopbuffer \comment[location=leftmargin, space=yes, buffer=abc, title={Python code}] {}\ty

Re: [NTG-context] question about multimedia renderings

2023-01-16 Thread Pablo Rodriguez via ntg-context
t/StopRendering actions with the correct label. Hi Michal, many thanks for your reply. Your code fixes the "auto" option. At least with the following sample: \setupinteraction[state=start] \unexpanded\def\IncludeVideo[#1] {\definerenderingwindow[#1] [width=\tex

Re: [NTG-context] question about multimedia renderings

2023-01-15 Thread Michal Vlasák via ntg-context
from scrn-wid.mklx): > > \setupinteraction[state=start] > \starttext > \null\page > \definerenderingwindow[myrenderingwindow] > [width=\textwidth, height=\textwidth, > %openpageaction=StartCurrentRendering, > %closepageaction=StopCurrentRendering, > op

[NTG-context] question about multimedia renderings

2023-01-15 Thread Pablo Rodriguez via ntg-context
Dear list, I’m planning to add an explanation about multimedia inclusion to the wiki, but first I wanted to discuss an issue I have found. I have the following sample (adapted from scrn-wid.mklx): \setupinteraction[state=start] \starttext \null\page \definerenderingwindow

Re: [NTG-context] Is the Society of Biblical Literature (SBL) style files for ConTeXt incompatible with \setupinteraction[state=start]?

2023-01-15 Thread Pablo Rodriguez via ntg-context
On 1/15/23 17:57, Joel via ntg-context wrote: > When I am using the SBL ConTeXt files for citations, if I add a line > `\setupinteraction[state=start` my code starts complaining: > [...] > Is this package incompatible with interaction? Hi Joel, unless I’m missing your point, https:

[NTG-context] Is the Society of Biblical Literature (SBL) style files for ConTeXt incompatible with \setupinteraction[state=start]?

2023-01-15 Thread Joel via ntg-context
When I am using the SBL ConTeXt files for citations, if I add a line `\setupinteraction[state=start` my code starts complaining: Undefined control sequence \currentbtxloctext \16>:btx:sbl:cite:inline     #1->\fastsetup {\s!btx :\s!cite :concat}\fastsetup {btx:sbl:cite:lefttext}\begi

Re: [NTG-context] never add a hyphen to break a URL

2022-10-25 Thread Steffen Wolfrum via ntg-context
t; <http://litteraturbanken.se/>». >> (And it looks as the link was cropped, only reads the first line?) > > \setupinteraction[state=start] > > \useurl > [litteraturbanken] > [https://litteraturbanken.se] > [författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimi

Re: [NTG-context] never add a hyphen to break a URL

2022-10-25 Thread Hans Hagen via ntg-context
t line?) \setupinteraction[state=start] \useurl [litteraturbanken] [https://litteraturbanken.se] [författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?show_search_work_query=retractata_lbworkid=lb487378_mediatype=faksimil_word_form_only] [https://litteraturbanken.se] \starttext before \got

Re: [NTG-context] never add a hyphen to break a URL

2022-10-25 Thread Steffen Wolfrum via ntg-context
g-context > mailto:ntg-context@ntg.nl>>: > > A simpler approach would read (there is a single url, instead of two > [less typos in the end]): > > \setupinteraction[state=start] > > \starttext > > \def\MyURL[#1]{\goto{\tt\hyphenatedurl{#1}}[url(#1)]} > > \My

Re: [NTG-context] never add a hyphen to break a URL

2022-10-24 Thread Pablo Rodriguez via ntg-context
nclose the url inside \startasciimode...\stopasciimode to avoid escaping the percent sign. The percent sign has to be escaped as \letterpercent (otherwise, you get \%) in text. A simpler approach would read (there is a single url, instead of two [less typos in the end]): \setupinteraction[state=start] \sta

Re: [NTG-context] list not following "focus=standard"

2022-10-16 Thread Pablo Rodriguez via ntg-context
On 10/16/22 13:28, Pablo Rodriguez via ntg-context wrote: > [...] > So, line 40 of that file ("local cheat = true") needs a conditional that > I’m not able to provide (I have no idea how it would read). > > Basically, if \setupinteraction[focus=standard], please don

Re: [NTG-context] list not following "focus=standard"

2022-10-16 Thread Pablo Rodriguez via ntg-context
On 10/14/22 23:24, Pablo Rodriguez via ntg-context wrote: > Hi Hans, > > I have the following sample: > > \setupinteraction[state=start, > focus=standard] > \starttext > \completecontent > \section{section} > a\footnote{\contextversion} > \stopte

[NTG-context] list not following "focus=standard"

2022-10-14 Thread Pablo Rodriguez via ntg-context
Hi Hans, I have the following sample: \setupinteraction[state=start, focus=standard] \starttext \completecontent \section{section} a\footnote{\contextversion} \stoptext With version from 2022.09.11 20:44, the link from the TOC reads in the PDF file: 4 0 obj << /D [

Re: [NTG-context] issues with current latest

2022-10-14 Thread Alain Delmotte via ntg-context
Hi! Le 14/10/2022 à 16:24, Pablo Rodriguez via ntg-context a écrit : Dear list, I have the following sample: \setuppapersize[A7] \setupinteraction[state=start, color=darkred, contrastcolor=darkred, focus=standard] \starttext \completecontent \startsection[title

[NTG-context] issues with current latest

2022-10-14 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setuppapersize[A7] \setupinteraction[state=start, color=darkred, contrastcolor=darkred, focus=standard] \starttext \completecontent \startsection[title={sec}, list=(before \&\ now), reference=a] \page \in[a] (after 2022.10.1

Re: [NTG-context] TOC colors and in-page anchors

2022-10-11 Thread Sylvain Hubert via ntg-context
ext wrote: > > Thanks for the pointers, but unfortunately I cannot reproduce the second > > fix with either the system pdf viewer or the browser one. > > Hi Sylvain, > > it seems that ConTeXt is basically ignoring "focus=standard" in lists. > > Compare bot

Re: [NTG-context] TOC colors and in-page anchors

2022-09-28 Thread Pablo Rodriguez via ntg-context
mpare both links here: \setupinteraction[state=start, color=darkred, contrastcolor=darkred, focus=standard] \starttext \completecontent \section[a]{b} \about[a] \stoptext And this is a regression. I think it was introduced in latest from 2022.07.06 21:42, since latest from

Re: [NTG-context] TOC colors and in-page anchors

2022-09-28 Thread Sylvain Hubert via ntg-context
Thanks for the pointers, but unfortunately I cannot reproduce the second fix with either the system pdf viewer or the browser one. \usemodule[ipsum] \setupinteraction[state=start,focus=standard] \starttext \completecontent \section{s1}\ipsum \section{s2}\ipsum

  1   2   3   4   5   6   7   8   9   10   >