ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \definebodyfont not working for \typesetbuffer
@ 2016-10-16 17:56 Pablo Rodriguez
  2016-10-16 17:59 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2016-10-16 17:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the following sample:

    \definebodyfont[17pt]
    \startbuffer[buffer:inside]
        \definefontfamily[mainface][rm][TeX Gyre Pagella]
        \setupbodyfont[mainface, 17pt]
        \starttext
        \input zapf
        \stoptext
    \stopbuffer
    \starttext
    \typesetbuffer[buffer:inside]
    \stoptext

As suggested by Wolfgang, \definebodyfont should work. It worked then
(https://mailman.ntg.nl/pipermail/ntg-context/2016/085260.html), but it
doesn’t work with latest beta from 2016.10.14 17:19.

Could you confirm whether it is a bug or I am missing something?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \definebodyfont not working for \typesetbuffer
  2016-10-16 17:56 \definebodyfont not working for \typesetbuffer Pablo Rodriguez
@ 2016-10-16 17:59 ` Wolfgang Schuster
  2016-10-16 18:07   ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2016-10-16 17:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 853 bytes --]

> Pablo Rodriguez <mailto:oinos@gmx.es>
> 16. Oktober 2016 um 19:56
> Dear list,
>
> I have the following sample:
>
> \definebodyfont[17pt]
> \startbuffer[buffer:inside]
> \definefontfamily[mainface][rm][TeX Gyre Pagella]
> \setupbodyfont[mainface, 17pt]
> \starttext
> \input zapf
> \stoptext
> \stopbuffer
> \starttext
> \typesetbuffer[buffer:inside]
> \stoptext
>
> As suggested by Wolfgang, \definebodyfont should work. It worked then
> (https://mailman.ntg.nl/pipermail/ntg-context/2016/085260.html), but it
> doesn’t work with latest beta from 2016.10.14 17:19.
>
> Could you confirm whether it is a bug or I am missing something?
You have to put the command in the buffer because \typesetbuffer saves
the content in a external file and which is then processed as separate
document which doesn’t use settings from the main document.

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2040 bytes --]

[-- Attachment #2: Type: text/plain, Size: 489 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \definebodyfont not working for \typesetbuffer
  2016-10-16 17:59 ` Wolfgang Schuster
@ 2016-10-16 18:07   ` Pablo Rodriguez
  2016-10-16 18:16     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2016-10-16 18:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10/16/2016 07:59 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 16. Oktober 2016 um 19:56
>> [...]
>> As suggested by Wolfgang, \definebodyfont should work. It worked then
>> (https://mailman.ntg.nl/pipermail/ntg-context/2016/085260.html), but it
>> doesn’t work with latest beta from 2016.10.14 17:19.
>>
>> Could you confirm whether it is a bug or I am missing something?
> 
> You have to put the command in the buffer because \typesetbuffer saves
> the content in a external file and which is then processed as separate
> document which doesn’t use settings from the main document.

Wolfgang,

I did it before sending the message and it didn’t work.

    \startbuffer[buffer:inside]
        \definebodyfont[17pt]
        \definefontfamily[mainface][rm][TeX Gyre Pagella]
        \setupbodyfont[mainface, 17pt]
        \starttext
        \input zapf
        \stoptext
    \stopbuffer
    \starttext
    \typesetbuffer[buffer:inside]
    \stoptext

Neither does it work now.

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \definebodyfont not working for \typesetbuffer
  2016-10-16 18:07   ` Pablo Rodriguez
@ 2016-10-16 18:16     ` Wolfgang Schuster
  2016-10-16 18:56       ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2016-10-16 18:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 473 bytes --]

> Pablo Rodriguez <mailto:oinos@gmx.es>
> 16. Oktober 2016 um 20:07
>
> Wolfgang,
>
> I did it before sending the message and it didn’t work.
>
> \startbuffer[buffer:inside]
> \definebodyfont[17pt]
> \definefontfamily[mainface][rm][TeX Gyre Pagella]
> \setupbodyfont[mainface, 17pt]
> \starttext
> \input zapf
> \stoptext
> \stopbuffer
> \starttext
> \typesetbuffer[buffer:inside]
> \stoptext
>
> Neither does it work now.
Use \definebodyfontenvironment[17pt].

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1552 bytes --]

[-- Attachment #2: Type: text/plain, Size: 489 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: \definebodyfont not working for \typesetbuffer
  2016-10-16 18:16     ` Wolfgang Schuster
@ 2016-10-16 18:56       ` Pablo Rodriguez
  0 siblings, 0 replies; 5+ messages in thread
From: Pablo Rodriguez @ 2016-10-16 18:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10/16/2016 08:16 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 16. Oktober 2016 um 20:07
>> [...]
>> Neither does it work now.
> 
> Use \definebodyfontenvironment[17pt].

Many thanks for your fast reply, Wolfgang.

It works as expected.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2016-10-16 18:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-16 17:56 \definebodyfont not working for \typesetbuffer Pablo Rodriguez
2016-10-16 17:59 ` Wolfgang Schuster
2016-10-16 18:07   ` Pablo Rodriguez
2016-10-16 18:16     ` Wolfgang Schuster
2016-10-16 18:56       ` Pablo Rodriguez

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