![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
And here comes question 2, a very basic one: on A4 landscape pages, I want to place two images next to each other (like the spread pages of a book). What would be the preferred way of the really competent users to do this, again keeping in mind that I want to loop over page numbers in a pdf file and thus am coding in Lua. So far, I have tried or thought about: 1. Embedded xtable This is what I’m using now, an xtable of two columns for every A4 page. It works, but I wonder if it’s a good method. 2. combinations This appeared to be the most natural approach (because it’s what combinations are for), but I ran into expansion problems, added a few “function () end” in my code, but couldn’t make it compile. Combinations, combined with framed and externalfigure, are difficult to write in Lua - or am I too stupid to find the winning combination (sorry for the puns). 3. columns Again, this would seen like a natural approach, having every A4 page set up as two columns, but maybe that’s overkill? I’d be curious to know what you think! All best Thomas
![](https://secure.gravatar.com/avatar/05c453189925473f246530818f2ad8a1.jpg?s=120&d=mm&r=g)
Hi Thomas, Not sure whether it helps or not, but in regards to combinations and Lua I have had some challenges as well, but Hans' and Wolfgangs' solution with externalfigures works fine for me now: https://mailman.ntg.nl/pipermail/ntg-context/2021/103822.html https://mailman.ntg.nl/pipermail/ntg-context/2021/103827.html Adam On Mon, Mar 28, 2022 at 2:42 PM Thomas A. Schmitz via ntg-context < ntg-context@ntg.nl> wrote:
And here comes question 2, a very basic one: on A4 landscape pages, I want to place two images next to each other (like the spread pages of a book). What would be the preferred way of the really competent users to do this, again keeping in mind that I want to loop over page numbers in a pdf file and thus am coding in Lua. So far, I have tried or thought about:
1. Embedded xtable
This is what I’m using now, an xtable of two columns for every A4 page. It works, but I wonder if it’s a good method.
2. combinations
This appeared to be the most natural approach (because it’s what combinations are for), but I ran into expansion problems, added a few “function () end” in my code, but couldn’t make it compile. Combinations, combined with framed and externalfigure, are difficult to write in Lua - or am I too stupid to find the winning combination (sorry for the puns).
3. columns
Again, this would seen like a natural approach, having every A4 page set up as two columns, but maybe that’s overkill?
I’d be curious to know what you think!
All best
Thomas
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On 28. Mar 2022, at 18:21, Adam Reviczky via ntg-context
wrote: Hi Thomas,
Not sure whether it helps or not, but in regards to combinations and Lua I have had some challenges as well, but Hans' and Wolfgangs' solution with externalfigures works fine for me now:
https://mailman.ntg.nl/pipermail/ntg-context/2021/103822.html https://mailman.ntg.nl/pipermail/ntg-context/2021/103827.html
Adam
Thank you, that’s already very useful! I should have looked if there is a “delayed” alternative for externalfigure as well, but I also take Hans’s warning to heart that all of this is non-trivial. Thank you, best wishes Thomas
![](https://secure.gravatar.com/avatar/e79f226aa442b589932230491affa641.jpg?s=120&d=mm&r=g)
Hi, is it possible to combine figuresymbol with some kind of \useurl? The goal is to have an inline symbol that provides a http url link. Best wishes, Steffen
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Am 28.03.22 um 21:08 schrieb Steffen Wolfrum via ntg-context:
Hi,
is it possible to combine figuresymbol with some kind of \useurl?
The goal is to have an inline symbol that provides a http url link.
AFAIK there’s nothing ready-made in that regard, but just define your own macro. E.g. I 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[wingdings 3][barb1right]~{\em\hyphenatedurl{#1}}} So I guess you’d like something like: \define[1]\Link{\goto{\symbol[wingdings 3][barb1right]}[url(https://#1)]\autoinsertnextspace} Hraban
![](https://secure.gravatar.com/avatar/e79f226aa442b589932230491affa641.jpg?s=120&d=mm&r=g)
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-context
: Am 28.03.22 um 21:08 schrieb Steffen Wolfrum via ntg-context:
Hi, is it possible to combine figuresymbol with some kind of \useurl? The goal is to have an inline symbol that provides a http url link.
AFAIK there’s nothing ready-made in that regard, but just define your own macro.
E.g. I 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[wingdings 3][barb1right]~{\em\hyphenatedurl{#1}}}
So I guess you’d like something like:
\define[1]\Link{\goto{\symbol[wingdings 3][barb1right]}[url(https://#1)]\autoinsertnextspace}
Hraban
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
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)]\autoinsertnextspace}
\chapter{a\Link}
text
\stoptext
Steffen
Am 29.03.2022 um 09:56 schrieb Henning Hraban Ramm via ntg-context
: Am 28.03.22 um 21:08 schrieb Steffen Wolfrum via ntg-context:
Hi, is it possible to combine figuresymbol with some kind of \useurl? The goal is to have an inline symbol that provides a http url link.
AFAIK there’s nothing ready-made in that regard, but just define your own macro.
E.g. I 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[wingdings 3][barb1right]~{\em\hyphenatedurl{#1}}}
So I guess you’d like something like:
\define[1]\Link{\goto{\symbol[wingdings 3][barb1right]}[url(https://#1)]\autoinsertnextspace}
Hraban
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/e79f226aa442b589932230491affa641.jpg?s=120&d=mm&r=g)
No, I didn’t…. Thank you very much, now it works ;o) Steffen
Am 29.03.2022 um 12:59 schrieb 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)]\autoinsertnextspace} \chapter{a\Link} text \stoptext Steffen
Am 29.03.2022 um 09:56 schrieb Henning Hraban Ramm via ntg-context
: Am 28.03.22 um 21:08 schrieb Steffen Wolfrum via ntg-context:
Hi, is it possible to combine figuresymbol with some kind of \useurl? The goal is to have an inline symbol that provides a http url link.
AFAIK there’s nothing ready-made in that regard, but just define your own macro.
E.g. I 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[wingdings 3][barb1right]~{\em\hyphenatedurl{#1}}}
So I guess you’d like something like:
\define[1]\Link{\goto{\symbol[wingdings 3][barb1right]}[url(https://#1)]\autoinsertnextspace}
Hraban
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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 some argument to your \Link macro?
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (5)
-
Adam Reviczky
-
Hans Hagen
-
Henning Hraban Ramm
-
Steffen Wolfrum
-
Thomas A. Schmitz