[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Hans Hagen via ntg-context
. I'm using datasets and a recursion, kind of hacky but I can't find a better way of handling it. Specifically I would like to know: 1. Is there a way of getting the length of a filled dataset? (how many entries it contains) 2. Is it OK to use \startuserdata \stopuserdata without its inlineuserdata

[NTG-context] Experiments with \doloopoverlist

2023-08-16 Thread Andres Conrado Montoya
can't find a better way of handling it. Specifically I would like to know: 1. Is there a way of getting the length of a filled dataset? (how many entries it contains) 2. Is it OK to use \startuserdata \stopuserdata without its inlineuserdata? Is there an alternative that does not require

[NTG-context] Userdata environment

2023-04-03 Thread Fabrice Couvreur via ntg-context
, align={flushleft,broad} ] {\startexemple \getinlineuserdata \stopexemple} \stopsetups \showframe \starttext \startchapter[title={First Chapter},ownnumber=1] \startdefinition \input ward \stopdefinition \startuserdata [margintext] \input ward \stopuserdata

Re: [NTG-context] paragraph standing out of the normal layout comsuming the margin

2021-06-29 Thread Jan U. Hasecke
=shiftblock] \setuppagenumbering     [alternative=doublesided] \starttext \startbuffer     \dorecurse{2}{\input knuth\par}     \startuserdata[shiftblock]     \input ward     \stopuserdata     \dorecurse{2}{\input zapf\par} \stopbuffer \dorecurse{10}{\getbuffer} \stoptext I'll try

Re: [NTG-context] paragraph standing out of the normal layout comsuming the margin

2021-06-25 Thread Wolfgang Schuster
\defineuserdataalternative [shiftblock] [renderingsetup=userdata:shiftblock] \defineuserdata [shiftblock] [before=\blank, after=\blank, alternative=shiftblock] \setuppagenumbering [alternative=doublesided] \starttext \startbuffer \dorecurse{2}{\input knuth\par} \startuserdata

Re: [NTG-context] Side-by-side environment

2021-05-31 Thread Werner Hennrich
  \stopxrow \stopembeddedxtable \blank \stopsetups \starttext \startuserdata [example] \starttext C’era una volta un re\dots \stoptext \stopuserdata \stoptext Now, the question: Can the code to be improved? How can I modify the code to have the example typeset to the right of the box? I would

[NTG-context] Side-by-side environment

2021-05-31 Thread Tommaso Gordini
\stopxrow \startxrow [corner=01,align=normal] \startxcell \getuserdata \stopxcell \stopxrow \stopembeddedxtable \blank \stopsetups \starttext \startuserdata [example] \starttext C’era una volta un re\dots \stoptext \stopuserdata \stoptext Now

Re: [NTG-context] [startstop]

2021-01-22 Thread Jairo A. del Rio
hing{\userdataparameter{title}} >{\bold{\strut\userdataparameter{title}} > \blank} > \strut\getuserdata > \stopsetups > > \starttext > > \startuserdata[zzz] > \input weisman > \stopuserdata > > \startuserdata[zzz][title=Ward] > \input ward > \sto

Re: [NTG-context] [startstop]

2021-01-22 Thread Wolfgang Schuster
gsetup=userdata:zzz] \startsetups[userdata:zzz] \hrule \doifsomething{\userdataparameter{title}} {\bold{\strut\userdataparameter{title}} \blank} \strut\getuserdata \stopsetups \starttext \startuserdata[zzz] \input weisman \stopuserdata \startuserdata[zzz][title=Ward] \inpu

Re: [NTG-context] Quotation with footnote

