ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Buffers and grouping
@ 2003-01-26 13:06 Willi Egger
  2003-01-26 13:13 ` Giuseppe Bilotta
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Willi Egger @ 2003-01-26 13:06 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Buffers and grouping
  2003-01-26 13:06 Buffers and grouping Willi Egger
@ 2003-01-26 13:13 ` Giuseppe Bilotta
  2003-01-26 21:36   ` Hans Hagen
  2003-01-26 13:55 ` Otared Kavian
  2003-01-26 14:28 ` Patrick Gundlach
  2 siblings, 1 reply; 6+ messages in thread
From: Giuseppe Bilotta @ 2003-01-26 13:13 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Buffers and grouping
  2003-01-26 13:06 Buffers and grouping Willi Egger
  2003-01-26 13:13 ` Giuseppe Bilotta
@ 2003-01-26 13:55 ` Otared Kavian
  2003-01-26 14:28 ` Patrick Gundlach
  2 siblings, 0 replies; 6+ messages in thread
From: Otared Kavian @ 2003-01-26 13:55 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Buffers and grouping
  2003-01-26 13:06 Buffers and grouping Willi Egger
  2003-01-26 13:13 ` Giuseppe Bilotta
  2003-01-26 13:55 ` Otared Kavian
@ 2003-01-26 14:28 ` Patrick Gundlach
  2003-01-26 21:30   ` Hans Hagen
  2 siblings, 1 reply; 6+ messages in thread
From: Patrick Gundlach @ 2003-01-26 14:28 UTC (permalink / raw)


"Willi Egger" <w.egger@boede.nl> writes:

Hello Willi,


> 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...

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: Buffers and grouping
  2003-01-26 14:28 ` Patrick Gundlach
@ 2003-01-26 21:30   ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2003-01-26 21:30 UTC (permalink / raw)


At 03:28 PM 1/26/2003 +0100, you wrote:
>"Willi Egger" <w.egger@boede.nl> 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
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Buffers and grouping
  2003-01-26 13:13 ` Giuseppe Bilotta
@ 2003-01-26 21:36   ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2003-01-26 21:36 UTC (permalink / raw)


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
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-01-26 21:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-26 13:06 Buffers and grouping Willi Egger
2003-01-26 13:13 ` Giuseppe Bilotta
2003-01-26 21:36   ` Hans Hagen
2003-01-26 13:55 ` Otared Kavian
2003-01-26 14:28 ` Patrick Gundlach
2003-01-26 21:30   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).