Hi all, I thought that \startbuffer and stopbuffer would cause grouping within the buffer. e.g. \startbuffer[mybuffer] \switchtobodyfont[small] a bunch of text \stopbuffer \starttext \section{First} \getbuffer[mybuffer] \section{Second} \getbuffer[mybuffer] \section{Third} \getbuffer[mybuffer] \section{Fourth} \getbuffer[mybuffer] \stoptext Compiling the above example results in a fontsiye decreasing step by step. I am using: ConTeXt ver: 2003.1.10 fmt: 2003.1.18 int: english mes: english How should I reverse to the originally setup fontsize: \setupbodyfont[ss,12pt] \starttext \section{One} text text \section{Two} \switchtobodyfont[small] much more text with need to typset in [small] \switchtobodyfont[normal] <------ This does not result in what I need.. \section{Four} text text Thanks for hints! Willi
Sunday, January 26, 2003 Willi Egger wrote: WE> Hi all, WE> I thought that \startbuffer and stopbuffer would cause grouping within the WE> buffer. e.g. WE> \startbuffer[mybuffer] WE> \switchtobodyfont[small] WE> a bunch of text WE> \stopbuffer WE> \starttext WE> \section{First} WE> \getbuffer[mybuffer] WE> \section{Second} WE> \getbuffer[mybuffer] WE> \section{Third} WE> \getbuffer[mybuffer] WE> \section{Fourth} WE> \getbuffer[mybuffer] WE> \stoptext WE> Compiling the above example results in a fontsiye decreasing step by step. WE> How should I reverse to the originally setup fontsize: Insert grouping by yourself: \startbuffer[mybuffer] \start\switchtobodyfont[small] a bunch of text \stop \stopbuffer -- Giuseppe "Oblomov" Bilotta
At 02:13 PM 1/26/2003 +0100, Giuseppe Bilotta wrote:
Sunday, January 26, 2003 Willi Egger wrote:
WE> Hi all,
WE> I thought that \startbuffer and stopbuffer would cause grouping within the WE> buffer. e.g.
WE> \startbuffer[mybuffer] WE> \switchtobodyfont[small] WE> a bunch of text WE> \stopbuffer
WE> \starttext WE> \section{First} WE> \getbuffer[mybuffer] WE> \section{Second} WE> \getbuffer[mybuffer] WE> \section{Third} WE> \getbuffer[mybuffer] WE> \section{Fourth} WE> \getbuffer[mybuffer] WE> \stoptext
WE> Compiling the above example results in a fontsiye decreasing step by step.
WE> How should I reverse to the originally setup fontsize:
Insert grouping by yourself:
\startbuffer[mybuffer] \start\switchtobodyfont[small] a bunch of text \stop \stopbuffer
or better: \start ..... \par \stop in order to get proper baselines, or \definebuffer[small] \setupbuffer[small][before=\start\small,after=\stop] \startsmall .... \stopsmall \getsmall or so Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On dimanche, jan 26, 2003, at 14:06 Europe/Paris, Willi Egger wrote:
Hi all,
I thought that \startbuffer and stopbuffer would cause grouping within the buffer. e.g.
\startbuffer[mybuffer] \switchtobodyfont[small] a bunch of text \stopbuffer
\starttext \section{First} \getbuffer[mybuffer] \section{Second} \getbuffer[mybuffer] \section{Third} \getbuffer[mybuffer] \section{Fourth} \getbuffer[mybuffer] \stoptext
Hi, Some time ago I encountered the same problem (ConTeXt ver: 2002.12.20 fmt: 2003.1.21 int: english mes: english) and since I didn't know whether this was a bug or some built in feature, I solved it by saying \startbuffer[mybuffer] \switchtobodyfont[small] This is the content of mybuffer supposed to be in smaller type\dots \setupbodyfont[ss,12pt] \stopbuffer \starttext \section{First} \getbuffer[mybuffer] \section{Second} \getbuffer[mybuffer] \section{Third} \getbuffer[mybuffer] \section{Fourth} \getbuffer[mybuffer] \stoptext I must admit that this is not a solution but a turn around! Best regards: OK
"Willi Egger"
I thought that \startbuffer and stopbuffer would cause grouping within the buffer. e.g.
that is what I've thought, too. You can of course say \setupbuffer[before=\bgroup,after=\egroup] to make them grouping. Patrick -- Just uploaded a new version of etexshow...
At 03:28 PM 1/26/2003 +0100, you wrote:
"Willi Egger"
writes: Hello Willi,
I thought that \startbuffer and stopbuffer would cause grouping within the buffer. e.g.
that is what I've thought, too.
wrong thought, that way we could do much less with them, for instance no style stuff, and far less use in my manuals where i use them all over the place -)
You can of course say
\setupbuffer[before=\bgroup,after=\egroup]
to make them grouping.
hm, better create a buffer instance then since i'm not sure what happens if *all* buffers get grouped. or use {\getbuffer} Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
participants (5)
-
Giuseppe Bilotta
-
Hans Hagen
-
Otared Kavian
-
Patrick Gundlach
-
Willi Egger