[NTG-context] apply typing environment to \typebuffer

Pablo Rodriguez oinos at gmx.es
Wed Jan 15 20:42:31 CET 2014


On 01/15/2014 01:12 AM, Marco Patzer wrote:
> On 2014–01–14 Pablo Rodriguez wrote:
> 
>> I have a presentation that defines a typing environment and I would like
>> to know who to apply it to \typebuffer.
> 
> Use:
> 
>   \setuptyping
>     [buffer]
>     [option=TEX]

Many thanks for your reply, Marco.

This is exactly what I wanted. Although I’m afraid that this breaks the
\typesetbuffer (since it typesets an empty buffer).

Here is a more detailed sample:

\definetyping[buffer][option=TEX,before=\startframedtext,after=\stopframedtext]
\setuptyping[buffer][style=\tt\setupinterlinespace,align={right,broad}]

\starttext
\startbuffer[basic-document]
\mainlanguage[es]
\setuppapersize[A5,landscape]
\setuppagenumbering[location=bottom]

\starttext

\chapter{Introducción}

\ConTeXt\ is {\en\em a document generation system}.

\stoptext
\stopbuffer

\typebuffer[basic-document]

\typesetbuffer[basic-document][frame=on,scale=750]

\stoptext

I guess this might be a bug.

Could anyone confirm this?


Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list