Re: [NTG-context] Problem using \scale

2023-02-10 Thread Bruce Horrocks via ntg-context

> On 10 Feb 2023, at 09:20, Hans Hagen via ntg-context  
> wrote:

[snip]

Thank-you Hans, these work great - so well in fact that now I've seen the 
output I've come to the conclusion that the scaled text would be too small and 
what I should really do is flag the one or two addresses in our mailing list 
that have long lines and print them on larger labels in a separate run. :-)

—
Bruce Horrocks
Hampshire, UK

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Problem using \scale

2023-02-10 Thread Hans Hagen via ntg-context

On 2/9/2023 10:42 PM, Bruce Horrocks via ntg-context wrote:

I'm printing address labels. Sometimes an address has a long line that is too 
long to fit on the label with the result that it wraps. Instead of wrapping, I 
thought it would be nice to try and auto-scale the label and shrink it so that 
the long line just fits.

I'm using \crlf to break the address into lines and this doesn't play well with 
the \scale command, see MWE below, where the second frame is just one long line 
as the \crlf's seem to be ignored.

Is there a simple solution that allows \crlf and also scale?

\starttext
\startbuffer[address]
Name \crlf
Address 1 \crlf
A long line that wraps \crlf
Town \crlf
Postcode
\stopbuffer
\framed[width=3cm,align=flushleft]{\getbuffer[address]}
\framed[width=3cm,align=flushleft]{\scale[factor=fit]{\getbuffer[address]}}
\stoptext

\starttext

\startbuffer[address]
Name
Address 1
A long line that wraps
Town
Postcode
\stopbuffer

\framed
  [align=flushleft,strut=no]
  {\startlines[before=,after=]
   \getbuffer[address]
   \stoplines}

\scale
  [width=3cm]
  {\framed
 [align=flushleft,strut=no]
 {\startlines[before=,after=]
  \getbuffer[address]
  \stoplines}}

\stoptext

You can of course adapt the font size instead but as it's just stickers 
the above is probably good enough, but you can do this:


\begingroup
\doloop {
\setbox\scratchbox\hbox\bgroup\framed
  [align={flushleft},strut=no]
  {\startlines[before=,after=]
   \getbuffer[address]
   \stoplines}
\egroup
\ifdim\wd\scratchbox>3cm
  \advance\glyphscale by -50
\else
  \box\scratchbox
  \exitloop
\fi
}
\endgroup

to get more consistent stepwise scaling or even this:

\begingroup
\doloop {
\setbox\scratchbox\hbox\bgroup\framed
  [align={flushleft},strut=no]
  {\startlines[before=,after=]
   \getbuffer[address]
   \stoplines}
\egroup
\ifdim\wd\scratchbox>3cm
  \advance\glyphxscale by -50
\else
  \framed
[align={flushleft},strut=no,width=3cm]
{\startlines[before=,after=]
 \getbuffer[address]
 \stoplines}
  \exitloop
\fi
}
\endgroup

which is what i might choose eventually (i'll add it to the test suite)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Problem using \scale

2023-02-09 Thread Henning Hraban Ramm via ntg-context

Am 09.02.23 um 22:42 schrieb Bruce Horrocks via ntg-context:

I'm printing address labels. Sometimes an address has a long line that is too 
long to fit on the label with the result that it wraps. Instead of wrapping, I 
thought it would be nice to try and auto-scale the label and shrink it so that 
the long line just fits.

I'm using \crlf to break the address into lines and this doesn't play well with 
the \scale command, see MWE below, where the second frame is just one long line 
as the \crlf's seem to be ignored.

Is there a simple solution that allows \crlf and also scale?

\starttext
\startbuffer[address]
Name \crlf
Address 1 \crlf
A long line that wraps \crlf
Town \crlf
Postcode
\stopbuffer
\framed[width=3cm,align=flushleft]{\getbuffer[address]}
\framed[width=3cm,align=flushleft]{\scale[factor=fit]{\getbuffer[address]}}
\stoptext


Did you try \framedtext instead of \framed? (I didn’t test.)

Hraban

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Problem using \scale

2023-02-09 Thread Bruce Horrocks via ntg-context
I'm printing address labels. Sometimes an address has a long line that is too 
long to fit on the label with the result that it wraps. Instead of wrapping, I 
thought it would be nice to try and auto-scale the label and shrink it so that 
the long line just fits.

I'm using \crlf to break the address into lines and this doesn't play well with 
the \scale command, see MWE below, where the second frame is just one long line 
as the \crlf's seem to be ignored.

Is there a simple solution that allows \crlf and also scale?

\starttext
\startbuffer[address]
Name \crlf
Address 1 \crlf
A long line that wraps \crlf
Town \crlf
Postcode
\stopbuffer
\framed[width=3cm,align=flushleft]{\getbuffer[address]}
\framed[width=3cm,align=flushleft]{\scale[factor=fit]{\getbuffer[address]}}
\stoptext


—
Bruce Horrocks
Hampshire, UK

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] interactive link area and scale in LMTX

2019-05-19 Thread Pablo Rodriguez
On 5/18/19 11:00 PM, Hans Hagen wrote:
> On 5/18/2019 7:12 PM, Pablo Rodriguez wrote:
>> [...]
>> Interactive link areas are fine in latest beta (2019.05.18 10:57) with
>> LuaTeX-1.10, but with LuaTeX-2.0, they aren’t scaled.
>>
>> Could anyone confirm the issue?
> fixed in next beta

Hans,

many thanks for your fix.

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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] interactive link area and scale in LMTX

2019-05-18 Thread Hans Hagen