2020-09-04 Thread Henning Hraban Ramm
> \defineuserdata > [myquote] > [alternative=myquote] > > \showframe > > \definefontfeature [default] [default] [protrusion=quality] > > \setupalign [hanging] > > \starttext > > \startuserdata [myquote] [reference={f:9},source={Kaspar Hauser (Kurt >

Re: [NTG-context] Quotation with footnote

2020-09-04 Thread Wolfgang Schuster
] \starttext \startuserdata [myquote] [reference={f:9},source={Kaspar Hauser (Kurt Tucholsky), Weltbühne 24, 16.\,6.\,1931}] Im übrigen ist der Mensch ein Lebewesen, das klopft, schlechte Musik macht und seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, aber dann ist er tot. \stopuserdata

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Fabrice Couvreur
t=0pt,width=max,frame=off] > \getinlineuserdata > \stopframedtext} > \stopsetups > > \showframe > \starttext > \startuserdata[margintext] > {\bf Remarque — }\input ward > \stopuserdata > \startuserdata[margintext] > \externalfigure[dummy][width=\rightma

Re: [NTG-context] Store images and text in the right margin

2020-07-06 Thread Taco Hoekwater
\stopframedtext} \stopsetups \showframe \starttext \startuserdata[margintext] {\bf Remarque — }\input ward \stopuserdata \startuserdata[margintext] \externalfigure[dummy][width=\rightmarginwidth] \stopuserdata \startchapter[title=First chapter] \dorecurse{2}{\input knuth} \stopchapter \stoptext > On 6

Re: [NTG-context] Store images and text in the right margin

2020-07-03 Thread Marco Patzer
On Fri, 3 Jul 2020 08:40:22 +0200 Fabrice Couvreur wrote: > Thanks, it works but only for a comment and a picture. Indeed, if I > add a comment and an image, the first image is placed on the second > comment. Fabrice > > \starttext > \startuserdata[margintext] > \input

Re: [NTG-context] Store images and text in the right margin

2020-07-03 Thread Fabrice Couvreur
Hi Marco, Thanks, it works but only for a comment and a picture. Indeed, if I add a comment and an image, the first image is placed on the second comment. Fabrice \starttext \startuserdata[margintext] \input ward \stopuserdata \marginfigure{\externalfigure[dummy][width=\rightmarginwidth,location

[NTG-context] Store images and text in the right margin

2020-07-02 Thread Fabrice Couvreur
={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}] {{\bf Remarque — }\getinlineuserdata} \stopsetups \showframe \starttext \startuserdata[margintext] \input ward \stopuserdata \marginfigure{\externalfigure[dummy][width=\rightmarginwidth]} \startchapter[title=First chapter

Re: [NTG-context] \startquotation and citations

2020-03-26 Thread Michael Guravage
] [renderingsetup=userdata:extendedquotation] \defineuserdata [extendedquotation] [alternative=extendedquotation, before=\blank, after=\blank] \starttext \input tufte \blank \startquotation %% Quotation marks protrude \input tufte \stopquotation \startuserdata[extendedquotation

Re: [NTG-context] \startquotation and citations

2020-03-26 Thread Wolfgang Schuster
tation] \defineuserdata [extendedquotation] [alternative=extendedquotation, before=\blank, after=\blank] \starttext \input tufte \startuserdata[extendedquotation][source=\footnote{See Tufte …}] \input tufte \stopuserdata \input tufte \stoptext Wo

Re: [NTG-context] Documentation of change / Evolving documents

2019-09-29 Thread Axel Kielhorn
/wiki.contextgarden.net/Command/definestartstop > > Another option: https://wiki.contextgarden.net/Command/startuserdata > > Wolfgang Thanks! I’ll look into next weekend. Greetings Axel ___ If your que

Re: [NTG-context] Documentation of change / Evolving documents

2019-09-29 Thread Wolfgang Schuster
. Der Befehl \type{\Changec} hat zwei Argumente: alter Text und neuer Text. \stopChangeA See https://wiki.contextgarden.net/Command/definestartstop Another option: https://wiki.contextgarden.net/Command/startuserdata Wolfgang

Re: [NTG-context] several blocks of text in the margin

2019-05-01 Thread Henning Hraban Ramm
:margintext] > > \startsetups [userdata:margintext] > \margindata > [inright] > [%style=\smallbodyfont, > style={\switchtobodyfont[9pt]}, > width=\rightmarginwidth, > align={flushleft,broad}] > {{\bf Exemple — }\getinlineuserdata} > \stop

