ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jaroslav Hajtmar <hajtmar@gyza.cz>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: setupformulas options (or defineformula) and effort to reduce the font in math formulas
Date: Wed, 11 Mar 2015 18:18:27 +0100	[thread overview]
Message-ID: <550078E3.6090907@gyza.cz> (raw)
In-Reply-To: <602A3DEA-1268-4201-8E3A-D8EE8431226F@gmail.com>

Thanx Wolfgang for reply.
I had no idea that it is possible in this way to change the font size. I 
could not figure a way for your solution set alignment formulas to right 
and how work \defineformula and \definestartstop together.

After defining a new MY formula in combination with your solution works 
it fine, as I had imagined.
Is there any possibility of setting of parameters a newly defined 
formulas? Or, it can not be done, and everything must be solved within 
the initial definition?

One more thanx
Jaroslav Hajtmar


\defineformula[MY][
     align=right,
     strut=yes,
     spacebefore=,
     spaceafter=,
]

\definestartstop[smallformula]
   [before={\startformula[small]},
    after=\stopformula,
     ]


% \setupformulas[align=right,strut=yes,spacebefore=,spaceafter=]
% 
\setupformulas[smallformula][align=right,strut=yes,spacebefore=,spaceafter=]
% \setupformulas[small][align=right,strut=yes,spacebefore=,spaceafter=]
% \setupsmallformulas[align=right,strut=yes,spacebefore=,spaceafter=]
% \setupsmallformulaformulas[align=right,strut=yes,spacebefore=,spaceafter=]
% \setupformulas[MY][align=right,strut=yes,spacebefore=,spaceafter=]
% \setupformulas[MYformula][align=right,strut=yes,spacebefore=,spaceafter=]
% \setupMYformulas[align=right,strut=yes,spacebefore=,spaceafter=]


\starttext

\startformula
     c^2 = a^2 + b^2
\stopformula

\startformula[small]
     c^2 = a^2 + b^2
\stopformula

\startformula[8pt]
     c^2 = a^2 + b^2
\stopformula

\startsmallformula
     c^2 = a^2 + b^2
\stopsmallformula

\startMYformula[small]
     c^2 = a^2 + b^2
\stopMYformula

\startMYformula[5pt]
     c^2 = a^2 + b^2
\stopMYformula


\stoptext



Dne 11.3.2015 v 0:52 Wolfgang Schuster napsal(a):
> \startformula has a optional argument which let you change the font, e.g. \startformula[9pt].
>
> \definestartstop[smallformula]
>    [before={\startformula[small]},
>     after=\stopformula]
>
> \starttext
>
> \startformula
> 	c^2  = a^2  + b^2
> \stopformula
>
> \startformula[small]
> 	c^2  = a^2  + b^2
> \stopformula
>
> \startsmallformula
> 	c^2  = a^2  + b^2
> \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
___________________________________________________________________________________

  reply	other threads:[~2015-03-11 17:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-10 22:45 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 [this message]
2015-03-12  8:23         ` Jaroslav Hajtmar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=550078E3.6090907@gyza.cz \
    --to=hajtmar@gyza.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).