From: Jaroslav Hajtmar <hajtmar@gyza.cz>
To: ntg-context@ntg.nl
Subject: Re: setupformulas options (or defineformula) and effort to reduce the font in math formulas
Date: Thu, 12 Mar 2015 09:23:01 +0100 [thread overview]
Message-ID: <55014CE5.1000007@gyza.cz> (raw)
In-Reply-To: <550078E3.6090907@gyza.cz>
Hello Wolfgang.
After some searching and experimenting, here is my functional solution.
I wrote it into the wiki. I have not found there eg. defineformula
command etc
Jaroslav Hajtmar
\defineformula[MY][
align=left,
strut=no,
spacebefore=,
spaceafter=,
]
% so you can modify the settings of defineforumla[MY]
\setupformulae[MY][align=right,strut=yes,spacebefore=medium,spaceafter=big]
% so we can create new start-stopsmallformula
\definestartstop[smallformula]
[before={\startformula[small]},
after=\stopformula,
]
% and we can so create new start-stopmysmallformula:
\definestartstop[mysmallformula]
[before={\startMYformula[small]},
after=\stopMYformula,
]
% and here is my shortcuts:
\let\bmyformula\startmysmallformula
\let\emyformula\stopmysmallformula
\starttext
\title{Example of use and behavior}
startformula:
\startformula
c^2 = a^2 + b^2
\stopformula
startformula$[$small$]$:
\startformula[small]
c^2 = a^2 + b^2
\stopformula
startformula[8pt]:
\startformula[8pt]
c^2 = a^2 + b^2
\stopformula
startsmallformula:
\startsmallformula
c^2 = a^2 + b^2
\stopsmallformula
startmysmallformula:
\startmysmallformula
c^2 = a^2 + b^2
\stopmysmallformula
startMYformula:
\startMYformula
c^2 = a^2 + b^2
\stopMYformula
startMYformula[5pt]:
\startMYformula[5pt]
c^2 = a^2 + b^2
\stopMYformula
bmyformula:
\bmyformula
c^2 = a^2 + b^2
\emyformula
\stoptext
http://wiki.contextgarden.net/defineformula
Dne 11.3.2015 v 18:18 Jaroslav Hajtmar napsal(a):
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2015-03-12 8:23 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
2015-03-12 8:23 ` Jaroslav Hajtmar [this message]
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=55014CE5.1000007@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).