[NTG-context] several blocks of text in the margin

2019-04-27 Thread Fabrice Couvreur
— }\getinlineuserdata} \stopsetups \starttext \startuserdata[margintext] Une population, à effectif stable, se répartit entre deux régions A et B. On suppose que chaque année : \startitemize[1] \item \pcent{30} des habitants de la région A déménagent pour la région B (les autres

Re: [NTG-context] Text in the margin

2019-04-10 Thread Wolfgang Schuster
] [renderingsetup=userdata:margintext] \startsetups [userdata:margintext]   \margindata     [inright] [%style=\smallbodyfont, style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}]     {{\bf Exemple — }\getinlineuserdata} \stopsetups \starttext \startuserdata

[NTG-context] Text in the margin

2019-04-10 Thread Fabrice Couvreur
] \startsetups [userdata:margintext] \margindata [inright] [%style=\smallbodyfont, style={\switchtobodyfont[9pt]}, width=\rightmarginwidth, align={flushleft,broad}] {{\bf Exemple — }\getinlineuserdata} \stopsetups \starttext \startuserdata[margintext] \input ward \stopuserdata

Re: [NTG-context] A ConTeXt Guide in Italian

2018-11-21 Thread Wolfgang Schuster
]   \stopxcell     \stopxrow     \startxrow [corner=01]   \startxcell     \getuserdata   \stopxcell     \stopxrow   \stopembeddedxtable \stopsetups \starttext \startuserdata [example] \startframedtext \samplefile{klein} \stopframedtext \stopuserdata \stoptext Wolfgang

Re: [NTG-context] \startuserdata syntax questions

2018-08-29 Thread Aditya Mahajan
On Wed, 29 Aug 2018, Wolfgang Schuster wrote: The second question: Is there the possibility to enhance the syntax so that one can write \startMyStuff [optionalkey=value, anotherkey=value] stuff \stopMyStuff instead of \startuserdata [MyStuff] [optionalkey=value

Re: [NTG-context] \startuserdata syntax questions

2018-08-29 Thread Rik Kabel
On 8/29/2018 11:19, Wolfgang Schuster wrote: Hans Hagen schrieb am 29.08.18 um 09:15: On 8/28/2018 10:40 PM, Rik Kabel wrote: Wolfgang, Hans, et al, The new \startuserdata macro looks very promising, and can simplify some work I have in progress. The first question: the wiki example

Re: [NTG-context] \startuserdata syntax questions

2018-08-29 Thread Wolfgang Schuster
Hans Hagen schrieb am 29.08.18 um 09:15: On 8/28/2018 10:40 PM, Rik Kabel wrote: Wolfgang, Hans, et al, The new \startuserdata macro looks very promising, and can simplify some work I have in progress. The first question: the wiki example and the source use \userparameter{optionkey

Re: [NTG-context] \startuserdata syntax questions

2018-08-29 Thread Hans Hagen
On 8/28/2018 10:40 PM, Rik Kabel wrote: Wolfgang, Hans, et al, The new \startuserdata macro looks very promising, and can simplify some work I have in progress. The first question: the wiki example and the source use \userparameter{optionkey} \userparameter{anotherkey} to retrieve

[NTG-context] \startuserdata syntax questions

2018-08-28 Thread Rik Kabel
Wolfgang, Hans, et al, The new \startuserdata macro looks very promising, and can simplify some work I have in progress. The first question: the wiki example and the source use \userparameter{optionkey} \userparameter{anotherkey} to retrieve the value of optionkey and anotherkey