Re: [NTG-context] Aligned numbered math formulas
Hi, On Thu, 14 Aug 2003, Tobias Burnus wrote: > On Thu, 14 Aug 2003, Holger Schöner wrote: > > Thanks, Tobias! This works for me, if I place a "\placeformula" before > > formulas enclosed by "$$". Funny, though, that I get an error if I instead > > enclose the formula with "\startformula ... \endformula": > Here it works with \startformula \stopformula [stop not end]. All right, I used \stopformula ... And I just found out the reason, it seems: I used \setupformulae[align=right] Then, if I use $$ instead of \startformula, I get centered formulas anyway. If I remove the \setupformulae, then I can also use \startformula ... So in the moment I have resolved to using centered formulae. Best regards, -- Holger F. Schoener TU Berlin; Dept. IV: EE and Computer Science [EMAIL PROTECTED] http://www.cs.tu-berlin.de/~hfsch/ Rooms FR2525Tel: +49-30-314-73115, Fax: -73121 Office FR 2-1 Franklinstr. 28/29, D-10587 Berlin, Germany ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Aligned numbered math formulas
Hello, For a publication I need to typeset a lot of math formulas. To make them as comprehensible as possible, I need a few specialties, and would appreciate any suggestions you can provide: 1) Some of the formulas should be numbered, some not; and at the same time I would like to align several of them. For alignment I seem to be able to use \eqalign (or \startalign ... \stopalign from the t-amsl.tex sent around here lately). But if I place a \placeformula in front of this, the whole aligned block only gets one number; I would need a number for every line (or even better: a possibility to state, which lines should be numbered, and which not). By looking into core-mat.tex I found the commands \formulanumber and \subformulanumber which I can add after each line, if I want it to be numbered. Unfortunately they only set numbers, if the whole aligned block also is numbered (by using \placeformula), and they furthermore do not put the number beside the right margin, as is done by \placeformula, but directly where the \formulanumber appears. How can I enable the numbers even when not using \placeformula (or when using \placeformula[-]), and how can it put the numbers next to the right margin? 2) What are the keywords "alternative" and "indentnext" in \setupformulae meant for? Is there any documentation available concerning math formulae, besides "ConTeXt, the manual"? 3) I'd like to be able to set more than one line below large math operators, e.g. something like \sum_{m: \\ 1 \leq m \leq M}. Unfortunately this does not work as expected (it seems to conflict with the \startalign block). Is there another possibility? 4) Using the alignment features (\eqalign or \startalign, \stopalign) I often have the problem, that the (quite space consuming) formulas all appear on the next page, separated from its introductory text. I would like to have either also the introductory text put onto the next page (but neither \page[no] between text and formulas, nor \page[preference] before the introductory text work), or alternatively, to be able to (automatically) break the formulas inside the alignment block (whether alignment is kept up or not between pages does not matter for me). Is there a solution for either way? I am using: -- This is pdfeTeX, Version 3.14159-1.00a-pretest-2004-ojmw-2.1 (Web2C 7.3.7) [...] ConTeXt ver: 2003.2.11 fmt: 2003.4.4 int: english mes: english -- -- Holger F. Schoener TU Berlin; Dept. IV: EE and Computer Science [EMAIL PROTECTED] http://www.cs.tu-berlin.de/~hfsch/ Rooms FR2525Tel: +49-30-314-73115, Fax: -73121 Office FR 2-1 Franklinstr. 28/29, D-10587 Berlin, Germany ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Aligned numbered math formulas
Thursday, August 14, 2003 Tobias Burnus wrote: TB> Hi, TB> On Thu, 14 Aug 2003, David Arnold wrote: >> Is there a setup that will typeset the labels as (1.1) and (1.1a)? TB> Not that I'm aware of, but I use \informula[foo] with TB> \def\informula#1{(\in[#1])} Look up definereferenceformat, it's intended to do that more cleanly :) -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Aligned numbered math formulas
Hello, On Thu, 14 Aug 2003, Holger Schöner wrote: > Thanks, Tobias! This works for me, if I place a "\placeformula" before > formulas enclosed by "$$". Funny, though, that I get an error if I instead > enclose the formula with "\startformula ... \endformula": Here it works with \startformula \stopformula [stop not end]. Tobias ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Aligned numbered math formulas
Hi, On Thu, 14 Aug 2003, David Arnold wrote: > Is there a setup that will typeset the labels as (1.1) and (1.1a)? Not that I'm aware of, but I use \informula[foo] with \def\informula#1{(\in[#1])} Tobias ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Aligned numbered math formulas
Hallo Holger, hi all Holger Schöner schrieb: > 1) Some of the formulas should be numbered, some not; and at the same time > I would like to align several of them. > For alignment I seem to be able to use \eqalign (or \startalign ... > \stopalign from the t-amsl.tex sent around here lately). But if I place a > \placeformula in front of this, the whole aligned block only gets one > number; I would need a number for every line (or even better: a possibility > to state, which lines should be numbered, and which not). I use \eqalignno{ left & right & \formulanumber \cr left & right & \formulanumber \cr } or \eqalignno{ left & right & \formulanumber{a}\cr left & right & \subformulanumber{b} \cr } If I have a longer formula which should only get one number, I use \eqalignno{ left & right1 & \cr & right2 & \formulanumber{} \cr } With warm regards also from Berlin, Tobias -- This above all: To thine own self be true / And it must follow as the night the day / Thou canst not then be false to any man. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Aligned numbered math formulas
Hello, For a publication I need to typeset a lot of math formulas. To make them as comprehensible as possible, I need a few specialties, and would appreciate any suggestions you can provide: 1) Some of the formulas should be numbered, some not; and at the same time I would like to align several of them. For alignment I seem to be able to use \eqalign (or \startalign ... \stopalign from the t-amsl.tex sent around here lately). But if I place a \placeformula in front of this, the whole aligned block only gets one number; I would need a number for every line (or even better: a possibility to state, which lines should be numbered, and which not). By looking into core-mat.tex I found the commands \formulanumber and \subformulanumber which I can add after each line, if I want it to be numbered. Unfortunately they only set numbers, if the whole aligned block also is numbered (by using \placeformula), and they furthermore do not put the number beside the right margin, as is done by \placeformula, but directly where the \formulanumber appears. How can I enable the numbers even when not using \placeformula (or when using \placeformula[-]), and how can it put the numbers next to the right margin? 2) What are the keywords "alternative" and "indentnext" in \setupformulae meant for? Is there any documentation available concerning math formulae, besides "ConTeXt, the manual"? 3) I'd like to be able to set more than one line below large math operators, e.g. something like \sum_{m: \\ 1 \leq m \leq M}. Unfortunately this does not work as expected (it seems to conflict with the \startalign block). Is there another possibility? 4) Using the alignment features (\eqalign or \startalign, \stopalign) I often have the problem, that the (quite space consuming) formulas all appear on the next page, separated from its introductory text. I would like to have either also the introductory text put onto the next page (but neither \page[no] between text and formulas, nor \page[preference] before the introductory text work), or alternatively, to be able to (automatically) break the formulas inside the alignment block (whether alignment is kept up or not between pages does not matter for me). Is there a solution for either way? I am using: -- This is pdfeTeX, Version 3.14159-1.00a-pretest-2004-ojmw-2.1 (Web2C 7.3.7) [...] ConTeXt ver: 2003.2.11 fmt: 2003.4.4 int: english mes: english -- -- Holger F. Schoener TU Berlin; Dept. IV: EE and Computer Science [EMAIL PROTECTED] http://www.cs.tu-berlin.de/~hfsch/ Rooms FR2525Tel: +49-30-314-73115, Fax: -73121 Office FR 2-1 Franklinstr. 28/29, D-10587 Berlin, Germany ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Aligned numbered math formulas
Tobias, Very nice. Is there a setup that will typeset the labels as (1.1) and (1.1a)? At 08:49 PM 8/14/03 +0200, you wrote: >Hi all, > >On Thu, 14 Aug 2003, David Arnold wrote: >> May I ask how I can reference each of these equations separately in the >> text? That is, how can I give a different label to each equation in the >> alignment, then reference each one independent of the other? > >\placeformula[david] >\startformula\eqalignno{ > left & right & \formulanumber[david:a]{a} \cr > left & right & \formulanumber[david:b]{b} \cr >}\stopformula > >Well, \in[david] should give "1.1" while \in[david:a] should give "1.1a". > >Tobias > >___ >ntg-context mailing list >[EMAIL PROTECTED] >http://www.ntg.nl/mailman/listinfo/ntg-context > > ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Aligned numbered math formulas
Hi all, On Thu, 14 Aug 2003, David Arnold wrote: > May I ask how I can reference each of these equations separately in the > text? That is, how can I give a different label to each equation in the > alignment, then reference each one independent of the other? \placeformula[david] \startformula\eqalignno{ left & right & \formulanumber[david:a]{a} \cr left & right & \formulanumber[david:b]{b} \cr }\stopformula Well, \in[david] should give "1.1" while \in[david:a] should give "1.1a". Tobias ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Aligned numbered math formulas
All, I am following this thread and I can report the same result as Holger. \setupformulae[align=right] \starttext \placeformula[david] \startformula \eqalignno{% left & right & \formulanumber \cr left & right & \formulanumber \cr } \stopformula \stoptext Gives this result. ! You can't use `\halign' in math mode. \eqalignno [EMAIL PROTECTED] \tabskip \centering \halign to \displaywidth {\hfil $\... l.10 } May I ask how I can reference each of these equations separately in the text? That is, how can I give a different label to each equation in the alignment, then reference each one independent of the other? Thanks. At 04:20 PM 8/14/03 +0200, you wrote: >Hi, > >On Thu, 14 Aug 2003, Tobias Burnus wrote: >> On Thu, 14 Aug 2003, Holger Schöner wrote: >> > Thanks, Tobias! This works for me, if I place a "\placeformula" before >> > formulas enclosed by "$$". Funny, though, that I get an error if I instead >> > enclose the formula with "\startformula ... \endformula": >> Here it works with \startformula \stopformula [stop not end]. > >All right, I used \stopformula ... And I just found out the reason, it >seems: I used > > \setupformulae[align=right] > >Then, if I use $$ instead of \startformula, I get centered formulas anyway. >If I remove the \setupformulae, then I can also use \startformula ... > >So in the moment I have resolved to using centered formulae. > >Best regards, > >-- >Holger F. Schoener TU Berlin; Dept. IV: EE and Computer Science >[EMAIL PROTECTED] http://www.cs.tu-berlin.de/~hfsch/ >Rooms FR2525 Tel: +49-30-314-73115, Fax: -73121 >Office FR 2-1 Franklinstr. 28/29, D-10587 Berlin, Germany > > >___ >ntg-context mailing list >[EMAIL PROTECTED] >http://www.ntg.nl/mailman/listinfo/ntg-context > > ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Aligned numbered math formulas
Hi, On Thu, 14 Aug 2003, Tobias Burnus wrote: > On Thu, 14 Aug 2003, Holger Schöner wrote: > > Thanks, Tobias! This works for me, if I place a "\placeformula" before > > formulas enclosed by "$$". Funny, though, that I get an error if I instead > > enclose the formula with "\startformula ... \endformula": > Here it works with \startformula \stopformula [stop not end]. All right, I used \stopformula ... And I just found out the reason, it seems: I used \setupformulae[align=right] Then, if I use $$ instead of \startformula, I get centered formulas anyway. If I remove the \setupformulae, then I can also use \startformula ... So in the moment I have resolved to using centered formulae. Best regards, -- Holger F. Schoener TU Berlin; Dept. IV: EE and Computer Science [EMAIL PROTECTED] http://www.cs.tu-berlin.de/~hfsch/ Rooms FR2525Tel: +49-30-314-73115, Fax: -73121 Office FR 2-1 Franklinstr. 28/29, D-10587 Berlin, Germany ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Aligned numbered math formulas
Hello, On Thu, 14 Aug 2003, Tobias Burnus wrote: > Holger Schöner schrieb: > > 1) Some of the formulas should be numbered, some not; and at the same time > > I would like to align several of them. [...] > I use > \eqalignno{ > left & right & \formulanumber \cr > left & right & \formulanumber \cr > } Thanks, Tobias! This works for me, if I place a "\placeformula" before formulas enclosed by "$$". Funny, though, that I get an error if I instead enclose the formula with "\startformula ... \endformula": -- ! You can't use `\halign' in math mode. \eqalignno [EMAIL PROTECTED] \tabskip \centering \halign to \displaywidth {\hfil $\... l.42 } -- Thanks a lot, -- Holger F. Schoener TU Berlin; Dept. IV: EE and Computer Science [EMAIL PROTECTED] http://www.cs.tu-berlin.de/~hfsch/ Rooms FR2525Tel: +49-30-314-73115, Fax: -73121 Office FR 2-1 Franklinstr. 28/29, D-10587 Berlin, Germany ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context