[NTG-context] Figure numbering with parts

2014-05-17 Thread Pol Stra
Hello,

I want to number my figures like this:
partnumber.sectionnumber.figurenumber

I didn't find documentation on \setupnumber.

I tried:

\setupnumber[figure][way=bypart, numberpart=yes]
\setupnumber[figure][way=bypart, numberpart=yes, prefixsegments=part]

But when changing part, the numbering starts again at 1.

Thanks

___
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] Figure numbering with parts

2014-05-17 Thread Wolfgang Schuster

Am 17.05.2014 um 11:21 schrieb Pol Stra r...@hotmail.fr:

 Hello,
 
 I want to number my figures like this:
 partnumber.sectionnumber.figurenumber
 
 I didn't find documentation on \setupnumber.
 
 I tried:
 
 \setupnumber[figure][way=bypart, numberpart=yes]
 \setupnumber[figure][way=bypart, numberpart=yes, prefixsegments=part]
 
 But when changing part, the numbering starts again at 1.

The counter setup for floats are controlled with the \setupcaption command.

When you set “way=bypart” you tell context to reset the counter with each new 
\part heading.

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] Bug with TikZ module ?

2014-05-17 Thread Fabrice

Hi,
This is true, but as I gradually abandoned LaTeX for ConTeXt, I'm a 
little too quickly precipitate. In addition, I prefer TikZ to PSTricks 
that I do not control very well, pending the integration of PSTricks in 
Context.

The solution \strut you propose works perfectly.
Regards,
Fabrice
___
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] Figure numbering with parts

2014-05-17 Thread Pol Stra
Le samedi 17 mai 2014, 11:25:04 Wolfgang Schuster a écrit :
 Am 17.05.2014 um 11:21 schrieb Pol Stra r...@hotmail.fr:
  Hello,
  
  I want to number my figures like this:
  partnumber.sectionnumber.figurenumber
  
  I didn't find documentation on \setupnumber.
  
  I tried:
  
  \setupnumber[figure][way=bypart, numberpart=yes]
  \setupnumber[figure][way=bypart, numberpart=yes, prefixsegments=part]
  
  But when changing part, the numbering starts again at 1.
 
 The counter setup for floats are controlled with the \setupcaption command.
 
 When you set “way=bypart” you tell context to reset the counter with each
 new \part heading.
 
 Wolfgang

Ok, I see: way=bypart is related to figurenumber. But what about the 
numeberpart attribute?

Let's say I have two parts with two sections in each. Currently, with 
\setupnumber[figure][way=bypart, numberpart=yes] I have:

Part 1
Section 1
figure 1.1
figure 1.2
Section 2
figure 2.3
figure 2.4
Part 2
Section 1
figure 1.1 % here we start again at 1 instead of 2
figure 1.2 % the 2 is OK, but not the 1
Section 2
figure 2.3
figure 2.4

While I want:

Part 1
Section 1
figure 1.1.1
figure 1.1.2
Section 2
figure 1.2.3
figure 1.2.4
Part 2
Section 1
figure 2.1.1
figure 2.1.2
Section 2
figure 2.2.3
figure 2.2.4

I think you missed an example in my previous message. ;-)
___
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] Figure numbering with parts

2014-05-17 Thread Wolfgang Schuster

Am 17.05.2014 um 12:28 schrieb Pol Stra r...@hotmail.fr:

 Le samedi 17 mai 2014, 11:25:04 Wolfgang Schuster a écrit :
 Am 17.05.2014 um 11:21 schrieb Pol Stra r...@hotmail.fr:
 Hello,
 
 I want to number my figures like this:
 partnumber.sectionnumber.figurenumber
 
 I didn't find documentation on \setupnumber.
 
 I tried:
 
 \setupnumber[figure][way=bypart, numberpart=yes]
 \setupnumber[figure][way=bypart, numberpart=yes, prefixsegments=part]
 
 But when changing part, the numbering starts again at 1.
 
 The counter setup for floats are controlled with the \setupcaption command.
 
 When you set “way=bypart” you tell context to reset the counter with each
 new \part heading.
 
 Wolfgang
 
 Ok, I see: way=bypart is related to figurenumber. But what about the 
 numeberpart attribute?
 
 Let's say I have two parts with two sections in each. Currently, with 
 \setupnumber[figure][way=bypart, numberpart=yes] I have:
 
 Part 1
   Section 1
   figure 1.1
   figure 1.2
   Section 2
   figure 2.3
   figure 2.4
 Part 2
   Section 1
   figure 1.1 % here we start again at 1 instead of 2
   figure 1.2 % the 2 is OK, but not the 1
   Section 2
   figure 2.3
   figure 2.4
 
 While I want:
 
 Part 1
   Section 1
   figure 1.1.1
   figure 1.1.2
   Section 2
   figure 1.2.3
   figure 1.2.4
 Part 2
   Section 1
   figure 2.1.1
   figure 2.1.2
   Section 2
   figure 2.2.3
   figure 2.2.4
 
 I think you missed an example in my previous message. ;-)

