Re: [NTG-context] source code and result side by side

2017-08-04 Thread Henning Hraban Ramm
Am 2017-08-04 um 06:30 schrieb Henri Menke : > On 08/04/2017 07:46 AM, Henning Hraban Ramm wrote: >> Am 2017-07-31 um 03:26 schrieb Aditya Mahajan : >> >>> You can't do that with buffers. If you need to define your own macros that >>> behave like

Re: [NTG-context] source code and result side by side

2017-08-03 Thread Henning Hraban Ramm
Am 2017-07-31 um 03:26 schrieb Aditya Mahajan : > You can't do that with buffers. If you need to define your own macros that > behave like buffers, you need to use \grabbufferdata (see buff-ini.mkiv). But > in this case, there is a simpler solution: > > \defineframed >

Re: [NTG-context] source code and result side by side

2017-08-03 Thread Henning Hraban Ramm
Am 2017-07-31 um 03:26 schrieb Aditya Mahajan : > You can't do that with buffers. If you need to define your own macros that > behave like buffers, you need to use \grabbufferdata (see buff-ini.mkiv). But > in this case, there is a simpler solution: Thank you very much, I

Re: [NTG-context] source code and result side by side

2017-07-30 Thread Aditya Mahajan
On Sun, 30 Jul 2017, Henning Hraban Ramm wrote: Am 2017-07-29 um 00:57 schrieb Aditya Mahajan : On Fri, 28 Jul 2017, Henning Hraban Ramm wrote: Ahoi again, I’m preparing some ConTeXt docs with a lot of examples and would like to reproduce what we have in the wiki as

Re: [NTG-context] source code and result side by side

2017-07-30 Thread Pablo Rodriguez
On 07/30/2017 07:13 PM, Henning Hraban Ramm wrote: > [...] > But I’d like to show a lot of similar examples to explain several options. > Therefore, if I’d like to simplify my code, but this doesn’t work: > > \def\CodeExample#1{% > \startbuffer[zB] > #1 > \stopbuffer > \typebuffer[zB] >

Re: [NTG-context] source code and result side by side

2017-07-30 Thread Henning Hraban Ramm
Am 2017-07-29 um 00:57 schrieb Aditya Mahajan : > On Fri, 28 Jul 2017, Henning Hraban Ramm wrote: > >> Ahoi again, >> >> I’m preparing some ConTeXt docs with a lot of examples and would like to >> reproduce what we have in the wiki as >> >> >> ... >> >> >> i.e.

Re: [NTG-context] source code and result side by side

2017-07-29 Thread Pablo Rodriguez
On 07/29/2017 10:58 AM, Pablo Rodriguez wrote: > On 07/29/2017 12:57 AM, Aditya Mahajan wrote: >> [...] >> \placesidebyside >> {\typebuffer[example-1]} >> {\getbuffer[setups, example-1]} > [...] > Is there now hay to avoid the forced horizontal mode on both sides? Replying to my own

Re: [NTG-context] source code and result side by side

2017-07-29 Thread Pablo Rodriguez
On 07/29/2017 12:57 AM, Aditya Mahajan wrote: > [...] > \startbuffer[example-1] > > \stopbuffer > > > \placesidebyside > {\typebuffer[example-1]} > {\getbuffer[setups, example-1]} Many thanks for your suggestion, Aditya. I’m afraid everything is forced to be in horizontal

Re: [NTG-context] source code and result side by side

2017-07-28 Thread Aditya Mahajan
On Fri, 28 Jul 2017, Henning Hraban Ramm wrote: Ahoi again, I’m preparing some ConTeXt docs with a lot of examples and would like to reproduce what we have in the wiki as ... i.e. sourcecode beside the result. Often the shown source is exactly what I want to show, in other cases I need