On 5/18/2019 7:12 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \setupinteraction[state=start]

 \enabledirectives[references.border]

 \def\mypersonalurl#1{\bgroup%
 \tt\goto{\hyphenatedurl{#1}}[url(#1)]\egroup}%
 \unexpanded\def\href#1#2{\goto{#2} [url(#1)]}

 \starttext
 \mypersonalurl{wiki.contextgarden.net}

 \scale[width=.5\textwidth]
 {\mypersonalurl{wiki.contextgarden.net}}
 \stoptext

Interactive link areas are fine in latest beta (2019.05.18 10:57) with
LuaTeX-1.10, but with LuaTeX-2.0, they aren’t scaled.

Could anyone confirm the issue?

fixed in next beta

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] interactive link area and scale in LMTX

2019-05-18 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setupinteraction[state=start]

\enabledirectives[references.border]

\def\mypersonalurl#1{\bgroup%
\tt\goto{\hyphenatedurl{#1}}[url(#1)]\egroup}%
\unexpanded\def\href#1#2{\goto{#2} [url(#1)]}

\starttext
\mypersonalurl{wiki.contextgarden.net}

\scale[width=.5\textwidth]
{\mypersonalurl{wiki.contextgarden.net}}
\stoptext

Interactive link areas are fine in latest beta (2019.05.18 10:57) with
LuaTeX-1.10, but with LuaTeX-2.0, they aren’t scaled.

Could anyone confirm the issue?

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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Alan Braslau
On Sun, 8 Jul 2018 11:21:55 +0200
Hans Hagen  wrote:

> the "externalfigure" variant is an old one that had to deal with 
> dimensions in a way that avoids overflows
> 
> in a future context (read luatex 1.09+) we go one-pass-mp so we can
> have a different approach (i never wanted to add a ton of code for
> images) so there externalfigure will scale proportionally too

ConTeXt running on the luatex experimental branch under development
indeed works with one-pass-MP calculations as opposed to the two-pass
mechanism that is standard today. For documents with extensive and
complicated MP graphics, this yields a huge gain. Hans is at present
working out all side-effects (such as recursive MP/TeX/lua calls) and is
cleaning up some old ways of doing things that date from mkii. This
might seem somewhat minor but is really exciting for those who use a
lot of graphics and MetaPost effects.

Alan
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Hans Hagen

On 7/8/2018 11:02 AM, Marco Patzer wrote:

On Sun, 8 Jul 2018 10:39:52 +0200
Hans Hagen  wrote:


On 7/8/2018 1:45 AM, Marco Patzer wrote:

On Sat, 7 Jul 2018 14:27:38 -0600
Alan Braslau  wrote:
   

For "historic" reasons,
  draw externalfigure "cow" scaled 5cm ;
normalizes the figure to a square. This will not be changed as it
is a very old feature of MetaFun.

The solution is
  draw rawtextext("\externalfigure[cow]") xsized 5cm ;
where one can use xsized, ysized or xysized (taking a pair).


That works indeed. Thanks.

draw figure "" ...


That's what I was looking for. Thanks.
the "externalfigure" variant is an old one that had to deal with 
dimensions in a way that avoids overflows


in a future context (read luatex 1.09+) we go one-pass-mp so we can have 
a different approach (i never wanted to add a ton of code for images) so 
there externalfigure will scale proportionally too


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Marco Patzer
On Sun, 8 Jul 2018 10:39:52 +0200
Hans Hagen  wrote:

> On 7/8/2018 1:45 AM, Marco Patzer wrote:
> > On Sat, 7 Jul 2018 14:27:38 -0600
> > Alan Braslau  wrote:
> >   
> >> For "historic" reasons,
> >>  draw externalfigure "cow" scaled 5cm ;
> >> normalizes the figure to a square. This will not be changed as it
> >> is a very old feature of MetaFun.
> >>
> >> The solution is
> >>  draw rawtextext("\externalfigure[cow]") xsized 5cm ;
> >> where one can use xsized, ysized or xysized (taking a pair).  
> > 
> > That works indeed. Thanks.  
> draw figure "" ...

That's what I was looking for. Thanks.

Marco
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-08 Thread Hans Hagen

On 7/8/2018 1:45 AM, Marco Patzer wrote:

On Sat, 7 Jul 2018 14:27:38 -0600
Alan Braslau  wrote:


For "historic" reasons,
 draw externalfigure "cow" scaled 5cm ;
normalizes the figure to a square. This will not be changed as it is a
very old feature of MetaFun.

The solution is
 draw rawtextext("\externalfigure[cow]") xsized 5cm ;
where one can use xsized, ysized or xysized (taking a pair).


That works indeed. Thanks.

draw figure "" ...



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Marco Patzer
On Sat, 7 Jul 2018 14:27:38 -0600
Alan Braslau  wrote:

> For "historic" reasons,
> draw externalfigure "cow" scaled 5cm ;
> normalizes the figure to a square. This will not be changed as it is a
> very old feature of MetaFun.
> 
> The solution is
> draw rawtextext("\externalfigure[cow]") xsized 5cm ;
> where one can use xsized, ysized or xysized (taking a pair).

That works indeed. Thanks.

Marco
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Marco Patzer
On Sat, 7 Jul 2018 22:27:51 +0200
Hans Hagen  wrote:

> On 7/7/2018 8:58 PM, Marco Patzer wrote:
> > Hi!
> > 
> > How to scale an image in MetaPost, maintaining the aspect ratio
> > (without specifying the height explicitly)?
> > 
> > Example:
> > 
> > \setupexternalfigures [location=default]
> > \starttext
> >\externalfigure [cow][width=5cm]
> > 
> >\startMPcode
> >  draw externalfigure "cow" scaled 5cm;
> >\stopMPcode
> > \stoptext
> it's all in the metafun manual

No doubts about that. It's more a matter of knowing what to search
for.

> xsized 5cm

I tried it, same result - square image:

  draw externalfigure "cow" xsized 5cm;

As Alan mentioned including the image with textext() works. Not as
elegant, but it gets the job done.

Marco
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Hans Hagen

On 7/7/2018 8:58 PM, Marco Patzer wrote:

Hi!

How to scale an image in MetaPost, maintaining the aspect ratio
(without specifying the height explicitly)?

Example:

\setupexternalfigures [location=default]
\starttext
   \externalfigure [cow][width=5cm]

   \startMPcode
 draw externalfigure "cow" scaled 5cm;
   \stopMPcode
\stoptext

it's all in the metafun manual

xsized 5cm

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Alan Braslau
On Sat, 7 Jul 2018 20:58:40 +0200
Marco Patzer  wrote:

> Hi!
> 
> How to scale an image in MetaPost, maintaining the aspect ratio
> (without specifying the height explicitly)?
> 
> Example:
> 
> \setupexternalfigures [location=default]
> \starttext
>   \externalfigure [cow][width=5cm]
> 
>   \startMPcode
> draw externalfigure "cow" scaled 5cm;
>   \stopMPcode
> \stoptext

For "historic" reasons,
draw externalfigure "cow" scaled 5cm ;
normalizes the figure to a square. This will not be changed as it is a
very old feature of MetaFun.

The solution is
draw rawtextext("\externalfigure[cow]") xsized 5cm ;
where one can use xsized, ysized or xysized (taking a pair).

Alan
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Scale image in MetaPost, maintaining aspect ratio

2018-07-07 Thread Marco Patzer
Hi!

How to scale an image in MetaPost, maintaining the aspect ratio
(without specifying the height explicitly)?

Example:

\setupexternalfigures [location=default]
\starttext
  \externalfigure [cow][width=5cm]

  \startMPcode
draw externalfigure "cow" scaled 5cm;
  \stopMPcode
\stoptext

Marco
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to scale math with text?

2018-06-06 Thread Aditya Mahajan

On Tue, 5 Jun 2018, Alan Braslau wrote:


The "style=" use is, in general, preferable for tagging (and
exporting). For less than paragraph switching, the use of
\definehighlight for example could be used.

Quick and dirty font switching is almost always poor usage...


You didn't read the first paragraph of my article :-)

Aditya
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to scale math with text?

2018-06-05 Thread Alan Braslau
The "style=" use is, in general, preferable for tagging (and
exporting). For less than paragraph switching, the use of
\definehighlight for example could be used.

Quick and dirty font switching is almost always poor usage...

Alan

On Tue, 5 Jun 2018 12:57:59 -0400 (EDT)
Aditya Mahajan  wrote:

> On Mon, 4 Jun 2018, Alan Braslau wrote:
> 
> > On Tue, 5 Jun 2018 10:37:12 +1200
> > Henri Menke  wrote:
> >  
> >> Dear list,
> >> 
> >> probably I'm just missing something obvious.  How can I scale the
> >> math font size to match the text font size locally?  In the
> >> following MWE text is scaled to 10pt but math still appears at
> >> 12pt.
> >> 
> >> \starttext
> >> {\tfx ABC $DEF$ GHI\par}
> >> \stoptext  
> >
> > I believe that the "proper" way would be:
> >
> > \starttext
> >
> > \startparagraph [style=small]
> > ABC $DEF$ GHI
> > \stopparagraph
> >
> > \stoptext  
> 
> Or, \switchtobodyfotn[small] etc. This is what I had written in the 
> tugboat article on font switching (wikified at 
> http://wiki.contextgarden.net/Font_Switching)
> 
> "These quick font switches are meant for changing the font style, 
> alternative, or size of a few words: they do not change the bodyfont,
> so they don't affect interline spacing or math font sizes. So, if you
> want to change the font size of an entire paragraph, use
> \switchtobodyfont described below in Complete Font Change. However,
> it is fine to use them as style directives in setup commands, that
> is, using them as an option for style=... in any setup command that
> accepts style option. "
> 
> Please feel free to change the phrasing if it is not clear.
> 
> Aditya
> ___
> 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  :
> https://bitbucket.org/phg/context-mirror/commits/ wiki :
> http://contextgarden.net
> ___
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to scale math with text?

2018-06-05 Thread Aditya Mahajan

On Mon, 4 Jun 2018, Alan Braslau wrote:


On Tue, 5 Jun 2018 10:37:12 +1200
Henri Menke  wrote:


Dear list,

probably I'm just missing something obvious.  How can I scale the
math font size to match the text font size locally?  In the following
MWE text is scaled to 10pt but math still appears at 12pt.

\starttext
{\tfx ABC $DEF$ GHI\par}
\stoptext


I believe that the "proper" way would be:

\starttext

\startparagraph [style=small]
ABC $DEF$ GHI
\stopparagraph

\stoptext


Or, \switchtobodyfotn[small] etc. This is what I had written in the 
tugboat article on font switching (wikified at 
http://wiki.contextgarden.net/Font_Switching)


"These quick font switches are meant for changing the font style, 
alternative, or size of a few words: they do not change the bodyfont, so 
they don't affect interline spacing or math font sizes. So, if you want to 
change the font size of an entire paragraph, use \switchtobodyfont 
described below in Complete Font Change. However, it is fine to use them 
as style directives in setup commands, that is, using them as an option 
for style=... in any setup command that accepts style option. "


Please feel free to change the phrasing if it is not clear.

Aditya
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] How to scale math with text?

2018-06-04 Thread Alan Braslau
On Tue, 5 Jun 2018 10:37:12 +1200
Henri Menke  wrote:

> Dear list,
> 
> probably I'm just missing something obvious.  How can I scale the
> math font size to match the text font size locally?  In the following
> MWE text is scaled to 10pt but math still appears at 12pt.
> 
> \starttext
> {\tfx ABC $DEF$ GHI\par}
> \stoptext

I believe that the "proper" way would be:

\starttext

\startparagraph [style=small]
ABC $DEF$ GHI
\stopparagraph

\stoptext
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] How to scale math with text?

2018-06-04 Thread Henri Menke

Dear list,

probably I'm just missing something obvious.  How can I scale the math 
font size to match the text font size locally?  In the following MWE 
text is scaled to 10pt but math still appears at 12pt.


\starttext
{\tfx ABC $DEF$ GHI\par}
\stoptext

Cheers, Henri
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Scale figure to fill a box

2018-02-04 Thread Wolfgang Schuster

Hi Hans,

I want to use a few graphics as page backgrounds but with the \scale command
the image always stays within the borders of the page.

Can you add a command (probably easier than adding such a function to 
\scale)

which does as same as in the second row of the example below where the image
extends outside of the borders of the frame. A option to clip parts – 
which can be
disabled – of the image which are outside of the frame would be a nice 
extension

to this command (e.g. in case you want a image in a table cell).


\setupexternalfigure[location=default]

\defineframed
  [PageBorder]
  [offset=overlay,
   rulethickness=2pt,
   framecolor=red,
   width=6cm,
   height=6cm]

\starttext

\startcombination[nx=2,ny=1,distance=4cm]
  {\PageBorder{\externalfigure[hacker][factor=fit]}}{}
  {\PageBorder{\externalfigure[mill]  [factor=fit]}}{}
\stopcombination

\blank[4cm]

\startcombination[nx=2,ny=1,distance=4cm]
  {\PageBorder{\clap{\externalfigure[hacker][height=6cm]}}}{}
  {\PageBorder  {\externalfigure[mill]   [width=6cm]}}  {}
\stopcombination

\stoptext


Wolfgang
___
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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] (bug?) interactive link areas and \scale

2016-02-03 Thread Hans Hagen

On 2/1/2016 7:37 PM, Pablo Rodriguez wrote:

Dear list,

[Sorry for sending many bug reports at once, but I’m not at home. I
have my laptop and I’m working with it. Internet access is extremely
limited here. I work offline and prepare all messages to be sent later
when I can get some internet connection.]

I have the following sample:

 \setupinteraction[state=start]

 \enabledirectives[references.border]

 \def\mypersonalurl#1{\bgroup%
 \tt\goto{\hyphenatedurl{#1}}[url(#1)]\egroup}%
 \unexpanded\def\href#1#2{\goto{#2} [url(#1)]}

 \starttext
 \mypersonalurl{wiki.contextgarden.net}

 \scale[width=.5\textwidth]
 {\mypersonalurl{wiki.contextgarden.net}}
 \stoptext

The link area in latest beta is wrong when \scale is used (second
link).

Link area is fine with latest stable and beta from 2015.11.19 19:13. I
don’t have all betas, but it appears in beta from 2015.12.20 00:29.


bug in luatex engine ... so you have to wait for an update

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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
___

[NTG-context] (bug?) interactive link areas and \scale

2016-02-02 Thread Pablo Rodriguez
Dear list,

[Sorry for sending many bug reports at once, but I’m not at home. I
have my laptop and I’m working with it. Internet access is extremely
limited here. I work offline and prepare all messages to be sent later
when I can get some internet connection.]

I have the following sample:

\setupinteraction[state=start]

\enabledirectives[references.border]

\def\mypersonalurl#1{\bgroup%
\tt\goto{\hyphenatedurl{#1}}[url(#1)]\egroup}%
\unexpanded\def\href#1#2{\goto{#2} [url(#1)]}

\starttext
\mypersonalurl{wiki.contextgarden.net}

\scale[width=.5\textwidth]
{\mypersonalurl{wiki.contextgarden.net}}
\stoptext

The link area in latest beta is wrong when \scale is used (second
link).

Link area is fine with latest stable and beta from 2015.11.19 19:13. I
don’t have all betas, but it appears in beta from 2015.12.20 00:29.

Could anyone confirm the bug?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Protrusion and \scale

2015-12-15 Thread Marc Trius

Hello,

I'm using \scale to scale up a headline to the width of the entire 
paragraph, like so:



\definefontfeature
[default]
[default]
[protrusion=quality,expansion=quality]

\def\scaleHead#1%
{\scale[width=\textwidth]{#1}}

\setuphead[subject]
[textcommand=\scaleHead]

\starttext

\subject{Call me Ishmael.}

Some years ago—never mind how long precisely—having little or no money in
my purse, and nothing particular to interest me on shore, I thought I
would sail about a little and see the watery part of the world. It is a
way I have of driving off the spleen and regulating the circulation.

\stoptext


My problem is that I would like the period at the end of the first line 
to hang, the same way I would get in the text body, and I can't figure 
out how. What would be the correct way to accomplish this?


Thank you,
Marc Trius
___
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
___

Re: [NTG-context] Protrusion and \scale

2015-12-15 Thread Hans Hagen

On 12/15/2015 8:46 AM, Marc Trius wrote:

Hello,

I'm using \scale to scale up a headline to the width of the entire
paragraph, like so:


\definefontfeature
[default]
[default]
[protrusion=quality,expansion=quality]

\def\scaleHead#1%
{\scale[width=\textwidth]{#1}}

\setuphead[subject]
[textcommand=\scaleHead]

\starttext

\subject{Call me Ishmael.}

Some years ago—never mind how long precisely—having little or no money in
my purse, and nothing particular to interest me on shore, I thought I
would sail about a little and see the watery part of the world. It is a
way I have of driving off the spleen and regulating the circulation.

\stoptext


My problem is that I would like the period at the end of the first line
to hang, the same way I would get in the text body, and I can't figure
out how. What would be the correct way to accomplish this?


that would only work if you typeset with a \hsize that is exactly the 
length of the title which in turn means that you have to adapt the font 
size and even then tex will probably squeeze the spacing first


so the best is:

\subject{Call me Ishmael\rlap{.}}



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

[NTG-context] How to scale an external figure from lua ?

2015-11-09 Thread josephcanedo
Dear all,


I am trying to write some lua code that loads some pdf file and scales it. I 
have the following code (got from previous question here to get number of pages 
from a pdf and from source files).


 local figure = figures.push { name = filename, scale = N } -- scale value does 
not seem to be taken in account
 assert(figure, 'Could not load figure from file ' .. filename)
 figures.identify()
 figures.check()
 figures.dummy() -- needed ?
 figures.scale() -- how to pass the scaling factor ?
 local d = figures.done()
 print('Scales ' .. figure.status.xscale .. ' ' .. figure.status.yscale) -- 
outputs Scales 1 1
 figures.pop()




Hoping that’s possible to do in lua code and my questions are not too dumb 
(still a beginner in ConTeXt).




Many thanks for your help,


Best regards


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

Re: [NTG-context] How to scale an external figure from lua ?

2015-11-09 Thread josephcanedo
More precisely, I would like to get width and height of the scaled figure 
Inside lua code, to perform some checks.

Thanks again


Joseph





From: josephcan...@gmail.com
Sent: ‎Monday‎, ‎November‎ ‎9‎, ‎2015 ‎10‎:‎12‎ ‎PM
To: ntg-context@ntg.nl





Dear all,




I am trying to write some lua code that loads some pdf file and scales it. I 
have the following code (got from previous question here to get number of pages 
from a pdf and from source files).




 local figure = figures.push { name = filename, scale = N } -- scale value does 
not seem to be taken in account
 assert(figure, 'Could not load figure from file ' .. filename)
 figures.identify()
 figures.check()
 figures.dummy() -- needed ?
 figures.scale() -- how to pass the scaling factor ?
 local d = figures.done()
 print('Scales ' .. figure.status.xscale .. ' ' .. figure.status.yscale) -- 
outputs Scales 1 1
 figures.pop()






Hoping that’s possible to do in lua code and my questions are not too dumb 
(still a beginner in ConTeXt).




Many thanks for your help,




Best regards




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

[NTG-context] How to scale fonts?

2013-02-07 Thread Devendra Ghate

Hello,

I want to use truly huge (40pt) fonts for chapter numbers.
In my latex code, I used

\newfont{\chapterNumber}{pplr9d scaled 7000}

From the context manual, I thought that

\definebodyfont [11pt] [rm]  [ tfH=cmr12 scaled 7000]

should do it. Though the above code doesn't throw any errors,
it doesn't do anything. What am I doing wrong?

*MWE*

\definebodyfont [11pt] [rm]  [ tfH=cmr12 scaled 7000]
\starttext
  {\tfH 1}
\stoptext

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


Re: [NTG-context] How to scale fonts?

2013-02-07 Thread Marco Patzer
On 2013–02–07 Devendra Ghate wrote:

 I want to use truly huge (40pt) fonts for chapter numbers.
 In my latex code, I used
 
 \newfont{\chapterNumber}{pplr9d scaled 7000}
 
 From the context manual, I thought that
 
 \definebodyfont [11pt] [rm]  [ tfH=cmr12 scaled 7000]
 
 should do it. Though the above code doesn't throw any errors,
 it doesn't do anything. What am I doing wrong?
 
 *MWE*
 
 \definebodyfont [11pt] [rm]  [ tfH=cmr12 scaled 7000]

\definebodyfont
  [default]
  [tfH=cmr12 scaled 7000]

works for me. Or you can use:

\definefont
  [TitleFont]
  [Serif at 40pt]

\starttext
  \TitleFont FooBar
\stoptext


Marco


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] How to scale fonts?

2013-02-07 Thread Devendra Ghate


On 02/07/2013 03:21 PM, Marco Patzer wrote:

On 2013--02--07 Devendra Ghate wrote:


I want to use truly huge (40pt) fonts for chapter numbers.
In my latex code, I used

\newfont{\chapterNumber}{pplr9d scaled 7000}

 From the context manual, I thought that

\definebodyfont [11pt] [rm]  [ tfH=cmr12 scaled 7000]

should do it. Though the above code doesn't throw any errors,
it doesn't do anything. What am I doing wrong?

*MWE*

\definebodyfont [11pt] [rm]  [ tfH=cmr12 scaled 7000]

\definebodyfont
   [default]
   [tfH=cmr12 scaled 7000]

works for me. Or you can use:

\definefont
   [TitleFont]
   [Serif at 40pt]

\starttext
   \TitleFont FooBar
\stoptext


Marco

I just updated by ConTeXt (ver: 2013.02.05 22:32 MKIV) and tried again.
*\definefont* works but

\definebodyfont
  [default]
  [tfH= cmr12 scaled 7000]

still does not work and also wipes out definitions for \tfa \tfx etc.
So

{\tfa 1}{\tf 1}{\tfx 1}

will just yield

111

Thank you,
Devendra

My MWE is:

\definebodyfont
 [default]
 [tfH=cmr12 scaled 7000]

\definefont
  [TitleFont]
  [Serif at 40pt]

\starttext
  {\tfH 1}{\tf 1}{\tfx 1}\\
  {\TitleFont 1. FooBar}
\stoptext






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


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

Re: [NTG-context] How to scale fonts?

2013-02-07 Thread Marco Patzer
On 2013–02–07 Devendra Ghate wrote:

 \definebodyfont
   [default]
   [tfH= cmr12 scaled 7000]
 
 still does not work and also wipes out definitions for \tfa \tfx etc.
 So
 
 {\tfa 1}{\tf 1}{\tfx 1}
 
 will just yield
 
 111

You're totally right.

 My MWE is:
 […]

\definefontsize
  [H]

\definebodyfontenvironment
  [default]
  [H=7]

\definefont
  [TitleFont]
  [Serif at 40pt]

\starttext
  {\tfH 1} {\tf 1} {\tfx 1}\\
  {\TitleFont 1. FooBar}
\stoptext

Marco


signature.asc
Description: Digital signature
___
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
___

[NTG-context] Scale argument for copypages broken

2013-01-30 Thread Marco Patzer
Hi,

the scale argument for \copypages does not work any more in a recent
beta:

\starttext
\copypages [cow] [scale=100]
\stoptext

Marco


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] Scale argument for copypages broken

2013-01-30 Thread Wolfgang Schuster

Am 30.01.2013 um 18:58 schrieb Marco Patzer home...@lavabit.com:

 Hi,
 
 the scale argument for \copypages does not work any more in a recent
 beta:
 
 \starttext
 \copypages [cow] [scale=100]
 \stoptext

\copypages[cow][][scale=100]

Hans explained this change a while ago.

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


Re: [NTG-context] Scale argument for copypages broken

2013-01-30 Thread Marco Patzer
On 2013–01–30 Wolfgang Schuster wrote:

 \copypages[cow][][scale=100]
 
 Hans explained this change a while ago.

I found the thread. Thanks.

Marco


signature.asc
Description: Digital signature
___
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
___

Re: [NTG-context] math: \text does not scale properly

2012-10-24 Thread Hans Hagen

On 24-10-2012 06:06, Aditya Mahajan wrote:

On Sun, 21 Oct 2012, Hans Hagen wrote:


On 21-10-2012 04:35, Aditya Mahajan wrote:

On Sat, 20 Oct 2012, Aditya Mahajan wrote:


On Thu, 4 Oct 2012, Andreas Mang wrote:


Hi there,

As Aditya mentioned in a former posting (*) that \text{ ... }
should scale properly when used as super- or subscript, I have
prepared a minimal example to demonstrate that it doesn't. In my
document I have switched from \text{ } to \normal, which works.


There is another bug with \text.



How about:
[]



I don't understand the fix, but it gives the correct output.


hm, given your involvement in math you should study it -)

it boils down to the fact that in luatex we can actually ask what the 
upcoming style can be (text, script, scriptscript)


normally a choice means 4 times processing and tex will use one only, 
while in this case i could write \text in a way that processes only once 
(so, way faster as we only have 1 bodyfont switch now)


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
___


Re: [NTG-context] math: \text does not scale properly

2012-10-23 Thread Aditya Mahajan

On Sun, 21 Oct 2012, Hans Hagen wrote:


On 21-10-2012 04:35, Aditya Mahajan wrote:

On Sat, 20 Oct 2012, Aditya Mahajan wrote:


On Thu, 4 Oct 2012, Andreas Mang wrote:


Hi there,

As Aditya mentioned in a former posting (*) that \text{ ... }
should scale properly when used as super- or subscript, I have
prepared a minimal example to demonstrate that it doesn't. In my
document I have switched from \text{ } to \normal, which works.


There is another bug with \text.



How about:
[]



I don't understand the fix, but it gives the correct output.

Thanks,
Aditya
___
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
___


Re: [NTG-context] math: \text does not scale properly

2012-10-21 Thread Hans Hagen

On 21-10-2012 04:35, Aditya Mahajan wrote:

On Sat, 20 Oct 2012, Aditya Mahajan wrote:


On Thu, 4 Oct 2012, Andreas Mang wrote:


Hi there,

As Aditya mentioned in a former posting (*) that \text{ ... }
should scale properly when used as super- or subscript, I have
prepared a minimal example to demonstrate that it doesn't. In my
document I have switched from \text{ } to \normal, which works.


There is another bug with \text.


Actually, the bug is with \setcurrentfontbody

\starttext
ABC \hbox{\setcurrentfontbody{\scriptscriptface} Testing} DEF
\stoptext

The above works correctly in mkii but not in mkiv. I really don't
understand what \setcurrentfontbody is supposed to do. In Mkii it scales
the bodyfont if \scriptface or \scriptscriptface is used as an argument;
but does not work for any other value (e.g. \setcurrentfontbody{20pt}).
In MkIV it does not do anything.


How about:

\unprotect

\ifdefined\font_basics_switchtobodyfont\else
\def\font_basics_switchtobodyfont#1{\switchtobodyfont[#1]}%
\fi

\def\mathstyleface#1% #1 is number (\normalmathstyle)
  {\ifcase#1\relax
 \textface \or
 \textface \or
 \textface \or
 \textface \or
 \scriptface   \or
 \scriptface   \or
 \scriptscriptface \or
 \scriptscriptface \else
 \textface
   \fi}

% For some reason mathfaces are not normalized .. why not?

% \let\m_math_text_choice_style\relax
%
% \def\math_text_choice#1%
%   {\edef\m_math_text_choice_style{\normalmathstyle}%
%\hbox\bgroup
%% \everymath{\triggermathstyle\m_math_text_choice_style}%
% 
\normalizebodyfontsize\m_math_text_choice_style{\mathstylefont\m_math_text_choice_style}%

%  \font_basics_switchtobodyfont\m_math_text_choice_style
%  #1%
%\egroup}

\let\m_math_text_choice_face \relax

\def\math_text_choice#1%

{\normalizebodyfontsize\m_math_text_choice_face{\mathstyleface\normalmathstyle}%
   \hbox{\font_basics_switchtobodyfont\m_math_text_choice_face#1}}

\protect

\setupbodyfont[dejavu]

\starttext

\testfeatureonce{1000}{$f_{\text{text $a+b$}_{\text{text 
$a+b$}_{\text{text $a+b$$\par} % 2.7


\stoptext




There is also a bug in the definition of \text in mkii. In
strc-mat.mkii, we should have


ok, fixed,

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
___


Re: [NTG-context] math: \text does not scale properly

2012-10-20 Thread Aditya Mahajan

On Thu, 4 Oct 2012, Andreas Mang wrote:


Hi there,

As Aditya mentioned in a former posting (*) that \text{ ... } should 
scale properly when used as super- or subscript, I have prepared a 
minimal example to demonstrate that it doesn't. In my document I have 
switched from \text{ } to \normal, which works.


There is another bug with \text.

{\switchtobodyfont[sans] $\text{sans}$}

does not switch to sans font. Both the incorrect scaling and wrong font 
switch can be corrected by restoring the old definition of \text in 
math-ini.mkiv. Based on the comments in that file, this will come at a 
high penalty on speed. (Slow but correct is better than fast but wrong!)


\unprotect
\def\math_text_choice_indeed#1#2#3% no \everymath !
  {\hbox{\everymath{#1}\switchtobodyfont  [#2]#3}} % 15 sec
 %{\hbox{\everymath{#1}\setcurrentfontbody{#2}#3}} %  3 sec (no math)

\protect

%% Example

\starttext
$f_{\text{text $a+b$}_{\text{text $a+b$}_{\text{text $a+b$$

{\switchtobodyfont[sans] $f_{\text{text $a+b$}_{\text{text 
$a+b$}_{\text{text $a+b$$}


$f_{{\normal text}_{{\normal text}_{\normal text}}}$


\stoptext

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


Re: [NTG-context] math: \text does not scale properly

2012-10-20 Thread Aditya Mahajan

On Sat, 20 Oct 2012, Aditya Mahajan wrote:


On Thu, 4 Oct 2012, Andreas Mang wrote:


Hi there,

As Aditya mentioned in a former posting (*) that \text{ ... } should 
scale properly when used as super- or subscript, I have prepared a minimal 
example to demonstrate that it doesn't. In my document I have switched from 
\text{ } to \normal, which works.


There is another bug with \text.


Actually, the bug is with \setcurrentfontbody

\starttext
ABC \hbox{\setcurrentfontbody{\scriptscriptface} Testing} DEF
\stoptext

The above works correctly in mkii but not in mkiv. I really don't 
understand what \setcurrentfontbody is supposed to do. In Mkii it scales 
the bodyfont if \scriptface or \scriptscriptface is used as an argument; 
but does not work for any other value (e.g. \setcurrentfontbody{20pt}). In 
MkIV it does not do anything.


There is also a bug in the definition of \text in mkii. In strc-mat.mkii, 
we should have


\def\domathtext#1%
  {\mathchoice
 {\dodomathtext\displaystyle\textface{#1}}%
 {\dodomathtext\textstyle   \textface{#1}}%
 {\dodomathtext\scriptstyle \scriptface  {#1}}%
 {\dodomathtext\scriptscriptstyle   \scriptscriptface{#1}}}


Notice \scriptsctlye and \scriptscriptstyle instead of \textstyle in the 
last two cases. If \setcurrentfontbody is fixed in mkiv, then the 
definition in MkIV also needs to be changed in a similar manner.


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


Re: [NTG-context] scale=... and specifying the width and height of a figure

2012-10-16 Thread Hans Hagen

On 16-10-2012 23:08, Aditya Mahajan wrote:

Hi,

If scale option for a figure is set, \externalfigure does not honor the
width and the height parameters. For example

\externalfigure[cow][width=1cm, height=3cm, scale=750]

gives a figure which has the usual aspect ratio.

I know that settings scale=... along with width and height does not make
sense. But, in one of my project, I set

\setupexternalfigures[scale=750]

as that makes sense for most of the figures, and if I try to use

\externalfigure[cow][width=1cm, height=3cm]

then the aspect ratio of the figures does not change.

Not sure if this should be classified as a bug, but I am posting it here
in case anyone else encounters the same issue and needs to know how to
override this behavior:

\externalfigure[cow][width=1cm, height=3cm, scale=]


if needed you can use an abstraction:

\starttext

\defineexternalfigure[whatever][width=3cm,height=4cm]
\defineexternalfigure[another] [scale=500]

\externalfigure[cow]
\externalfigure[cow][whatever]
\externalfigure[cow][another]

\stoptext


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


Re: [NTG-context] scale=... and specifying the width and height of a figure

2012-10-16 Thread Aditya Mahajan

On Tue, 16 Oct 2012, Hans Hagen wrote:


On 16-10-2012 23:08, Aditya Mahajan wrote:

Hi,

If scale option for a figure is set, \externalfigure does not honor the
width and the height parameters. For example

\externalfigure[cow][width=1cm, height=3cm, scale=750]

gives a figure which has the usual aspect ratio.

I know that settings scale=... along with width and height does not make
sense. But, in one of my project, I set

\setupexternalfigures[scale=750]

as that makes sense for most of the figures, and if I try to use

\externalfigure[cow][width=1cm, height=3cm]

then the aspect ratio of the figures does not change.

Not sure if this should be classified as a bug, but I am posting it here
in case anyone else encounters the same issue and needs to know how to
override this behavior:

\externalfigure[cow][width=1cm, height=3cm, scale=]


if needed you can use an abstraction:

\starttext

\defineexternalfigure[whatever][width=3cm,height=4cm]
\defineexternalfigure[another] [scale=500]

\externalfigure[cow]
\externalfigure[cow][whatever]
\externalfigure[cow][another]

\stoptext


I actually use these abstractions, but with the default value also set. 
That's the whole point of having the defaults, right? So, my current 
solution is:


\setupexternalfigures[scale=750, factor=max, maxwidth=\textwidth, 
maxheight=\textheight]

\defineexternalfigure[grid]
[width=0.55\paperwidth, height=0.33\paperwidth, scale=, factor=]

Around five months ago, I did not need to reset scale and factor.

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


Re: [NTG-context] scale=... and specifying the width and height of a figure

2012-10-16 Thread Hans Hagen

On 16-10-2012 23:33, Aditya Mahajan wrote:


I actually use these abstractions, but with the default value also set.
That's the whole point of having the defaults, right? So, my current
solution is:

\setupexternalfigures[scale=750, factor=max, maxwidth=\textwidth,
maxheight=\textheight]

\defineexternalfigure[grid]
 [width=0.55\paperwidth, height=0.33\paperwidth, scale=, factor=]

Around five months ago, I did not need to reset scale and factor.


The code now uses the new inheritance mechamisn and in mkii external 
figures had a whole bunch of (sometimes tricky) resets. Some were reset, 
some not. One complication with externalfigures is that scaling can 
depend on combinations (width, maxwidth etc).


This is not much different from \setupframed .. when someone uses that 
one global all kind of derived mechanisms get affected. (In fact, there 
are many such global settings.)


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
___


Re: [NTG-context] scale=... and specifying the width and height of a figure

2012-10-16 Thread Aditya Mahajan

On Tue, 16 Oct 2012, Hans Hagen wrote:


On 16-10-2012 23:33, Aditya Mahajan wrote:


I actually use these abstractions, but with the default value also set.
That's the whole point of having the defaults, right? So, my current
solution is:

\setupexternalfigures[scale=750, factor=max, maxwidth=\textwidth,
maxheight=\textheight]

\defineexternalfigure[grid]
 [width=0.55\paperwidth, height=0.33\paperwidth, scale=, factor=]

Around five months ago, I did not need to reset scale and factor.


The code now uses the new inheritance mechamisn and in mkii external figures 
had a whole bunch of (sometimes tricky) resets. Some were reset, some not.


I know. In the past I had to work around the fact that scale could not be 
set globally (because it was reset at each invocation). The current 
behavior (everything inherits from the global setting) is more predictable 
and easier to handle.


One complication with externalfigures is that scaling can depend on 
combinations (width, maxwidth etc).


... and the only way to figure out that dependence is to read the source 
code. At some stage I'll try to document how scale and factor work.


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


[NTG-context] Parameter scale in copypages in latest beta

2012-10-15 Thread Charles

Hi,

I was importing a PDF inside my document, but the scale parameter is now 
ignored.


It's reproducible with any PDF with:

\starttext
\copypages[tt.pdf][scale=500]
\stoptext

Any idea ?

Thanks

Charles

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


Re: [NTG-context] Parameter scale in copypages in latest beta

2012-10-15 Thread Wolfgang Schuster

Am 15.10.2012 um 17:12 schrieb Charles c...@vejnar.org:

 Hi,
 
 I was importing a PDF inside my document, but the scale parameter is now 
 ignored.
 
 It's reproducible with any PDF with:
 
 \starttext
 \copypages[tt.pdf][scale=500]
 \stoptext
 
 Any idea ?

Can you try this:

\starttext
\copypages[…][][scale=500]
\stoptext

In MkIV \copypages has three arguments:

- the first argument is the name of the file
- with the second argument you can control the copy mechanism and
- the third argument is passed down to \externalfigure which includes each page 
of the file in your document.

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


Re: [NTG-context] Parameter scale in copypages in latest beta

2012-10-15 Thread Charles

Le 15/10/2012 17:22, Wolfgang Schuster a écrit :

Am 15.10.2012 um 17:12 schrieb Charles c...@vejnar.org:


Hi,

I was importing a PDF inside my document, but the scale parameter is now 
ignored.

It's reproducible with any PDF with:

\starttext
\copypages[tt.pdf][scale=500]
\stoptext

Any idea ?

Can you try this:

\starttext
\copypages[…][][scale=500]
\stoptext

In MkIV \copypages has three arguments:

- the first argument is the name of the file
- with the second argument you can control the copy mechanism and
- the third argument is passed down to \externalfigure which includes each page 
of the file in your document.

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

It worked. Thanks a lot !

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


Re: [NTG-context] Parameter scale in copypages in latest beta

2012-10-15 Thread Hans Hagen

On 15-10-2012 17:25, Charles wrote:

Le 15/10/2012 17:22, Wolfgang Schuster a écrit :

Am 15.10.2012 um 17:12 schrieb Charles c...@vejnar.org:


Hi,

I was importing a PDF inside my document, but the scale parameter is
now ignored.

It's reproducible with any PDF with:

\starttext
\copypages[tt.pdf][scale=500]
\stoptext

Any idea ?

Can you try this:

\starttext
\copypages[…][][scale=500]
\stoptext

In MkIV \copypages has three arguments:

- the first argument is the name of the file
- with the second argument you can control the copy mechanism and
- the third argument is passed down to \externalfigure which includes
each page of the file in your document.

Wolfgang
___

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
___


It worked. Thanks a lot !


fyi: using three (optional) arguments is cleaner than mixing two 
(indepenent) sets of parameters into one


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
___


[NTG-context] math: \text does not scale properly

2012-10-04 Thread Andreas Mang
Hi there,

As Aditya mentioned in a former posting (*) that \text{ ... } should scale 
properly when used as super- or subscript, I have prepared a minimal example to 
demonstrate that it doesn't. In my document I have switched from \text{ } to 
\normal, which works.

Kind regards,
Andreas

ConTeXt  ver: 2012.09.25 21:44 MKIV  fmt: 2012.10.1

%% MINIMAL EXAMPLE
\setupbodyfont[xits]

\starttext

$f_{\text{text}_{\text{text}_{\text{text$

$f_{{\normal text}_{{\normal text}_{\normal text}}}$

\stoptext
%% MINIMAL EXAMPLE

(*) see [NTG-context] punctuation vs font switch


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


Re: [NTG-context] math: \text does not scale properly

2012-10-04 Thread Alan BRASLAU
On Thu, 4 Oct 2012 09:10:17 +0200
Andreas Mang m...@imt.uni-luebeck.de wrote:

 Hi there,
 
 As Aditya mentioned in a former posting (*) that \text{ ... }
 should scale properly when used as super- or subscript, I have
 prepared a minimal example to demonstrate that it doesn't. In my
 document I have switched from \text{ } to \normal, which works.
 
 Kind regards,
 Andreas
 
 ConTeXt  ver: 2012.09.25 21:44 MKIV  fmt: 2012.10.1
 
 %% MINIMAL EXAMPLE
 \setupbodyfont[xits]
 
 \starttext
 
 $f_{\text{text}_{\text{text}_{\text{text$
 
 $f_{{\normal text}_{{\normal text}_{\normal text}}}$
 
 \stoptext
 %% MINIMAL EXAMPLE
 
 (*) see [NTG-context] punctuation vs font switch

Hello,

I generally use \mathrm{} (maybe this is a leftover from LaTeX
practice), and this works fine.

Alan


\setupbodyfont [xits]
\starttext
$f_{\mathrm{text}_{\mathrm{text}_{\mathrm{text$

$f_{{\normal text}_{{\normal text}_{\normal text}}}$
\stoptext
___
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
___


Re: [NTG-context] math: \text does not scale properly

2012-10-04 Thread Andreas Mang
Hi Alan,

thanks for your help. That's indeed an option, but not much of a difference to 
using \normal I suppose.

In addition, \text has the nice feature of preserving the space character, 
which makes it very useful for lazy people (of course I can add \, and 
friends but...).

Cheers,
Andreas

ConTeXt  ver: 2012.09.25 21:44 MKIV  fmt: 2012.10.1

 MINIMAL EXAMPLE  
\setupbodyfont[xits]

\starttext

$f_{\mathrm{text and text}_{\mathrm{text and text}_{\mathrm{text and text$

$f_{\text{text and text}_{\text{text and text}_{\text{text and text$

$f_{{\normal text}_{{\normal text}_{\normal text}}}$

\stoptext
 MINIMAL EXAMPLE  




Am Oct 4, 2012 um 9:27 AM schrieb Alan BRASLAU:

 On Thu, 4 Oct 2012 09:10:17 +0200
 Andreas Mang m...@imt.uni-luebeck.de wrote:
 
 Hi there,
 
 As Aditya mentioned in a former posting (*) that \text{ ... }
 should scale properly when used as super- or subscript, I have
 prepared a minimal example to demonstrate that it doesn't. In my
 document I have switched from \text{ } to \normal, which works.
 
 Kind regards,
 Andreas
 
 ConTeXt  ver: 2012.09.25 21:44 MKIV  fmt: 2012.10.1
 
 %% MINIMAL EXAMPLE
 \setupbodyfont[xits]
 
 \starttext
 
 $f_{\text{text}_{\text{text}_{\text{text$
 
 $f_{{\normal text}_{{\normal text}_{\normal text}}}$
 
 \stoptext
 %% MINIMAL EXAMPLE
 
 (*) see [NTG-context] punctuation vs font switch
 
 Hello,
 
 I generally use \mathrm{} (maybe this is a leftover from LaTeX
 practice), and this works fine.
 
 Alan
 
 
 \setupbodyfont [xits]
 \starttext
 $f_{\mathrm{text}_{\mathrm{text}_{\mathrm{text$
 
 $f_{{\normal text}_{{\normal text}_{\normal text}}}$
 \stoptext

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


[NTG-context] The bug with the scale of fallback fonts

2012-01-27 Thread 李延瑞
Hi,

See this example about Chinese fonts as fallback fonts. The Latin
font's scale rate is less than the fallback font from \tf to \tfd. The
size of the fallback font is almost two times of the Latin font with
\tfd.

\starttypescript[serif][myfonts]
\definefontsynonym[hereos][name:texgyreherosregular]
\definefontfallback[song][name:adobesongstd][0x00400-0x2FA1F]
\definefontsynonym[fbsong][hereos][fallbacks=song]
\definefontsynonym[Serif][fbsong]
\stoptypescript

\definetypeface[myfonts][rm][serif][myfonts]
\setupbodyfont[myfonts,rm,11pt]

\starttext

夹杂 English 的中文文本\blank
{\tfa 夹杂 English 的中文文本}\blank
{\tfb 夹杂 English 的中文文本}\blank
{\tfc 夹杂 English 的中文文本}\blank
{\tfd 夹杂 English 的中文文本}

\stoptext

-- 
Best regards,

Li Yanrui (李延瑞)
___
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
___

[NTG-context] math symbols in superscript do not scale properly

2011-12-15 Thread Andreas Mang
Hi there,

It came to my attention that there might be a problem when using math symbols 
in the superscript:

It seems that the symbols are not properly scaled (if downscaling was what I 
suppose to be the default behaviour). A small example is given below.

Thanks in advance.
 
Cheers,
Andreas

Minimal example:

\setupbodyfont[11pt]
\starttext 
$\int e^{\int f(x) dx} dy$
\stoptext

You can extend this by putting multiple superscripts, resulting in no change in 
size of the $\int$ symbols. 

Specifications:
Mac OS 10.5; ConTeXt ver: 2011.11.29 23:11 MKII  fmt: 2011.12.10  int: 
english/english


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


Re: [NTG-context] math symbols in superscript do not scale properly

2011-12-15 Thread Hans Hagen

On 15-12-2011 14:38, Andreas Mang wrote:

Hi there,

It came to my attention that there might be a problem when using math symbols 
in the superscript:

It seems that the symbols are not properly scaled (if downscaling was what I 
suppose to be the default behaviour). A small example is given below.

Thanks in advance.

Cheers,
Andreas

Minimal example:

\setupbodyfont[11pt]
\starttext
$\int e^{\int f(x) dx} dy$
\stoptext

You can extend this by putting multiple superscripts, resulting in no change in 
size of the $\int$ symbols.

Specifications:
Mac OS 10.5; ConTeXt ver: 2011.11.29 23:11 MKII  fmt: 2011.12.10  int: 
english/english


afaik nothing changed in mkii

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
___


[NTG-context] I don't understand scale value of \scale[scale=700], 700 = 70% ?

2011-10-12 Thread Stéphane Klein

Le 11/10/2011 15:09, Peter Münster a écrit :
 On Tue, Oct 11 2011, Stéphane Klein wrote:

 Do you have a tip ?

 There is \scale[...]{...}:

 \starttext
 \dontleavehmode
 \scale[scale=700]{•} • \scale[scale=1700]{•}
 \stoptext


I don't understand the scale value :

* 700 = 70% ?
* 1700 = 170% ?

Regards,
Stephane

--
Stéphane Klein steph...@harobed.org
blog: http://stephane-klein.info
Twitter: http://twitter.com/klein_stephane
pro: http://www.is-webdesign.com

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


Re: [NTG-context] I don't understand scale value of \scale[scale=700], 700 = 70% ?

2011-10-12 Thread luigi scarso
On Wed, Oct 12, 2011 at 1:47 PM, Stéphane Klein steph...@harobed.org
wrote:
 Le 11/10/2011 15:09, Peter Münster a écrit :
 On Tue, Oct 11 2011, Stéphane Klein wrote:

 Do you have a tip ?

 There is \scale[...]{...}:

 \starttext
 \dontleavehmode
 \scale[scale=700]{•} • \scale[scale=1700]{•}
 \stoptext


 I don't understand the scale value :

 * 700 = 70% ?
 * 1700 = 170% ?
yes: see
\starttext
\startTEXpage
A\scale[scale=1000]{A}
A\scale[scale=500]{A}
A\scale[scale=2000]{A}
\stopTEXpage
\stoptext


-- 
luigi
attachment: test.png___
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
___

Re: [NTG-context] How to not scale images?

2010-12-03 Thread Khaled Hosny
On Fri, Dec 03, 2010 at 12:34:47AM +0100, Hans Hagen wrote:
 On 3-12-2010 12:24, Khaled Hosny wrote:
 On Fri, Dec 03, 2010 at 12:15:40AM +0100, Hans Hagen wrote:
 On 3-12-2010 12:08, Khaled Hosny wrote:
 What option should I pass to \externalfigure to not scale the image,
 from the manuals it seems to be scale=1000 but it does not seem to do
 anything here.
 
 \externalfigure[cow.pdf]
 
 should take the natural size; sometimes bitmaps can come out
 unexpexted but that;s then the consequence of lacking resolution
 specifications in the file.
 
 Indeed it is PNG file, I'll check the file and see if it can be fixed.
 
 if needed you can set the resolution (resolution=300 or so)

Thanks, that would be helpful too.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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
___


[NTG-context] How to not scale images?

2010-12-02 Thread Khaled Hosny
What option should I pass to \externalfigure to not scale the image,
from the manuals it seems to be scale=1000 but it does not seem to do
anything here.

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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
___


Re: [NTG-context] How to not scale images?

2010-12-02 Thread Hans Hagen

On 3-12-2010 12:08, Khaled Hosny wrote:

What option should I pass to \externalfigure to not scale the image,
from the manuals it seems to be scale=1000 but it does not seem to do
anything here.


\externalfigure[cow.pdf]

should take the natural size; sometimes bitmaps can come out unexpexted 
but that;s then the consequence of lacking resolution specifications in 
the file.


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


Re: [NTG-context] How to not scale images?

2010-12-02 Thread Khaled Hosny
On Fri, Dec 03, 2010 at 12:15:40AM +0100, Hans Hagen wrote:
 On 3-12-2010 12:08, Khaled Hosny wrote:
 What option should I pass to \externalfigure to not scale the image,
 from the manuals it seems to be scale=1000 but it does not seem to do
 anything here.
 
 \externalfigure[cow.pdf]
 
 should take the natural size; sometimes bitmaps can come out
 unexpexted but that;s then the consequence of lacking resolution
 specifications in the file.

Indeed it is PNG file, I'll check the file and see if it can be fixed.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___
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
___


Re: [NTG-context] How to not scale images?

2010-12-02 Thread Hans Hagen

On 3-12-2010 12:24, Khaled Hosny wrote:

On Fri, Dec 03, 2010 at 12:15:40AM +0100, Hans Hagen wrote:

On 3-12-2010 12:08, Khaled Hosny wrote:

What option should I pass to \externalfigure to not scale the image,

from the manuals it seems to be scale=1000 but it does not seem to do

anything here.


\externalfigure[cow.pdf]

should take the natural size; sometimes bitmaps can come out
unexpexted but that;s then the consequence of lacking resolution
specifications in the file.


Indeed it is PNG file, I'll check the file and see if it can be fixed.


if needed you can set the resolution (resolution=300 or so)

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
___


Re: [NTG-context] Thanks. Two new questions: rotate and scale

2009-03-13 Thread Albrecht Kauffmann
only to (1): try

draw (((0,0) -- dir(0)*u -- dir(60)*u --cycle) rotated 60);

greetings,
Albrecht


On Thu, 12 Mar 2009, Curious Learn wrote:

 Aditya and Hans,

 Thanks very much for your replies. I suppose I should install minimals 
 afterall.
 Still using the TexLive version.

 I have two new questions:

 (1) In the following code the triangle outline (obtained with the draw
 command) does not rotate, i.e., I get the same triangle as without the 
 rotated
 command. On the other hand the fill command rotates as expected. What is 
 wrong?

 \startuseMPgraphic{Dir}
 pickup pencircle scaled 2pt;
 numeric u;
 u=2cm;
 draw (0,0) -- dir(0)*u -- dir(60)*u --cycle rotated 60;
 fill (0,0) -- dir(0)*u -- dir(60)*u --cycle rotated 60 withcolor 
 (0.58,0.94,0.9);
 \stopuseMPgraphic
 \useMPgraphic{Dir}


 (2) Is there a command to scale the whole picture...not the components?

 Thanks very much.

 I have said this before but want to say this again. Thanks so much to the
 developers of Context who have given us this wonderful system. Thanks also to
 all the people on this mailing list who take their precious time to answer
 questions.

 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Thanks. Two new questions: rotate and scale

2009-03-13 Thread Taco Hoekwater


(2) Is there a command to scale the whole picture...not the components?


Parse error. In my view, the whole picture *is* the components.

Best wishes,
Taco

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Thanks. Two new questions: rotate and scale

2009-03-13 Thread Curious Learn
Albrecht Kauffmann alkauffm at rz.uni-potsdam.de writes:

 
 only to (1): try
 
 draw (((0,0) -- dir(0)*u -- dir(60)*u --cycle) rotated 60);

Thanks Albrecht. That worked great.

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Thanks. Two new questions: rotate and scale

2009-03-13 Thread Curious Learn
Taco Hoekwater taco at elvenkind.com writes:


  (2) Is there a command to scale the whole picture...not the components?
 
 Parse error. In my view, the whole picture *is* the components.
 
 Best wishes,
 Taco

Hi Taco,

Sorry for the typo and for not being clear. I meant the following. I know that
scaled command can be used to scale any particular component. To scale the
whole picture does one have to scale each and every component individually, or
is there one command that scales every component. 

One way is perhaps to define a variable, say u=1cm and express all measurements
in terms of u. Then by changing just u one can scale the whole picture (and
all the components) up or down. Is there another way? For example, in TikZ there
is a command scale which scales the entire picture if put as an option to
\begin{tikzpicture}. I was wondering if something like that is available in
Metapost too.




___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Thanks. Two new questions: rotate and scale

2009-03-13 Thread Mikael Persson
On Fri, Mar 13, 2009 at 2:39 PM, Curious Learn curiousle...@gmail.com wrote:
 Taco Hoekwater taco at elvenkind.com writes:


  (2) Is there a command to scale the whole picture...not the components?

 Parse error. In my view, the whole picture *is* the components.

 Best wishes,
 Taco

 Hi Taco,

 Sorry for the typo and for not being clear. I meant the following. I know that
 scaled command can be used to scale any particular component. To scale the
 whole picture does one have to scale each and every component individually, or
 is there one command that scales every component.

 One way is perhaps to define a variable, say u=1cm and express all 
 measurements
 in terms of u. Then by changing just u one can scale the whole picture 
 (and
 all the components) up or down. Is there another way? For example, in TikZ 
 there
 is a command scale which scales the entire picture if put as an option to
 \begin{tikzpicture}. I was wondering if something like that is available in
 Metapost too.


Hi,

I use the method of
u=1mm;
in the beginning and then use u as the unit.
I think currentpicture is what you are after otherwise, but not sure.

Mikael
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Thanks. Two new questions: rotate and scale

2009-03-13 Thread Taco Hoekwater


Curious Learn wrote:
 Taco Hoekwater taco at elvenkind.com writes:
 
 
 (2) Is there a command to scale the whole picture...not the components?
 Parse error. In my view, the whole picture *is* the components.

 Best wishes,
 Taco
 
 Hi Taco,
 
 Sorry for the typo and for not being clear. I meant the following. I know that
 scaled command can be used to scale any particular component. To scale the
 whole picture does one have to scale each and every component individually, or
 is there one command that scales every component. 

You want this, I think:

  beginfig(1);
  ... do stuff ...
  currentpicture := currentpicture scaled X;
  endfig;


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Thanks. Two new questions: rotate and scale

2009-03-13 Thread Curious Learn
Taco Hoekwater taco at elvenkind.com writes:

 
 You want this, I think:
 
   beginfig(1);
   ... do stuff ...
   currentpicture := currentpicture scaled X;
   endfig;
 
 
Awesome!! This is exactly what I was looking for. 

Thanks Taco and Mikael.


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Thanks. Two new questions: rotate and scale

2009-03-12 Thread Curious Learn
Aditya and Hans,

Thanks very much for your replies. I suppose I should install minimals afterall.
Still using the TexLive version. 

I have two new questions:

(1) In the following code the triangle outline (obtained with the draw
command) does not rotate, i.e., I get the same triangle as without the rotated
command. On the other hand the fill command rotates as expected. What is wrong?

\startuseMPgraphic{Dir} 
pickup pencircle scaled 2pt;
numeric u;
u=2cm;
draw (0,0) -- dir(0)*u -- dir(60)*u --cycle rotated 60;
fill (0,0) -- dir(0)*u -- dir(60)*u --cycle rotated 60 withcolor 
(0.58,0.94,0.9);
\stopuseMPgraphic  
\useMPgraphic{Dir} 


(2) Is there a command to scale the whole picture...not the components? 

Thanks very much. 

I have said this before but want to say this again. Thanks so much to the
developers of Context who have given us this wonderful system. Thanks also to
all the people on this mailing list who take their precious time to answer
questions.   

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] gray scale conversion of colored text

2007-03-27 Thread Taco Hoekwater
Peter Rolf wrote:
 
 Something like
 
 \setupcolors[conversion=always]

Is there is a reason why you can not use
   \setupcolors[state=start]
as well?

That works fine in combination with conversion, and
you will end up with greyscale color.

Best,
Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] gray scale conversion of colored text

2007-03-27 Thread Peter Rolf
Taco Hoekwater wrote:
 Peter Rolf wrote:
 Something like

 \setupcolors[conversion=always]
 
 Is there is a reason why you can not use
\setupcolors[state=start]
 as well?


Mh, you mean beside from my too little brain? No. ;)

This works with the simple example, but sadly not with my more complex
graphics. Looks like I have to make a better minimal example. Thanks for
the hint.

Greetings, Peter

 That works fine in combination with conversion, and
 you will end up with greyscale color.
 
 Best,
 Taco
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] gray scale conversion of colored text

2007-03-26 Thread Peter Rolf
Hi,

I currently have a problem with the conversion of some mp graphics into
gray scale. The mp graphics themself look great, but *text is always
converted to black*, regardless of its real color. Is there a way to fix
this?

Peter
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] gray scale conversion of colored text

2007-03-26 Thread Peter Rolf
Peter Rolf wrote:
 Hi,
 
 I currently have a problem with the conversion of some mp graphics into
 gray scale. The mp graphics themself look great, but *text is always
 converted to black*, regardless of its real color. Is there a way to fix
 this?


Sorry, I made a mistake. The text that is used inside MP has the correct
gray value. Only the ConTeXt part always uses black as textcolor.

So my problem is, that want to use colored text in a non colored document.

Something like

\setupcolors[conversion=always]

\starttext

\setbox\scratchbox\hbox{An example text.}%
\bgroup\graycolor[cyan]\copy\scratchbox\egroup
\startcolor[green]\copy\scratchbox\stopcolor
\box\scratchbox

\stoptext

This always gives me black text, as color is not activated. How do I get
the correct gray scale values for the text?


 Peter
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \externalfigure[cow.pdf][scale=0.8]

2005-10-24 Thread Christopher Creutzig
Steve Peter wrote:

 The scaling factor is in units of 1000. To get 80% size, use [scale=800]. 

 Thanks.  Added comment to texshow-web.


Christopher
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \externalfigure[cow.pdf][scale=0.8]

2005-10-23 Thread Steve Peter
On Oct 23, 2005, at 10:56 AM, Christopher Creutzig wrote: according to texshow, \externalfigure accepts scale as an option.  For me,\starttext\externalfigure[cow.pdf][scale=0.8]\stoptextresults in getting ".8.8.8.8" in front of the image.The scaling factor is in units of 1000. To get 80% size, use [scale=800]. Steve___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] strange behaviour with \scale

2005-07-01 Thread Peter Münster
Hello,

could anybody explain, why the DRAFT is bigger on the last two pages
please?

\defineoverlay[Draft][{\scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
\setupbackgrounds[page][background=Draft]
\starttext
\starttables[|l|]
\dorecurse{200}{\NC hallo \NC\AR}
\stoptables
\stoptext

Cheers and TIA, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange behaviour with \scale

2005-07-01 Thread Mojca Miklavec
Peter Münster wrote:

 could anybody explain, why the DRAFT is bigger on the last two pages
 please?

I played with

\defineoverlay[Draft][{\scale[factor=max]
{\rotate[rotation=60]{\framed[strut=no,offset=0pt]{\strut~DRAFT~\strut]
\setupbackgrounds[page][background=Draft]
\showstruts
\starttext
\dorecurse{400}{hallo \crlf}
\starttables[|l|]
\dorecurse{200}{\NC hallo \NC\AR}
\stoptables
\showlayout
\stoptext

From the page where \starttables start till the prelast page where the
tables stop, '~' is squeezed somehow. There's also no \strut
present in that lines if you take a closer look. I don't have a clue,
but you have good imagination!

If you need a solution: use {\ Draft\ }
If you need the reason: wait for the expert(s)

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange behaviour with \scale

2005-07-01 Thread Peter Münster
On Fri, 1 Jul 2005, Mojca Miklavec wrote:

 If you need a solution: use {\ Draft\ }

Thanks a lot! I didn't think about this kind of space at all...

 If you need the reason: wait for the expert(s)

I don't need it, but it would certainly be interesting ;)

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange behaviour with \scale

2005-07-01 Thread Taco Hoekwater

Peter Münster wrote:

On Fri, 1 Jul 2005, Mojca Miklavec wrote:



If you need a solution: use {\ Draft\ }



Thanks a lot! I didn't think about this kind of space at all...



If you need the reason: wait for the expert(s)



I don't need it, but it would certainly be interesting ;)


From looking at it quickly, it seems sometimes the output routine
is called when the ~ command has the 'normal' definition, and
sometimes when it has TaBlE's definition. These do not produce
identical results (~ in TaBlE has the width of a 'zero' digit).

I'm not sure why this happens, though.

Taco


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context