* Defined and not defined and better be done global
@ 2013-04-26 20:43 Cecil Westerhof
2013-04-26 22:19 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Cecil Westerhof @ 2013-04-26 20:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
When running ConTeXt I see a lot of this kind of messages:
fonts > bodyfont 15pt is defined (can better be done global)
fonts > bodyfont 1.25em is defined (can better be done global)
fonts > bodyfont 1.25em is not defined
fonts > bodyfont 1.25em is defined (can better be done global)
fonts > bodyfont 15pt is defined (can better be done global)
fonts > bodyfont 1.25em is defined (can better be done global)
fonts > bodyfont 1.25em is not defined
fonts > bodyfont 1.25em is defined (can better be done global)
fonts > bodyfont 15pt is defined (can better be done global)
fonts > bodyfont 1.25em is defined (can better be done global)
fonts > bodyfont 1.25em is not defined
What am I doing wrong?
--
Cecil Westerhof
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Defined and not defined and better be done global
2013-04-26 20:43 Defined and not defined and better be done global Cecil Westerhof
@ 2013-04-26 22:19 ` Hans Hagen
2013-04-27 9:44 ` Cecil Westerhof
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2013-04-26 22:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 4/26/2013 10:43 PM, Cecil Westerhof wrote:
> When running ConTeXt I see a lot of this kind of messages:
> fonts > bodyfont 15pt is defined (can better be done global)
> fonts > bodyfont 1.25em is defined (can better be done global)
> fonts > bodyfont 1.25em is not defined
> fonts > bodyfont 1.25em is defined (can better be done global)
> fonts > bodyfont 15pt is defined (can better be done global)
> fonts > bodyfont 1.25em is defined (can better be done global)
> fonts > bodyfont 1.25em is not defined
> fonts > bodyfont 1.25em is defined (can better be done global)
> fonts > bodyfont 15pt is defined (can better be done global)
> fonts > bodyfont 1.25em is defined (can better be done global)
> fonts > bodyfont 1.25em is not defined
>
> What am I doing wrong?
switching a bodyfont with an undefined bodyfontenvironment inside a
group, which is very inefficient
(and a 1.5em bodyfont switch can probably better be replaced by a direct
font definition)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Defined and not defined and better be done global
2013-04-26 22:19 ` Hans Hagen
@ 2013-04-27 9:44 ` Cecil Westerhof
0 siblings, 0 replies; 3+ messages in thread
From: Cecil Westerhof @ 2013-04-27 9:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
2013/4/27 Hans Hagen <pragma@wxs.nl>:
> On 4/26/2013 10:43 PM, Cecil Westerhof wrote:
>>
>> When running ConTeXt I see a lot of this kind of messages:
>> fonts > bodyfont 15pt is defined (can better be done global)
>> fonts > bodyfont 1.25em is defined (can better be done global)
>> fonts > bodyfont 1.25em is not defined
>> fonts > bodyfont 1.25em is defined (can better be done global)
>> fonts > bodyfont 15pt is defined (can better be done global)
>> fonts > bodyfont 1.25em is defined (can better be done global)
>> fonts > bodyfont 1.25em is not defined
>> fonts > bodyfont 1.25em is defined (can better be done global)
>> fonts > bodyfont 15pt is defined (can better be done global)
>> fonts > bodyfont 1.25em is defined (can better be done global)
>> fonts > bodyfont 1.25em is not defined
>>
>> What am I doing wrong?
>
>
> switching a bodyfont with an undefined bodyfontenvironment inside a group,
> which is very inefficient
>
> (and a 1.5em bodyfont switch can probably better be replaced by a direct
> font definition)
I will look into the bodyenvironment stuff. Is not much to go on. :-(
Had to delve into what I am doing. Was a ‘little while ago’ I wrote it.
I thought that 1.5em was used for relative definitions. I have a inc
file that I use. In this I have:
\def\Title{\dodoubleempty\doTitle}
\def\doTitle[#1][#2]{
\ifsecondargument
\testpage[#2]
\else
\testpage[15]
\fi
\startalignment[center]
{
\myblank[2*big]
\switchtobodyfont[1.5em]
\bf\em#1
}
\myblank
\stopalignment
}
In this case I have in my mane document:
\input /home/cecil/ConTeXt-inc/standard-init.inc
\setupbodyfont[palatino,10pt]
What would be a better way to do this? I prefer my include file
deciding the increase of the font.
--
Cecil Westerhof
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-27 9:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-26 20:43 Defined and not defined and better be done global Cecil Westerhof
2013-04-26 22:19 ` Hans Hagen
2013-04-27 9:44 ` Cecil Westerhof
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).