I am learning ConTeXt (and so far it is a great experience!); however, while making notes and tests with "ConTeXt: An Excursion," and occasionally looking to into reference manual, I have hit into following:
Command \setupframedtextsshould work as follows: \setupframedtexts[name][..=..] (according to reference manual), but it ignores the name (and if name is provided it results to defaults).
Or am I making syntactical error somewhere?
MWE:
\setupframedtexts[myFrame][frame=off,topframe=on,bottomframe=on,width=\textwidth] \starttext \startframedtext[myFrame] \input Knuth \stopframedtext \stoptext I also want to use ConTeXt setups like so:
\setupsomething[mything] [settings] \setupsomethingelse[myanotherthing] [settings, setting={\something[mything]}] For example:
\setupframedtexts[mySectionFrame] [frame=off, topframe=on, bottomframe=on, width=\textwidth] \definehead[mySection][section] \setuphead[mySection] [numberstyle=bold, textstyle=bold, before=\vskip 2\baselineskip{\startframedtext[mySectionFrame]} after=\stopframedtext\vskip\baselineskip] My question originated from this situation.
This might be considered as two questions in one, but they are (pretty much) related, so I hoope it doesnt mind.
Final note: I know, that reference manual is not perfectly up-to-date, but behaviour that would accept named argument (to me) makes more sense.
\defineframedtext[myFrame] \setupframedtext[myFrame][frame=off,topframe=on,bottomframe=on,width=\textwidth] \starttext \startmyFrame \input Knuth \stopmyFrame \stoptextYou have to define your framed text first.\setupframedtext, in singular, is enough. A functional example:\defineframedtext[myFrame] \setupframedtext[myFrame][frame=off,topframe=on,bottomframe=on,width=\textwidth] \definehead[mySection][section] \setuphead[mySection] [numberstyle=\bf, textstyle=\bf, before={\vskip 2\baselineskip \startmyFrame}, after={\stopmyFrame\vskip\baselineskip}] \starttext \startmyFrame \input Knuth \stopmyFrame \startmySection \input zapf \stopmySection \stoptext