. 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
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
,
align={flushleft,broad}
]
{\startexemple
\getinlineuserdata
\stopexemple}
\stopsetups
\showframe
\starttext
\startchapter[title={First Chapter},ownnumber=1]
\startdefinition
\input ward
\stopdefinition
\startuserdata [margintext]
\input ward
\stopuserdata
=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
\defineuserdataalternative
[shiftblock]
[renderingsetup=userdata:shiftblock]
\defineuserdata
[shiftblock]
[before=\blank,
after=\blank,
alternative=shiftblock]
\setuppagenumbering
[alternative=doublesided]
\starttext
\startbuffer
\dorecurse{2}{\input knuth\par}
\startuserdata
\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
\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
hing{\userdataparameter{title}}
>{\bold{\strut\userdataparameter{title}}
> \blank}
> \strut\getuserdata
> \stopsetups
>
> \starttext
>
> \startuserdata[zzz]
> \input weisman
> \stopuserdata
>
> \startuserdata[zzz][title=Ward]
> \input ward
> \sto
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
> \defineuserdata
> [myquote]
> [alternative=myquote]
>
> \showframe
>
> \definefontfeature [default] [default] [protrusion=quality]
>
> \setupalign [hanging]
>
> \starttext
>
> \startuserdata [myquote] [reference={f:9},source={Kaspar Hauser (Kurt
>
]
\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
t=0pt,width=max,frame=off]
> \getinlineuserdata
> \stopframedtext}
> \stopsetups
>
> \showframe
> \starttext
> \startuserdata[margintext]
> {\bf Remarque — }\input ward
> \stopuserdata
> \startuserdata[margintext]
> \externalfigure[dummy][width=\rightma
\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
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
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
={\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
]
[renderingsetup=userdata:extendedquotation]
\defineuserdata
[extendedquotation]
[alternative=extendedquotation,
before=\blank,
after=\blank]
\starttext
\input tufte \blank
\startquotation %% Quotation marks protrude
\input tufte
\stopquotation
\startuserdata[extendedquotation
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
/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
. 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
:margintext]
>
> \startsetups [userdata:margintext]
> \margindata
> [inright]
> [%style=\smallbodyfont,
> style={\switchtobodyfont[9pt]},
> width=\rightmarginwidth,
> align={flushleft,broad}]
> {{\bf Exemple — }\getinlineuserdata}
> \stop
— }\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
]
[renderingsetup=userdata:margintext]
\startsetups [userdata:margintext]
\margindata
[inright]
[%style=\smallbodyfont,
style={\switchtobodyfont[9pt]},
width=\rightmarginwidth,
align={flushleft,broad}]
{{\bf Exemple — }\getinlineuserdata}
\stopsetups
\starttext
\startuserdata
]
\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
]
\stopxcell
\stopxrow
\startxrow [corner=01]
\startxcell
\getuserdata
\stopxcell
\stopxrow
\stopembeddedxtable
\stopsetups
\starttext
\startuserdata [example]
\startframedtext
\samplefile{klein}
\stopframedtext
\stopuserdata
\stoptext
Wolfgang
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
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
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
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
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
30 matches
Mail list logo