Re: [NTG-context] setupformulas options (or defineformula) and effort to reduce the font in math formulas
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 ___
Re: [NTG-context] setupformulas options (or defineformula) and effort to reduce the font in math formulas
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 ___
[NTG-context] setupformulas options (or defineformula) and effort to reduce the font in math formulas
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 {} 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 ___
Re: [NTG-context] setupformulas options (or defineformula) and effort to reduce the font in math formulas
Thanks Hans for the reply. I take to type some formulas larger font, so that's why I opted to frame their own definition of a formula environment with small print. Switch entire mathematical text on small I don't want. Therefore, I would like to have both: \startformula \stopformula and \startsmallformula \stopsmallformula Thanx Jaroslav Hajtmar Dne 10.3.2015 v 23:57 Hans Hagen napsal(a): On 3/10/2015 11:45 PM, Jaroslav Hajtmar wrote: 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 {} Below is my fallback. You can do something smarter? define a bodyfont (rm,mm,tt) where the math has an rscale of 0.8 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] setupformulas options (or defineformula) and effort to reduce the font in math formulas
On 3/10/2015 11:45 PM, Jaroslav Hajtmar wrote: 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 {} Below is my fallback. You can do something smarter? define a bodyfont (rm,mm,tt) where the math has an rscale of 0.8 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] setupformulas options (or defineformula) and effort to reduce the font in math formulas
Am 11.03.2015 um 00:07 schrieb Jaroslav Hajtmar hajt...@gyza.cz: Thanks Hans for the reply. I take to type some formulas larger font, so that's why I opted to frame their own definition of a formula environment with small print. Switch entire mathematical text on small I don't want. Therefore, I would like to have both: \startformula \stopformula and \startsmallformula \stopsmallformula \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 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] \setupformulas and \frac give small symbols
On Wed, Oct 15, 2014 at 4:07 PM, Otared Kavian ota...@gmail.com wrote: Hi Mikael, You are right, it seems to be a new bug in ConTeXt ver: 2014.10.14 12:05 MKIV beta fmt: 2014.10.14 int: english/english The same behavior appears with \setupformulas[align=flushright] However the results are fine and as expected with mkii and with ConTeXt ver: 2014.05.21 22:04 MKIV beta fmt: 2014.6.27 int: english/english Best regards: OK On 15 Oct 2014, at 19:03, Mikael P. Sundqvist mic...@gmail.com wrote: Hi, with a standalone installation updated today, I get smaller letters in \frac if \setupformulas[align=flushleft] is applied. The test file below generates the attached pdf. /Mikael \starttext \startformula z=\frac{x}{y} \stopformula \setupformulas[align=flushleft] \startformula z=\frac{x}{y} \stopformula \stoptext sffrac.pdf___ 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 ___ This issue seems to be fixed now (I upgraded today). Thank you, Hans. /Mikael ___ 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] \setupformulas and \frac give small symbols
On Thu, Oct 16, 2014 at 1:20 PM, Mikael P. Sundqvist mic...@gmail.com wrote: On Wed, Oct 15, 2014 at 4:07 PM, Otared Kavian ota...@gmail.com wrote: Hi Mikael, You are right, it seems to be a new bug in ConTeXt ver: 2014.10.14 12:05 MKIV beta fmt: 2014.10.14 int: english/english The same behavior appears with \setupformulas[align=flushright] However the results are fine and as expected with mkii and with ConTeXt ver: 2014.05.21 22:04 MKIV beta fmt: 2014.6.27 int: english/english Best regards: OK On 15 Oct 2014, at 19:03, Mikael P. Sundqvist mic...@gmail.com wrote: Hi, with a standalone installation updated today, I get smaller letters in \frac if \setupformulas[align=flushleft] is applied. The test file below generates the attached pdf. /Mikael \starttext \startformula z=\frac{x}{y} \stopformula \setupformulas[align=flushleft] \startformula z=\frac{x}{y} \stopformula \stoptext sffrac.pdf___ 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 ___ This issue seems to be fixed now (I upgraded today). Thank you, Hans. /Mikael Sorry, another problem appear (maybe was apparent before as well): \starttext \startformula z=\frac{x}{y} \stopformula \startformula \startalign \NC z \NC = \frac{x}{y} \stopalign \stopformula \setupformulas[align=flushleft] \startformula z=\frac{x}{y} \stopformula \startformula \startalign \NC z \NC = \frac{x}{y} \stopalign \stopformula \stoptext Same thing, the x/y inside align does not look good. This time, the \setupformulas does not change anything. /Mikael ___ 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] \setupformulas and \frac give small symbols
On 10/16/2014 1:29 PM, Mikael P. Sundqvist wrote: Sorry, another problem appear (maybe was apparent before as well): fixed in next beta ... there might be a few more cases left 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] \setupformulas and \frac give small symbols
Hi, with a standalone installation updated today, I get smaller letters in \frac if \setupformulas[align=flushleft] is applied. The test file below generates the attached pdf. /Mikael \starttext \startformula z=\frac{x}{y} \stopformula \setupformulas[align=flushleft] \startformula z=\frac{x}{y} \stopformula \stoptext sffrac.pdf Description: Adobe PDF document ___ 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] \setupformulas and \frac give small symbols
Hi Mikael, You are right, it seems to be a new bug in ConTeXt ver: 2014.10.14 12:05 MKIV beta fmt: 2014.10.14 int: english/english The same behavior appears with \setupformulas[align=flushright] However the results are fine and as expected with mkii and with ConTeXt ver: 2014.05.21 22:04 MKIV beta fmt: 2014.6.27 int: english/english Best regards: OK On 15 Oct 2014, at 19:03, Mikael P. Sundqvist mic...@gmail.com wrote: Hi, with a standalone installation updated today, I get smaller letters in \frac if \setupformulas[align=flushleft] is applied. The test file below generates the attached pdf. /Mikael \starttext \startformula z=\frac{x}{y} \stopformula \setupformulas[align=flushleft] \startformula z=\frac{x}{y} \stopformula \stoptext sffrac.pdf___ 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 ___
Re: [NTG-context] setupformulas
Am 11.06.2013 um 07:38 schrieb Steffen Wolfrum cont...@st.estfiles.de: Am 10.06.2013 um 17:31 schrieb Wolfgang Schuster: Am 10.06.2013 um 16:43 schrieb Steffen Wolfrum cont...@st.estfiles.de: Hi, \setupformulas[way=bychapter,prefixsegments=chapter] gives (A..1) But I need (A-1)! Any idea how the key is called to change this? You can change the separator between the section prefix and the formula number with \setupformula[prefixconnector=-]. Is there also a key for a own prefix, eg. my: (my-1)? It’s not a prefix but you can set a labeltext. \setupformula[prefix=no] \setuplabeltext[formula=Steffen-] \starttext \chapter{Chapter} \placeformula \startformula c^2 = a^2 + b^2 \stopformula \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] setupformulas
Am 11.06.2013 um 11:30 schrieb Wolfgang Schuster: Am 11.06.2013 um 07:38 schrieb Steffen Wolfrum cont...@st.estfiles.de: Am 10.06.2013 um 17:31 schrieb Wolfgang Schuster: Am 10.06.2013 um 16:43 schrieb Steffen Wolfrum cont...@st.estfiles.de: Hi, \setupformulas[way=bychapter,prefixsegments=chapter] gives (A..1) But I need (A-1)! Any idea how the key is called to change this? You can change the separator between the section prefix and the formula number with \setupformula[prefixconnector=-]. Is there also a key for a own prefix, eg. my: (my-1)? It’s not a prefix but you can set a labeltext. \setupformula[prefix=no] \setuplabeltext[formula=Steffen-] \starttext \chapter{Chapter} \placeformula \startformula c^2 = a^2 + b^2 \stopformula \stoptext nice, thank you. i was looking for a key within setupformula, and didn't think of formula within setuplabetext! st. ___ 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] setupformulas
Hi, \setupformulas[way=bychapter,prefixsegments=chapter] gives (A..1) But I need (A-1)! Any idea how the key is called to change this? Best, Steffen ___ 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] setupformulas
Am 10.06.2013 um 16:43 schrieb Steffen Wolfrum cont...@st.estfiles.de: Hi, \setupformulas[way=bychapter,prefixsegments=chapter] gives (A..1) But I need (A-1)! Any idea how the key is called to change this? You can change the separator between the section prefix and the formula number with \setupformula[prefixconnector=-]. 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] setupformulas
Am 10.06.2013 um 17:31 schrieb Wolfgang Schuster: Am 10.06.2013 um 16:43 schrieb Steffen Wolfrum cont...@st.estfiles.de: Hi, \setupformulas[way=bychapter,prefixsegments=chapter] gives (A..1) But I need (A-1)! Any idea how the key is called to change this? You can change the separator between the section prefix and the formula number with \setupformula[prefixconnector=-]. Is there also a key for a own prefix, eg. my: (my-1)? Steffen ___ 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] setupformulas reset not working
Thanks, that explanation makes it a lot easier :-) \formulaparameter is a command to access the values of the keys for the \setupformula command, e.g. \formulaparameter{spacebefore} results in “big”. ___ 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] setupformulas reset not working
Hi, In my work I have standalone formulas and formulas inside a paragraph (see idea of module pararef). For standalone formulas the default settings are ok. But for the formuals inside the paragraphs I need to change the afer- and beforespaces. So I have to change the spaces before and after a formula often. Unlucky \startformula[spacebefore=...,spaceafter=...] is not working. So I try to achieve it via the big setup function: \setupformulas[spacebefore=...,spaceafter=...] - not nice but it works (except that strange space \formulaparameter). But now after that paragraph I want to reset the spaces of setupformulas. In the file strc-math.mkiv says that the spaces are defined like this: ... c!spacebefore=\v!big, \c!spaceafter=\formulaparameter\c!spacebefore, ... So I tried after \stopformula to reset the spaces with: \setupformulas[spacebefore=\v!big,spaceafter=\formulaparameter\c!spacebefore] and \setupformulas[spacebefore=\big,spaceafter=\formulaparameter\spacebefore] but both failed. Is there any possibility to reset the spaces of setupformulas? And what kind of space is \formulaparameter? H. ___ 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] setupformulas reset not working
Am 17.01.2013 um 21:48 schrieb Zenlima p...@zenlima.eu: Hi, In my work I have standalone formulas and formulas inside a paragraph (see idea of module pararef). For standalone formulas the default settings are ok. But for the formuals inside the paragraphs I need to change the afer- and beforespaces. So I have to change the spaces before and after a formula often. Unlucky \startformula[spacebefore=...,spaceafter=...] is not working. So I try to achieve it via the big setup function: \setupformulas[spacebefore=...,spaceafter=...] - not nice but it works (except that strange space \formulaparameter). But now after that paragraph I want to reset the spaces of setupformulas. In the file strc-math.mkiv says that the spaces are defined like this: ... c!spacebefore=\v!big, \c!spaceafter=\formulaparameter\c!spacebefore, ... So I tried after \stopformula to reset the spaces with: \setupformulas[spacebefore=\v!big,spaceafter=\formulaparameter\c!spacebefore] and \setupformulas[spacebefore=\big,spaceafter=\formulaparameter\spacebefore] but both failed. \setupformla[spacebefore=big,spaceafter=big] Is there any possibility to reset the spaces of setupformulas? And what kind of space is \formulaparameter? \formulaparameter is a command to access the values of the keys for the \setupformula command, e.g. \formulaparameter{spacebefore} results in “big”. 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] setupformulas: make indentnext=auto the default?
Aditya Mahajan wrote: On Sun, 24 Sep 2006, Sanjoy Mahajan wrote: The default for setupformulas is indentnext=no, at least from a couple experiments and this line in core-mat.tex (in version 2006.08.08): \c!indentnext=\v!no, What's the view on changing it to indentnext=auto, which seems intuitive at least if one is used to TeX or LaTeX? From the archives, it seems like 'auto' was the default a few years ago, but maybe there was reason to change it to 'no'. I do not know why 'indentnext' was changed to 'no'. I would also like the default to be changed to 'auto'. However, I do not know if it breaks backwards compatibility of someone else's existing project. You can ofcourse change it in your cont-sys.tex file, but remember to add it to your environment file if you want to share your documents with others. normally i have no problems with changes that make thinsg look better (improvements in macros) however, this is a functional change and that's not going to happen if a lot of users want it, we can consider making some styles that use (and/or comment) different defaults, 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] setupformulas: make indentnext=auto the default?
On Sun, 24 Sep 2006, Sanjoy Mahajan wrote: The default for setupformulas is indentnext=no, at least from a couple experiments and this line in core-mat.tex (in version 2006.08.08): \c!indentnext=\v!no, What's the view on changing it to indentnext=auto, which seems intuitive at least if one is used to TeX or LaTeX? From the archives, it seems like 'auto' was the default a few years ago, but maybe there was reason to change it to 'no'. I do not know why 'indentnext' was changed to 'no'. I would also like the default to be changed to 'auto'. However, I do not know if it breaks backwards compatibility of someone else's existing project. You can ofcourse change it in your cont-sys.tex file, but remember to add it to your environment file if you want to share your documents with others. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context