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

2024-03-08 Thread Otared Kavian
[color=black, height=0.10ex, width=13.50cm] \reference[Regel:1]{3.1} {\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{\forall n \in \naturalnumbe

[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: \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] 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] Re: XML processing, unwanted indentation/alignment

2024-02-16 Thread Taco Hoekwater
pty{#1}{maiden_name} {} \else { >> \tfxx(\xmlatt{#1}{maiden_name})} \fi} I am fairly certain the “ {} “ before the \else introduces spaces. >> >> % Create a mailto:link that associates a individual's name with their email >> address. >> \def\nameemaillink#1

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

2024-02-15 Thread Bruce Horrocks
\xmlatt{#1}{initials}, \xmlatt{#1}{first_name}} \fi Remove the space after {first_name} here >\ifxmlattempty{#1}{maiden_name} {} \else { > \tfxx(\xmlatt{#1}{maiden_name})} \fi} > > % Create a mailto:link that associates a individual's name with their email > address. > \def\n

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

2024-02-15 Thread Michael Guravage
}{first_name}} \fi \ifxmlattempty{#1}{maiden_name} {} \else { \tfxx(\xmlatt{#1}{maiden_name})} \fi} % Create a mailto:link that associates a individual's name with their email address. \def\nameemaillink#1% {\ifxmlattempty{#1}{email} {\name{#1}} \else {\goto{\name{#1}} [url(mailto:\xmlatt{#1}{email

[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
[state=start] \def\squeeze#1% {\goto{#1}[url(tel:#1)]} \starttext Call \squeeze{01234 56789} \stoptext -- With kind regards, Michael ___ If your question is of interest to others as well, please add an entry

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Henri Menke via ntg-context
On Fri, 2024-01-19 at 13:56 +0530, Shiv Shankar Dayal wrote: > Dear Hans, > > I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not > good > coding practice. These potions of code which have goto should be > refactored. https://xkcd.com/292/ > I am a C progra

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Hans Hagen
On 1/19/2024 9:26 AM, Shiv Shankar Dayal wrote: Dear Hans, I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not good coding practice. These potions of code which have goto should be refactored. I am a C programmer, but I know very little of TeX. If you can point me towards

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Shiv Shankar Dayal
uot;; > > > > These ensure type-safety in the code and are good coding practice. > > > > On Fri, Jan 19, 2024 at 1:56 PM Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > > Dear Hans, > > > > I saw the C code of LuaMetaTeX and I saw a lot of

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Taco Hoekwater
rsion_string="2.10.10"; > > These ensure type-safety in the code and are good coding practice. > > On Fri, Jan 19, 2024 at 1:56 PM Shiv Shankar Dayal > wrote: > Dear Hans, > > I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not good > coding

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Shiv Shankar Dayal
of gotos which is not good > coding practice. These potions of code which have goto should be refactored. > > I am a C programmer, but I know very little of TeX. If you can point me > towards where should I start for TeX(perhaps TeX Book or TeX for the > Impatient), I can help wi

[NTG-context] LuaMetaTeX code

2024-01-19 Thread Shiv Shankar Dayal
Dear Hans, I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not good coding practice. These potions of code which have goto should be refactored. I am a C programmer, but I know very little of TeX. If you can point me towards where should I start for TeX(perhaps TeX Book or TeX

[NTG-context] too large dimension in current latest

2024-01-15 Thread Pablo Rodriguez via ntg-context
attribute \dostarttagged \t!link \empty #1\dostoptagged }{#1} \else #1\fi \ ... \mypersonalurl #1#2->\bgroup \goto {\urlstyle {\hyphenatedurl {#2}}}[url(#1)] \egroup {} ... I can't work with sizes bigger than about 19 feet (45 Theodores as of 2023), 575 centimeters, 2300 Toves, 230 Edi

[NTG-context] Re: [ flowing figures ]

2024-01-11 Thread Henning Hraban Ramm
that there is a hyperlink, but will not even open the pdf. Let alone jumping to the intended page. mupdf does not respond to the link either Is this even possible? \goto{\externalfigure[thumb/20210213_142125-skel.png][width=30mm]}[url(__index.pdf#page=1)] To open an external file, you need

[NTG-context] Re: [ flowing figures ]

2024-01-11 Thread Floris van Manen via ntg-context
alone jumping to the intended page. mupdf does not respond to the link either Is this even possible? \goto{\externalfigure[thumb/20210213_142125-skel.png][width=30mm]}[url(__index.pdf#page=1)] .Floris ___ If your

[NTG-context] Re: Links

2024-01-09 Thread Ursula Hermann
\pagereference. Then you can use \in[chap:first], \about[chap:first] or \at[chap:first]. For external links, you use \goto (it’s a bit extensive). Please look up the syntax reference in the wiki. Hraban ___ If your q

[NTG-context] Re: Links

2024-01-08 Thread Henning Hraban Ramm
manually using \textreference and \pagereference. Then you can use \in[chap:first], \about[chap:first] or \at[chap:first]. For external links, you use \goto (it’s a bit extensive). Please look up the syntax reference in the wiki. Hraban

[NTG-context] Re: QR Code

2023-12-18 Thread Michal Vlasák
of using the zint _library_. I published compiled versions of zint and couple of other libraries to the optional libraries repository: https://github.com/contextgarden/luametatex-optional-libraries https://github.com/contextgarden/luametatex-optional-libraries/releases/tag/v20230902 I test

[NTG-context] Re: mtx-synctex.lua question

2023-12-08 Thread Jim
On Fri, Dec 8, 2023 at 21:18 (+0100), Hans Hagen wrote: > On 12/8/2023 7:51 PM, Jim wrote: >> Hi Hans (and anyone else interested in synctex), >> 282a284,285 >>> locate( 0, s) if fi ~= 0 then tl = s ; goto done end >>> locate( 0,-s) if fi ~= 0 then tl = s ;

[NTG-context] Re: mtx-synctex.lua question

2023-12-08 Thread Hans Hagen
On 12/8/2023 7:51 PM, Jim wrote: Hi Hans (and anyone else interested in synctex), 282a284,285 locate( 0, s) if fi ~= 0 then tl = s ; goto done end locate( 0,-s) if fi ~= 0 then tl = s ; goto done end and then wrote the following quick and dirty shell

[NTG-context] Re: mtx-synctex.lua question

2023-12-08 Thread Jim
cal function findlocation(filename,page,xpos,ypos,tolerance) >>> there is the following code: >>> for s=1,tolerance,max(tolerance//10,1) do >>> locate( s, 0) if fi ~= 0 then tl = s ; goto done end >>> locate(-s, 0) if fi ~= 0 then tl = s ; goto done end >>&g

[NTG-context] Re: mtx-synctex.lua question

2023-12-08 Thread Jim
(tolerance//10,1) do >> locate( s, 0) if fi ~= 0 then tl = s ; goto done end >> locate(-s, 0) if fi ~= 0 then tl = s ; goto done end >> locate( s, s) if fi ~= 0 then tl = s ; goto done end >> locate( s,-s) if fi ~= 0 then tl = s ; goto done end >> locate(-s, s) if

[NTG-context] Re: mtx-synctex.lua question

2023-12-08 Thread Hans Hagen via ntg-context
On 12/7/2023 7:23 PM, Jim wrote: Hi, In mtx-synctex.lua, inside local function findlocation(filename,page,xpos,ypos,tolerance) there is the following code: for s=1,tolerance,max(tolerance//10,1) do locate( s, 0) if fi ~= 0 then tl = s ; goto done

[NTG-context] mtx-synctex.lua question

2023-12-07 Thread Jim
Hi, In mtx-synctex.lua, inside local function findlocation(filename,page,xpos,ypos,tolerance) there is the following code: for s=1,tolerance,max(tolerance//10,1) do locate( s, 0) if fi ~= 0 then tl = s ; goto done end locate(-s, 0

[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
hope it is clearer now. Let me know if it is not. > > My issue is that I cannot avoid having "page=name" for links to external > documents, but this breaks footnotes and other special operation links. What are you using for links to external documents? If just a single command suc

[NTG-context] wrong destination types?

2023-11-17 Thread Pablo Rodriguez via ntg-context
alter the page view (when the document is not viewed as full page). Sorry, I don’t have other way to say it. I should get (only named destination value): 7 0 obj << /D [ 6 0 R /XYZ 76.84458 722.7349 null ] >> endobj And I’m getting: 4 0 obj << /D [ 1 0 R /F

[NTG-context] Re: context not producing synctex output that my synctex program can use

2023-11-15 Thread Jim
cTeX) somewhere? When I try that out, for example with mtxrun --script synctex --edit --name=a.tex --line=222 a.tex I am rewarded with sandbox | variable 'linenumber' has no checker (I tried various variations on that line I won't bore you with, but I keep getti

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

2023-11-14 Thread Pablo Rodriguez via ntg-context
whether they may be created adding something like: identifier identifier-1 identifier-2 identifier-3 … identifier-n This way (or a similar one) all named destinations are created. Of course, when linking with \goto, \in, \at, \about, the right identifier should be chosen. With links wit

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

2023-11-13 Thread Michal Vlasák
y > contain only digits. > > Then I need to access some named destinations from a document such as: > > \setupinteraction[state=start, > focus=standard] > \starttext > \dorecurse{5} > {\goto{Chapter \recurselevel}[whatever.pdf::\recurselevel], > \goto

[NTG-context] named destinations in /GoToR

2023-11-13 Thread Pablo Rodriguez via ntg-context
\starttext \dorecurse{5} {\goto{Chapter \recurselevel}[whatever.pdf::\recurselevel], \goto{section \recurselevel}[whatever.pdf::sec-\recurselevel]\par} \stoptext Sorry, but after reading again lpdf-ano.mkxl I’m not sure whether I can get named destinations (such as "/D (4)" or "/D

[NTG-context] Re: context not producing synctex output that my synctex program can use

2023-11-12 Thread Hans Hagen
some 'goto the text file' command and then launches an editor (afik the library has some heuristics build in wrt boxes and nesting and so); at the tex end there is also a library that kicks in addiional code for nodes and the backend (which is why enabling synctex will have an impact on runtime

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
e and \outlined […] which of course you then will wikify ... Of course, I’ll wikify this new feature in ConTeXt. As it might help other users, I‘m happy to help. I’ll have to wait until I test \namedgoto myself, because I don’t get how \namedgoto may differ from \goto. it obeys an interactio

[NTG-context] Re: colors for links

2023-10-14 Thread Pablo Rodriguez
I‘m happy to help. I’ll have to wait until I test \namedgoto myself, because I don’t get how \namedgoto may differ from \goto. > I attached an example but there is no upload (will happen when the build > is running again because I can't make osx bins here). So all new releases will

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
[references.border=darkgreen]% \goto{#1}[url(#1)]\stop} \def\intwo#1{% \start\setupinteraction[color=darkred]% \enabledirectives[references.border=darkred]% \goto{#1}[url(#1)]\stop} \def\inthree#1{% \start\setupinteraction[color=darkblue]% \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: escaping \ in Lua

2023-09-06 Thread Pablo Rodriguez
On 9/5/23 21:00, Hans Hagen wrote: > On 9/5/2023 6:43 PM, Pablo Rodriguez wrote: >> [...] >> Sorry for the obscure question, but how can I access this with >> "\goto{link to external}[a(b).pdf]"? > > \goto{link to external}[file(a(b).pdf)] Ma

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

2023-09-06 Thread denis.maier
] \goto {\xmlfilter{#1}{/graphic/command(xml:graphic)}} [url(\xmlfilter{#1}{/link/command(xml:link)})] \stopalignment \stopplacefigure \goto{test}[url(\xmlfilter{#1}{/link/command

[NTG-context] Fwd: escaping \ in Lua

2023-09-05 Thread Hans Hagen via ntg-context
] \enabledirectives[references.border=darkgreen] \starttext \startTEXpage[offset=1dk] \attachment[method=hidden, file=a(b).pdf] \stopTEXpage \stoptext The name in EmbeddedFiles is "a\(b\).pdf". Sorry for the obscure question, but how can I access this with "\goto{l

[NTG-context] escaping \ in Lua

2023-09-05 Thread Pablo Rodriguez
).pdf". Sorry for the obscure question, but how can I access this with "\goto{link to external}[a(b).pdf]"? I guess there may be some Lua magic, but I cannot write a proper ":gsub("%(", "%\%(

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

2023-09-03 Thread Pablo Rodriguez
ethod=hidden, reference=foobar, ] \goto{Link to attachment}[foobar] \stopTEXpage \stoptext Many thanks for your help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wik

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

2023-09-03 Thread Hans Hagen
-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#G11.2048909). At least to begin with, only links to embedded children documents would be required. If this GoToR is generated by ConTeXt from "\goto{whatever}[destination-doc::page(15)]": 17 0 obj << /D [ 14 /Fit ] /F (des

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

2023-09-03 Thread Pablo Rodriguez
#G11.2048909). At least to begin with, only links to embedded children documents would be required. If this GoToR is generated by ConTeXt from "\goto{whatever}[destination-doc::page(15)]": 17 0 obj << /D [ 14 /Fit ] /F (destination-doc.pdf) /NewWindow true /S /GoT

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

2023-08-25 Thread denis.maier
e[1].at[a] local s = u and lpeg.match(lpeg.patterns.urlunescaper,u) context(s) end \stopluacode \startxmlsetups xml:element \xmldoifelse{#1}{.[@href and contains(@href,'https://iiif.ub.unibe.ch')]} {\goto{\xmlflush{#1}}[url(https://uv-v4.netlify.app/##?manif

[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: Why overbar is so big

2023-08-13 Thread Hans Hagen
nt. 28 29 \medskip 30 La versió d'aquest document és la {\bf 0.4.0-alfa.\currentdate[year,-, mm,-,dd]}. 31 32 \bigskip 33 Aquest document ha estat generat, \currentdate[weekday,{ },day,{ },month,{ },year] a les \currenttime, usant programari lliure (\goto{\Context}

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Xavier B.
ent és la {\bf 0.4.0-alfa.\currentdate[year,-, mm,-,dd]}. 31 32 \bigskip 33 Aquest document ha estat generat, \currentdate[weekday,{ },day,{ },month,{ },year] a les \currenttime, usant programari lliure (\goto{\Context}[url(http://wiki.contextgarden.net)] versió \contextversionnumb

[NTG-context] Re: upload

2023-08-10 Thread Henning Hraban Ramm
: """ \setupreferencing[left=,right=,] \starttext \about[something] \stoptext """ tex error > tex error on line 5 in file referencetest.tex: Extra }, or forgotten \endgroup \egroup \about ...ways \let \\\space \postponenotes \referencingparameter \c!left \d

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

2023-07-22 Thread Pablo Rodriguez
".pdf", "ba.pdf") end ) \stopluacode \stoptext Then you have calling file (with file:///): \setupinteraction[state=start, focus=standard] \def\MyURL#1{\goto{\tt#1}[url(#1)]} \starttext Link to other document: \MyURL{file:///path/ba.pdf\letterhash n_73

[NTG-context] "true" units in LuaMetaTeX

2022-10-27 Thread Max Chernoff via ntg-context
halfword *order) { + AGAIN: do { tex_get_x_token(); } while (cur_cmd == spacer_cmd); @@ -2327,7 +2328,6 @@ static int tex_aux_scan_unit(halfword *num, halfword *denom, halfword *value, ha goto BACK_TWO; } cur_cs = save_cur_cs; - AGAIN:

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

2022-10-25 Thread Steffen Wolfrum via ntg-context
l?show_search_work_query=retractata_lbworkid=lb487378_mediatype=faksimil_word_form_only] > [https://litteraturbanken.se] > > \starttext > >before \goto{\url[litteraturbanken]}[url(litteraturbanken)] after > >before \from[litteraturbanken] after > > \stoptext >

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
rttext \def\MyURL[#1]{\goto{\tt\hyphenatedurl{#1}}[url(#1)]} \MyURL[https://litteraturbanken.se/författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?show_search_work_query=retractata_lbworkid=lb487378_mediatype=faksimil_word_form_only] \stoptext But https://wiki.contextgarden.net/URL

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

2022-10-14 Thread Pablo Rodriguez via ntg-context
1 0 R /Fit ] /S /GoTo >> endobj Instead of being a named destination, such as in: 5 0 obj << /D (#3) /S /GoTo >> endobj 11 0 obj << /D [ 1 0 R /XYZ 61.65861 129.0214 null ] >> endobj 40 0 obj << /Limits [ (#3) (conte

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-22 Thread amano.kenji via ntg-context
ou would have to decide how that information would be > kept (this is mostly the directory structure problem). > > With that said, taking Hans' instructions as a start: > > On Fri Aug 19, 2022 at 3:11 PM CEST, Hans Hagen via ntg-context wrote: > > > Not sure what you mean here

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-21 Thread Michal Vlasák via ntg-context
formation would be kept (this is mostly the directory structure problem). With that said, taking Hans' instructions as a start: On Fri Aug 19, 2022 at 3:11 PM CEST, Hans Hagen via ntg-context wrote: > Not sure what you mean here but basically a (future) installation is: > > - unzip the main

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-19 Thread amano.kenji via ntg-context
bes manual offline > > installation for package distributors? > > Not sure what you mean here but basically a (future) installation is: > > - unzip the main zip file > - goto the source subtree > - run build.sh (assumes compiler and cmake installed) > - move the binary file to th

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-19 Thread Hans Hagen via ntg-context
is: - unzip the main zip file - goto the source subtree - run build.sh (assumes compiler and cmake installed) - move the binary file to the relevant bin location - set symlinks from luametatex to mtsrun and context - copy mtxrun.lua and context.lue there too - adapt your path - maybe add texmf-fonts

Re: [NTG-context] Custom engine settings in AUCTEX

2022-07-02 Thread Jan-Erik Hägglöf via ntg-context
s://raw.githubusercontent.com/raxod502/straight.el/develop/install.el>" > 'silent 'inhibit-cookies) > (goto-char (point-max)) > (eval-print-last-sexp))) > (load bootstrap-file nil 'nomessage)) > > > > ;; Install use-package > (straight-use-packag

[NTG-context] Custom engine settings in AUCTEX

2022-07-01 Thread Mauricio Reyna via ntg-context
strap-file) (with-current-buffer (url-retrieve-synchronously "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el; 'silent 'inhibit-cookies) (goto-char (point-max)) (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage)) ;; Inst

[NTG-context] Tagging corrupts URLs in bibliographies

2022-06-30 Thread Max Chernoff via ntg-context
-context/tex/context/base/mkiv/publ-imp-apa.old2022-06-30 14:56:18.210565000 -0600 +++ texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi 2022-06-30 14:56:40.611212000 -0600 @@ -1263,12 +1263,12 @@ \setbreakpoints[doi] \ifconditional\btxinteractive \goto

Re: [NTG-context] Breaking url into multiple lines results in broken link in rendered PDF

2022-03-31 Thread Pablo Rodriguez via ntg-context
//www.% goo% gle% .com] \goto{link}[url(myUrl)] \stoptext I hope it helps, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

[NTG-context] Breaking url into multiple lines results in broken link in rendered PDF

2022-03-30 Thread A A via ntg-context
I would like to be able to break up URLs into multiple lines in my bibliography source file and still get the link to work. Here's what I have so far: *\setupinteraction [state=start]\starttext\useURL [myUrl] [ "https://www.g <https://www.g>oogle.com <http://oogl

Re: [NTG-context] \figuresymbol with underlying hyperlink?

2022-03-30 Thread Hans Hagen via ntg-context
On 3/29/2022 10:48 AM, Steffen Wolfrum via ntg-context wrote: Unfortunately I have to use it at a heading: and this gives an error: \starttext \define[1]\Link{\goto{\symbol[wingdings 3][barb1right]}[url(https://#1)]\autoinsertnextspace} \chapter{a\Link} text \stoptext shouldn't you pass

Re: [NTG-context] \figuresymbol with underlying hyperlink?

2022-03-29 Thread Steffen Wolfrum via ntg-context
Wolfrum: >> Unfortunately I have to use it at a heading: >> and this gives an error: >> \starttext >> \define[1]\Link{\goto{\symbol[wingdings >> 3][barb1right]}[url(https://#1)]\autoinsertnextspace} >> \chapter{a\Link} >> text >> \stoptext >&g

Re: [NTG-context] \figuresymbol with underlying hyperlink?

2022-03-29 Thread Henning Hraban Ramm via ntg-context
Did you try to use it with a parameter? \Link{wiki.contextgarden.net} Hraban Am 29.03.22 um 10:48 schrieb Steffen Wolfrum: Unfortunately I have to use it at a heading: and this gives an error: \starttext \define[1]\Link{\goto{\symbol[wingdings 3][barb1right]}[url(https://#1

Re: [NTG-context] \figuresymbol with underlying hyperlink?

2022-03-29 Thread Steffen Wolfrum via ntg-context
Unfortunately I have to use it at a heading: and this gives an error: \starttext \define[1]\Link{\goto{\symbol[wingdings 3][barb1right]}[url(https://#1)]\autoinsertnextspace} \chapter{a\Link} text \stoptext Steffen > Am 29.03.2022 um 09:56 schrieb Henning Hraban Ramm via ntg-cont

Re: [NTG-context] \figuresymbol with underlying hyperlink?

2022-03-29 Thread Henning Hraban Ramm via ntg-context
use: \define[1]\Web{\goto{\hyphenatedurl{#1}}[url(https://#1)]\autoinsertnextspace} \define[1]\Email{\goto{\hyphenatedurl{#1}}[url(mailto:#1)]\autoinsertnextspace} \define[1]\WebQR{\inouter[scope=local]{\barcode[alternative=qr code, text={#1}, width=10mm]}\Web{#1}} \define[1]\WebArrow{\symbol

Re: [NTG-context] Please could you send me the whole example

2022-03-27 Thread A A via ntg-context
] \placelistofpublications \stopsection \stopbackmatter \stoptext *bibliography.bib* @misc{ proofwiki, title={{Definition:Collation - ProofWiki}}, author={{ProofWiki}}, journal={{ProofWiki}}, year={2021}, howpublished={ \goto {link} [ url( "

Re: [NTG-context] \hyphenatedurl in non-hyphenation context

2022-02-15 Thread Denis Maier via ntg-context
the url setup then called in before \hyphenatedurl): \setuppapersize[A6] \setuphead[chapter][align={right,nothyphenated}] \startsetups url \setupalign[hyphenated] \stopsetups \starttext \chapter[title={asdf asdf \goto{\setup[url]\hyphenatedurl{https://doi.org/10.12345/12345.12345

Re: [NTG-context] \hyphenatedurl in non-hyphenation context

2022-02-14 Thread jbf via ntg-context
You could try this (note the url setup then called in before \hyphenatedurl): \setuppapersize[A6] \setuphead[chapter][align={right,nothyphenated}] \startsetupsurl \setupalign[hyphenated] \stopsetups \starttext \chapter[title={asdfasdf\goto{\setup[url]\hyphenatedurl{https://doi.org

[NTG-context] \hyphenatedurl in non-hyphenation context

2022-02-14 Thread Denis Maier via ntg-context
={asdf asdf \goto{\hyphenatedurl{https://doi.org/10.12345/12345.12345}}[url(https://doi.org/10.12345/12345.12345)]}] bla \stoptext % For now, I'm changing the definition to \setuphead[chapter][align={right,lesshyphenation}], but is there a way to disable hyphenation

Re: [NTG-context] SimpleSlides and Visual counters

2022-01-16 Thread Otared Kavian via ntg-context
lor} ; label(textext("\start\switchtobodyfont[10pt]% \setupinteraction[color=simpleslides:backgroundcolor,style=normal]% \startcolor[simpleslides:backgroundcolor] \goto{\pagenumber}[Prev

Re: [NTG-context] Found a weird URL that breaks things

2021-12-19 Thread Bruce Horrocks via ntg-context
he following MWE won't compile for me: >> >> \setupinteraction [state=start] >> \starttext >> Click me: >> \goto{https://forum.swissmicros.com/viewtopic.php?f=2=22236#p22236} >> [url(https://forum.swissmicros.com/viewtopic.php?f=2=22236#p22236)] >> \st

Re: [NTG-context] Found a weird URL that breaks things

2021-12-19 Thread Wolfgang Schuster via ntg-context
Bruce Horrocks via ntg-context schrieb am 19.12.2021 um 18:12: Hi, The following MWE won't compile for me: \setupinteraction [state=start] \starttext Click me: \goto{https://forum.swissmicros.com/viewtopic.php?f=2=22236#p22236} [url(https://forum.swissmicros.com/viewtopic.php?f=2=22236#p22236

[NTG-context] Found a weird URL that breaks things

2021-12-19 Thread Bruce Horrocks via ntg-context
Hi, The following MWE won't compile for me: \setupinteraction [state=start] \starttext Click me: \goto{https://forum.swissmicros.com/viewtopic.php?f=2=22236#p22236} [url(https://forum.swissmicros.com/viewtopic.php?f=2=22236#p22236)] \stoptext under "mtx-context | current ve

[NTG-context] All Equations

2021-12-10 Thread Henning Hraban Ramm via ntg-context
or I or | ... Yes, I could have used proper Unicode characters (ρ, π etc.). Can you answer my questions (%? in the source)? (Partly TeX related, partly math/physics related.) """ \setupinteraction[state=start] \starttext \subject{All equations\footnote{according to \goto{

Re: [NTG-context] XML-processing: Error with hyphenatedurl

2021-10-27 Thread Hans Hagen via ntg-context
-link-var-var \goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlflush{#1})] \stopxmlsetups seems to work now correctly. it depends abit on what gets flushed, in those cases a low level flush has to be used \xmltext \xmltextonly \xmlraw to get the raw data .. depends on content Hans

Re: [NTG-context] XML-processing: Error with hyphenatedurl

2021-10-27 Thread Pablo Rodriguez via ntg-context
> \startxmlsetups xml:ext-link-var-var > \goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlflush{#1})] > \stopxmlsetups > > seems to work now correctly. Sorry, it was the wrong order: \expanded{\goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlflush{#1})]} \xmlpure i

Re: [NTG-context] XML-processing: Error with hyphenatedurl

2021-10-27 Thread Denis Maier via ntg-context
nis, > > > > in my environments to typeset XML sources, I never need \expandUx, why > > do you needit? > > I've had a problem with special characters in URLs. Wolfgang suggested to use > \expandUx: https://www.mail-archive.com/ntg-context@ntg.nl/msg95959.html > >

Re: [NTG-context] XML-processing: Error with hyphenatedurl

2021-10-27 Thread Denis Maier via ntg-context
ever need \expandUx, why do > you needit? I've had a problem with special characters in URLs. Wolfgang suggested to use \expandUx: https://www.mail-archive.com/ntg-context@ntg.nl/msg95959.html > > Another approach (I don’t know whether this will work in your real-world > document) might

Re: [NTG-context] XML-processing: Error with hyphenatedurl

2021-10-27 Thread Pablo Rodriguez via ntg-context
this will work in your real-world document) might be using \xmlpure instead of \xmlflush as in: \goto{\hyphenatedurl{\xmlflush{#1}}}[url(\xmlpure{#1})] The background for both commands can be found on https://www.pragma-ade.com/general/manuals/xml-mkiv.pdf#page=103. I hope it helps, P

[NTG-context] XML-processing: Error with hyphenatedurl

2021-10-27 Thread Denis Maier via ntg-context
{ ["errortype"]=1, ["filename"]="", ["lastcontext"]="\n \n\n\\xdef \n \\expanded \n#1->\\xdef \n \\m_syst_helpers_expanded {\\noexpand #1}\\m_syst_helpers_expanded \n \\22>:xml:ext-link \n #1->\\begingroup \\expandUx \\expanded

Re: [NTG-context] Clickable url problem with \useurl and \url

2021-10-12 Thread Rik Kabel via ntg-context
vary depending on the pdf viewer you use. In Apple's Preview, all items are in fact clickable. But only \from produces actual pdf hyperlink annotations. Should I use something other than \url[earlXX] here to get the clickable literal url from useurl? This, maybe \goto{\url[earlLH]}[url

Re: [NTG-context] Clickable url problem with \useurl and \url

2021-10-12 Thread Taco Hoekwater via ntg-context
ules may therefore vary depending on the pdf viewer you use. In Apple's Preview, all items are in fact clickable. But only \from produces actual pdf hyperlink annotations. > Should I use something other than \url[earlXX] here to get the clickable > literal url from useurl? This, maybe \go

Re: [NTG-context] Number conversion in btxlist and citations

2021-09-16 Thread kauśika cittūr via ntg-context
oing wrong? > > Please advise. > > Thanks, > kauśika Dear all, After looking through publ-imp-cite.mkvi I was able to piece together the following setup for my cite command \definecounter [mycitecntr] [counter=mycitecntr] \startsetups btx:mylist:cite:num \goto{\getnumber[my

[NTG-context] JavaScript controlled button appearance

2021-08-30 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \setupinteraction[state=start] \setupbodyfont[heros] \startJSpreamble varia used now function SwitchFS() { app.fs.isFullScreen = !app.fs.isFullScreen; } \stopJSpreamble \starttext \startTEXpage[offset=10pt] \goto{fs}[JS

Re: [NTG-context] JavaScript in multimedia PDF

2021-08-10 Thread Michal Vlasák via ntg-context
should work if the name tree is added (I will look into that), but also needs a better way to refer to the screen annotations, than what I am using below (which maybe means more book keeping, have to check). The second way would need a new executer and its shortcut, maybe something used like thi

[NTG-context] footnote interaction in titles

2021-08-09 Thread Adam Reviczky via ntg-context
effect or intended like that? A half-workaround is to apply the styles directly, but not sure how I can force the numbering style (same-page reference). See MWE: \setupinteraction[state=start] \starttext \startchapter[title={Long question with footnote \footnote{see: \goto{ https

[NTG-context] JavaScript in multimedia PDF

2021-08-08 Thread Pablo Rodriguez via ntg-context
[mainface, 25pt] \setupalign[middle] \setupfooter [style={\ss}] \def\SlideNavigationButtons{% \goto{A}[JS(GoToFirstSlide{mainsound})]% \goto{K}[JS(GoToPreviousSlide{mainsound})]% \goto{L}[JS(GoToNextSlide{mainsound})]% \goto{B}[JS(GoToLastSlide{mainsound

Re: [NTG-context] multimedia PDF in ConTeXt

2021-07-31 Thread Pablo Rodriguez via ntg-context
\setupbackgrounds[page][background=resources] > \setlayer[resources]{\placerenderingwindow[audiowindow][myaudiorendering]} > > \goto{PLAY SOUND}[StartRendering{myaudiorendering}] > > This is basically the example from "/back-swf.mkiv". Works in Acrobat. > And one can use eit

Re: [NTG-context] multimedia PDF in ConTeXt

2021-07-30 Thread Michal Vlasák via ntg-context
ack [myaudio][audio.mp3] \checksoundtrack{myaudio} \goto{PLAY SOUND}[StartSound{myaudio}] But, you can use renderings instead: \useexternalrendering[myaudiorendering] [audio/mp3][audio.mp3][embed=yes] \definerenderingwindow[audiowindow] [wid

Re: [NTG-context] ligature exceptions

2021-07-28 Thread Hans Hagen via ntg-context
quot;word" and id == glue_code then local s = getsubtype(current) if s == spaceskip_code or s == xspaceskip_code then local r = root[32] -- maybe more types if r then if not prevend then

Re: [NTG-context] Adobe Acrobat accessibility criteria

2021-07-28 Thread Hans Hagen via ntg-context
re is some text \useURL[url1][https://xkcd.org][][Here is a link to xkcd]\from[url1] \goto{next page}[page(2)] \page test \stoptext anyway, adding this - yet another weird - tag related object is doable but i'll send you some files to test off list (the tagging code is alrea

Re: [NTG-context] Multimedia, PDF and ConTeXt

2021-07-27 Thread Michal Vlasák via ntg-context
ong": > > > > - Currently ConTeXt wraps a PDF file specification for embedded file > > inside another file specification (i.e. embedded files don't work). > > - As a result of "externalrendering" inheriting from \framed, the > > PDF annotation late_lua whats

  1   2   3   4   5   6   7   8   >