I still miss some example code.

You want to do is not possible with this structure because you go from parts to 
section
without a chapter between them which leaves a gap in the prefix numbers.

To fix this you have to change your sections to chapters or replace your parts 
with chapters.

\useMPlibrary[dum]

\setupcaption
  [figure]
  [way=bypart,
   prefixsegments=part:chapter]

\starttext

\dorecurse{2}
  {\part{Part #1}
   \dorecurse{2}
 {\chapter{Chapter ##1}
  \dorecurse{2}
{\placefigure[force]{Dummy Figure 1}{\externalfigure[dummy]

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


Re: [NTG-context] ConTeXt Garden Examples Maintenance

2014-05-17 Thread Hans Hagen

On 5/17/2014 7:43 AM, Thangalin wrote:

Hi,

The ConText Garden wiki has numerous short example sprinkled
throughout its pages. I presume that they are hard-coded in the page.
if the example breaks (due to a ConTeXt bug or backwards-incompatible
enhancement), I imagine there is no notification.

What do you think about creating a repository of examples that are
included by embedding a website address instead of direct text? For
example:

1. User visits wiki.
2. User edits a page (e.g., Command/setuphead).
3. User names and uploads a .tex document.
4. System generates unique hyperlink for .tex document.
5. System generates and includes embed code into wiki page, such as:

context href=http://wiki.contextgarden.net/context/examples/file.tex; /
context href=/context/examples/file.tex /

Also, source=yes and mode=mkiv should be the default. Then, if the
person editing the page wants to include the output, the full example
might resemble:

   context href=/context/examples/file.tex
   This produces:
   context output=yes href=/context/examples/file.tex

Having the complete examples separated allows the snippets to be
tested automatically. Broken .tex examples (unless explicitly flagged)
would result in notifications being sent to the page maintainer(s). A
broken example could be flagged as:

   context notify=no href=/context/examples/file.tex

Another advantage is that all the examples could be downloaded and
possibly referenced in other media.


Makes sense, but someone needs to coordinate that, read: you. I suggest 
you discuss it with Sietse who is in charge if the wiki. Also, Mojca has 
to agree on the structure of things.


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] Figure numbering with parts

2014-05-17 Thread Pol Stra
Le samedi 17 mai 2014, 12:40:35 Wolfgang Schuster a écrit :
 Am 17.05.2014 um 12:28 schrieb Pol Stra r...@hotmail.fr:
  Le samedi 17 mai 2014, 11:25:04 Wolfgang Schuster a écrit :
  Am 17.05.2014 um 11:21 schrieb Pol Stra r...@hotmail.fr:
  Hello,
  
  I want to number my figures like this:
  partnumber.sectionnumber.figurenumber
  
  I didn't find documentation on \setupnumber.
  
  I tried:
  
  \setupnumber[figure][way=bypart, numberpart=yes]
  \setupnumber[figure][way=bypart, numberpart=yes, prefixsegments=part]
  
  But when changing part, the numbering starts again at 1.
  
  The counter setup for floats are controlled with the \setupcaption
  command.
  
  When you set “way=bypart” you tell context to reset the counter with each
  new \part heading.
  
  Wolfgang
  
  Ok, I see: way=bypart is related to figurenumber. But what about the
  numeberpart attribute?
  
  Let's say I have two parts with two sections in each. Currently, with
  \setupnumber[figure][way=bypart, numberpart=yes] I have:
  
  Part 1
  
  Section 1
  
  figure 1.1
  figure 1.2
  
  Section 2
  
  figure 2.3
  figure 2.4
  
  Part 2
  
  Section 1
  
  figure 1.1 % here we start again at 1 instead of 2
  figure 1.2 % the 2 is OK, but not the 1
  
  Section 2
  
  figure 2.3
  figure 2.4
  
  While I want:
  
  Part 1
  
  Section 1
  
  figure 1.1.1
  figure 1.1.2
  
  Section 2
  
  figure 1.2.3
  figure 1.2.4
  
  Part 2
  
  Section 1
  
  figure 2.1.1
  figure 2.1.2
  
  Section 2
  
  figure 2.2.3
  figure 2.2.4
  
  I think you missed an example in my previous message. ;-)
 
 I still miss some example code.
 
 You want to do is not possible with this structure because you go from parts
 to section without a chapter between them which leaves a gap in the prefix
 numbers.
 
 To fix this you have to change your sections to chapters or replace your
 parts with chapters.
 
 \useMPlibrary[dum]
 
 \setupcaption
   [figure]
   [way=bypart,
prefixsegments=part:chapter]
 
 \starttext
 
 \dorecurse{2}
   {\part{Part #1}
\dorecurse{2}
  {\chapter{Chapter ##1}
 \dorecurse{2}
   {\placefigure[force]{Dummy Figure 1}{\externalfigure[dummy]
 
 \stoptext
 
 Wolfgang

Oops! Sorry, I over simplified my use case: there *are* chapters in my 
documents.

Ok, with the sample of code you provided it works like I want. I shouldn't 
have used `setupnumber` but  `setupcaption`.

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

[NTG-context] LuaTeX-plain - Get well-know function names like sin cos to display in roman

2014-05-17 Thread Aíre Funvake
Hi there,

Am used to seeing the names of well known functions in upright math
font, instead of italics. With LaTeX, it seems, this is default,
plus one can use macros like `\mathrm` or `\textrm` for other text.
An `\hbox{}` too, in plain TeX, but not around `\sin`, for example.

With ConTeXt's LuaTeX-Plain format (may ConTeXt itself as well),
these functions are in italics. Is it possible to control this via
the redefinition of the math fonts? Following does not work for me:

\font\lmromr   =
   {LucidaBrightMathOT:mode=base} at 14pt
\font\lmromi   =
   {LucidaBrightMathOT:mode=base}  at 14pt
\font\lmromsr  =
   {LucidaBrightMathOT:mode=base;script=math;ssty=0} at 12pt
\font\lmromsi  =
   {LucidaBrightMathOT:mode=base;script=math;ssty=0} at 12pt
\font\lmromssr =
   {LucidaBrightMathOT:mode=base;script=math;ssty=1} at 10pt
\font\lmromssi =
   {LucidaBrightMathOT:mode=base;script=math;ssty=1} at 10pt

\textfont0 = \lmromr%--sin, cos, numbers
\scriptfont0 = \lmromsr %
\scriptscriptfont0 = \lmromssr  %
\textfont1 = \lmromi%--variables
\scriptfont1 = \lmromsi %
\scriptscriptfont1 = \lmromssi  %
\textfont2 = \lmromr%--symbols
\scriptfont2 = \lmromsr %
\scriptscriptfont2 = \lmromssr  %
\textfont3 = \lmromr%--extras
\scriptfont3 = \lmromsr %
\scriptscriptfont3 = \lmromssr  %

Same for CambriaMath or LatinModernRomanMath. For `\font0`,
tried a non-math font, but it did not work. How to set
`\font0` to use roman? and `\font1` to use italics?

Thanks in advance,
Aire.

PS. Info from Khaled Hosny: [http://www.khaledhosny.org/node/131]
___
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] LuaTeX-plain - Get well-know function names like sin cos to display in roman

2014-05-17 Thread Hans Hagen

On 5/17/2014 7:20 PM, Aíre Funvake wrote:

Hi there,

Am used to seeing the names of well known functions in upright math
font, instead of italics. With LaTeX, it seems, this is default,
plus one can use macros like `\mathrm` or `\textrm` for other text.
An `\hbox{}` too, in plain TeX, but not around `\sin`, for example.

With ConTeXt's LuaTeX-Plain format (may ConTeXt itself as well),
these functions are in italics. Is it possible to control this via
the redefinition of the math fonts? Following does not work for me:

 \font\lmromr   =
{LucidaBrightMathOT:mode=base} at 14pt
 \font\lmromi   =
{LucidaBrightMathOT:mode=base}  at 14pt
 \font\lmromsr  =
{LucidaBrightMathOT:mode=base;script=math;ssty=0} at 12pt
 \font\lmromsi  =
{LucidaBrightMathOT:mode=base;script=math;ssty=0} at 12pt
 \font\lmromssr =
{LucidaBrightMathOT:mode=base;script=math;ssty=1} at 10pt
 \font\lmromssi =
{LucidaBrightMathOT:mode=base;script=math;ssty=1} at 10pt

 \textfont0 = \lmromr%--sin, cos, numbers
 \scriptfont0 = \lmromsr %
 \scriptscriptfont0 = \lmromssr  %
 \textfont1 = \lmromi%--variables
 \scriptfont1 = \lmromsi %
 \scriptscriptfont1 = \lmromssi  %
 \textfont2 = \lmromr%--symbols
 \scriptfont2 = \lmromsr %
 \scriptscriptfont2 = \lmromssr  %
 \textfont3 = \lmromr%--extras
 \scriptfont3 = \lmromsr %
 \scriptscriptfont3 = \lmromssr  %


It's more like this:

\font\tenrm=file:lucidabrightot.otf:+liga;+kern;+tlig;+trep at 10pt
\font\sevenrm=file:lucidabrightot.otf:+liga;+kern;+tlig;+trep at  7pt
\font\fiverm=file:lucidabrightot.otf:+liga;+kern;+tlig;+trep at  5pt
\font\tentt=file:lucidabrightot.otf at 10pt
\font\tenit=file:lucidabrightot.otf:+liga;+kern;+tlig;+trep at 10pt
\font\tenit=file:lucidabrightot-italic.otf:+liga;+kern;+tlig;+trep at 10pt
\font\tenbf=file:lucidabrightot-demi.otf:+liga;+kern;+tlig;+trep at 10pt
\font\tenbi=file:lucidabrightot-demiitalic.otf:+liga;+kern;+tlig;+trep 
at 10pt
\font\mathfonttextupright=file:lucidabrightmathot.otf:ssty=0;fixmath=yes 
at 10pt
\font\mathfontscriptupright=file:lucidabrightmathot.otf:ssty=1;fixmath=yes 
at 7pt
\font\mathfontscriptscriptupright=file:lucidabrightmathot.otf:ssty=2;fixmath=yes 
at 5pt

\textfont0=\mathfonttextupright
\scriptfont0=\mathfontscriptupright
\scriptscriptfont0=\mathfontscriptscriptupright
\tenrm


Same for CambriaMath or LatinModernRomanMath. For `\font0`,
tried a non-math font, but it did not work. How to set
`\font0` to use roman? and `\font1` to use italics?


You really need to keep in mind that plain tex is an example tex format, 
used for the books that DEK makes and that it normally expects 
additional definitions. it's fine to extend it, e.g. with different font 
support, which in 8 bit fonts is quite some work due to differences in 
encoding, but you must ask yourself if you want to write all that code.


The plain support code that ships with context is mostly meant for 
testing. Anyway, I've added lucidaot to plain-math.tex and as a 
convenience added a --lucidabright switch, so:


mtxrun --script plain --lucidabright somefile.tex

instead you can use \lucidabright in a document (but then \latinmodern 
gets preloaded too).  A more efficient setup is possible but not on the 
agenda (as we have context already).


In the next beta,

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] Using the margin for two purposes

2014-05-17 Thread Matthias Weber
Dear All,

I would like to use the margin for two different purposes: For brief notes, 
using
\inmargin, and to mark entire paragraphs sections of the text with vertical 
lines.

So, I’d like to be able to something like this

\starttext

\startsquigglyline
\inmargin{read \\ this \\ first}
\input{knuth} 
\stopsquigglyline

\startthinline
\inmargin{read \\ this \\ next}
\input{tufte}
\stopthinline

\stoptext


I know I could use frames to accomplish the vertical features within in the 
text area, but I’d prefer to use the margin so that framing paragraphs doesn’t
indent the paragraphs compared to the unframed portions. 
But I also want to have the \inmargin notes to be lined up properly. So it 
looks like I would need to divide the margin into two horizontally
separate regions. On left pages, the left region would be used for the 
\inmargin notes, and the (very thin) right region would be used for the
vertical features (squigglyline and thinline). For right pages the other way 
around. Of course I’d also like the vertical features to extend across pages, 
if needed.
Like so:


 Left Page  Right Page

read(   Knuth   Tufte   |   read
this)   Knuth   Tufte   |   this
first   (   Knuth   Tufte   |   next
)   Knuth   Tufte   |
(   Knuth   Tufte   |

Is there a mechanism in place for that? 
Thanks for any hints!

Matthias





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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] Using the margin for two purposes

2014-05-17 Thread Rik Kabel

On 2014-05-17 20:12, Matthias Weber wrote:

Dear All,

I would like to use the margin for two different purposes: For brief notes, 
using
\inmargin, and to mark entire paragraphs sections of the text with vertical 
lines.

So, I’d like to be able to something like this

\starttext

\startsquigglyline
\inmargin{read \\ this \\ first}
\input{knuth}
\stopsquigglyline

\startthinline
\inmargin{read \\ this \\ next}
\input{tufte}
\stopthinline

\stoptext


I know I could use frames to accomplish the vertical features within in the 
text area, but I’d prefer to use the margin so that framing paragraphs doesn’t
indent the paragraphs compared to the unframed portions.
But I also want to have the \inmargin notes to be lined up properly. So it 
looks like I would need to divide the margin into two horizontally
separate regions. On left pages, the left region would be used for the 
\inmargin notes, and the (very thin) right region would be used for the
vertical features (squigglyline and thinline). For right pages the other way 
around. Of course I’d also like the vertical features to extend across pages, 
if needed.
Like so:


  Left Page Right Page

read(   Knuth   Tufte   |   read
this)   Knuth   Tufte   |   this
first   (   Knuth   Tufte   |   next
)   Knuth   Tufte   |
(   Knuth   Tufte   |

Is there a mechanism in place for that?
Thanks for any hints!

Matthias

You want margin rules. The wiki has a place-holder entry for 
\setupmarginrules, but the ConTeXt reference manual has a couple of 
pages that should provide a good start.


--
Rik
___
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] numerator is too high in \frac{3}{4}, in palatino

2014-05-17 Thread Sanjoy Mahajan
Hans Hagen pra...@wxs.nl writes:

 these are font properties and using a consistent opentype math versus
 a bunch of loosely related type one fonts makes a difference

But shouldn't TeXGyrePagellaMath qualify?

 I've added:

 \starttext

  $\displaystyle 1+{2g\over3}+{2\over3}$ \blank

  \setupmathfractions[topdistance=0pt]

  $\displaystyle 1+{2g\over3}+{2\over3}$ \blank

  \setupmathfractions[bottomdistance=0pt]

  $\displaystyle 1+{2g\over3}+{2\over3}$ \blank

  \setupmathfractions[topdistance=0pt,bottomdistance=0pt]

  $\displaystyle 1+{2g\over3}+{2\over3}$ \blank

 \stoptext

Thanks, Hans.  That is very useful.  

I also recompiled my textbook draft using the latest beta (2014.05.17),
and it works very well.  I tried the topdistance and bottomdistance and
they are mostly working.  To my eye, with topdistance=6pt, the {1\over2}
looks very good again.

However, the settings don't seem to affect fractions inside square
roots.  Here's an example (the 20pt setting is to exaggerate the
possible effect), using 2014.05.17 beta.

\starttext
\placeformula\startformula
\dfrac{ag}{bcd}\quad{ag\over bcd}
\stopformula
\placeformula\startformula
\sqrt{1\over \dfrac{a}{bcd}}
\quad
\sqrt{\dfrac{1}{\dfrac{a}{bcd}}}
\stopformula

\setupmathfractions [topdistance=20pt]

\placeformula\startformula
\dfrac{ag}{bcd}\quad{ag\over bcd}
\stopformula
\placeformula\startformula
\sqrt{1\over \dfrac{a}{bcd}}
\quad
\sqrt{\dfrac{1}{\dfrac{a}{bcd}}}
\stopformula

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