ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* setupformulas options (or defineformula) and effort to reduce the font in math formulas
@ 2015-03-10 22:45 Jaroslav Hajtmar
  2015-03-10 22:57 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Jaroslav Hajtmar @ 2015-03-10 22:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello List.
I would like some elegant way to diminished font in math formulas...

Is there possibility anything as 
\setupformulas[before={\switchtobodyfont[small]} ]?
I need to align formulas, so are not enough to \mathematics {xxxx}

Below is my fallback. You can do something smarter?

Thanx Jaroslav Hajtmar



\defineformula[small][
     align=right,
     strut=yes,
     spacebefore=,
     spaceafter=,
     % before={\switchtobodyfont[small]}
]

% Here is my fallback solution:
\def\Startsmallformula{\startsmallformula\switchtobodyfont[small] }


\starttext

\startformula
\lim\limits_{x\rightarrow-2^{\mp}}{\arctan\frac{x}{2+x}}=\pm\frac{\pi}{2}
\stopformula

\startformula
f':\;    y' = \frac{\sqrt{3}(1+x^2)}{(1-x^2)^2+3x^2}
\stopformula

\startformula
\lim\limits_{x\rightarrow 1^{\mp}}{\frac{x^2+1}{x-1}}=\mp\infty
\stopformula



\Startsmallformula
\lim\limits_{x\rightarrow-2^{\mp}}{\arctan\frac{x}{2+x}}=\pm\frac{\pi}{2}
\stopsmallformula

\Startsmallformula
f':\;    y' = \frac{\sqrt{3}(1+x^2)}{(1-x^2)^2+3x^2}
\stopsmallformula

\Startsmallformula
\lim\limits_{x\rightarrow 1^{\mp}}{\frac{x^2+1}{x-1}}=\mp\infty
\stopsmallformula



\blank[big]

\startsmallformula
\startalign
\NC f(x)\NC = \ln (x^2+2x+2)\NR
\NC f(-x)\NC = \ln ((–x)^2 - 2x + 2)\NR
\NC -f(x)\NC = -\ln (x^2+2x+2)\NR
\stopalign
\stopsmallformula

\blank[big]

\Startsmallformula
\startalign
\NC f(x)\NC = \ln (x^2+2x+2)\NR
\NC f(-x)\NC = \ln ((–x)^2 - 2x + 2)\NR
\NC -f(x)\NC = -\ln (x^2+2x+2)\NR
\stopalign
\stopsmallformula

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

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

end of thread, other threads:[~2015-03-12  8:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-10 22:45 setupformulas options (or defineformula) and effort to reduce the font in math formulas Jaroslav Hajtmar
2015-03-10 22:57 ` Hans Hagen
2015-03-10 23:07   ` Jaroslav Hajtmar
2015-03-10 23:52     ` Wolfgang Schuster
2015-03-11 17:18       ` Jaroslav Hajtmar
2015-03-12  8:23         ` Jaroslav Hajtmar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).