[NTG-context] \everymath

2012-09-15 Thread Rogers, Michael K
I often want every math mode (between single $) be \displaystyle.  In Plain 
TeX, you do something like

\everymath={\displaystyle}

Is the best ConTeXt way to do something like this?

\appendtoks\displaystyle\to\everymathematics

Or is there a key in \setupmathematics?

Thanks,

Michael



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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] \everymath

2012-09-16 Thread Wolfgang Schuster

Am 16.09.2012 um 01:32 schrieb "Rogers, Michael K" :

> I often want every math mode (between single $) be \displaystyle.  In Plain 
> TeX, you do something like
> 
> \everymath={\displaystyle}
> 
> Is the best ConTeXt way to do something like this?
> 
> \appendtoks\displaystyle\to\everymathematics
> 
> Or is there a key in \setupmathematics?


I don’t think so because I found only the command below the change the 
appearance
of inline formulas and \displaymath/\displaymathematics isn’t what you want 
because
it creates a display formula.

\let\normalstopdmath\Ustopdisplaymath % to prevent error message from 
\displaymath

\starttext

<\mathematics   {\frac{1}{2}}>
<\displaymathematics{\frac{1}{2}}>
<\inlinemathematics {\frac{1}{2}}>

<\displaymath{\frac{1}{2}}>
<\inlinemath {\frac{1}{2}}>
<\textmath   {\frac{1}{2}}>

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


[NTG-context] \everymath problem

2009-08-19 Thread Eythan Weg

Hi,


I use luatex 0.43 with yesterday's beta.  Running 
 
  \everymath = {\displaystyle}
  
  \starttext
  ${a\over  b}$
  
  \stoptext

results in 

  ! Use of \dospecialabout doesn't match its definition.
  l.4 ${a\over  b
   }$

Plain format under luatex has no problem here.

If I change \over to \times it runs with fonts changed
to roman (i.e, not math italics).

Thank you.

Eythan 



___
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] \everymath and ' accent

2008-01-31 Thread morgan . brassel
Hi everyone,

This topic has already been discussed on the list, but I didn't clearly
understand the conclusion, so I'm asking again... It is not clear to me why the
following

\everymath{\displaystyle}
\starttext
\startformula \frac{1}{A'} \stopformula
$\frac{1}{A'}$
\stoptext

fails with ConTeXt (on the ' inside $.$), while

\documentclass{minimal}
\everymath{\displaystyle}
\begin{document}
\[ \frac{1}{A'} \]
$\frac{1}{A'}$
\end{document}

is ok with LaTeX.

The use of \everymath is to blame here, but why?
Thanks in advance!
Morgan
___
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] \everymath problem

2009-08-19 Thread Hans Hagen

Eythan Weg wrote:

Hi,


I use luatex 0.43 with yesterday's beta.  Running 
 
  \everymath = {\displaystyle}
  
  \starttext

  ${a\over  b}$
  
  \stoptext


results in 


  ! Use of \dospecialabout doesn't match its definition.
  l.4 ${a\over  b
   }$

Plain format under luatex has no problem here.

If I change \over to \times it runs with fonts changed
to roman (i.e, not math italics).


taco and i looked into it (fearing big problems) but it's actually 
normal; use


\everymath = \expandafter{\the\everymath \displaystyle}

or

\appendtoks \displaystyle \to \everymath

as (among other important things) \everymath does initialize \over


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \everymath problem

2009-08-19 Thread Wolfgang Schuster


Am 19.08.2009 um 16:47 schrieb Hans Hagen:


Eythan Weg wrote:

Hi,
I use luatex 0.43 with yesterday's beta.  Running\everymath =  
{\displaystyle}

   \starttext
 ${a\over  b}$
   \stoptext
results in   ! Use of \dospecialabout doesn't match its definition.
 l.4 ${a\over  b
  }$
Plain format under luatex has no problem here.
If I change \over to \times it runs with fonts changed
to roman (i.e, not math italics).


taco and i looked into it (fearing big problems) but it's actually  
normal; use


\everymath = \expandafter{\the\everymath \displaystyle}

or

\appendtoks \displaystyle \to \everymath

as (among other important things) \everymath does initialize \over



And with \frac it can be configured at context low level (why no key  
for \setupmathematics?)


\chardef\mathfracmode=1 % 0=auto, 1=displaystyle, 2=textstyle,  
3=scriptstyle, 4=scriptscriptstyle, 5=mathstyle


$\frac{a}{b}$

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


Re: [NTG-context] \everymath and ' accent

2008-01-31 Thread Hans Hagen
[EMAIL PROTECTED] wrote:
> Hi everyone,
> 
> This topic has already been discussed on the list, but I didn't clearly
> understand the conclusion, so I'm asking again... It is not clear to me why 
> the
> following
> 
> \everymath{\displaystyle}
> \starttext
> \startformula \frac{1}{A'} \stopformula
> $\frac{1}{A'}$
> \stoptext
> 
> fails with ConTeXt (on the ' inside $.$), while
> 
> \documentclass{minimal}
> \everymath{\displaystyle}
> \begin{document}
> \[ \frac{1}{A'} \]
> $\frac{1}{A'}$
> \end{document}
> 
> is ok with LaTeX.
> 
> The use of \everymath is to blame here, but why?

it's pretty dangerous to overload \everymath

maybe \appendtoks\displaystyle\to\everymath works

Hans


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \everymath and ' accent

2008-01-31 Thread morgan . brassel
Selon Hans Hagen <[EMAIL PROTECTED]>:

> it's pretty dangerous to overload \everymath

Yes, I guess so! It was just to see the difference between LaTeX and ConTeXt in
this case.

> maybe \appendtoks\displaystyle\to\everymath works

Indeed, thank you! What I need actually is to modify $.$ locally (in a tikz
picture) to produce \displaystyle maths. I don't know what is the best way to
achieve this. Is it to use \appendtoks like above?

Best regards,
Morgan

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