* Re: Problem with math alignment [not found] <mailman.1.1510570801.1118.ntg-context@ntg.nl> @ 2017-11-13 14:06 ` Jeong Dal 0 siblings, 0 replies; 8+ messages in thread From: Jeong Dal @ 2017-11-13 14:06 UTC (permalink / raw) To: ntg-context Dear Otared, Thank you for checking my code. > The strange fact is that if one puts > \startitem $\overline{A} = A$ \stopitem > as the first item in your example (instead of the second), then ConTeXt creates three columns, with the first item the result of the above line, and then items 2 and 3 in the second column and finally item 4 in the third column. Despite this the textwidth is divided into four… > I have noticed before what you described. If there are 8 items, the outputs are all different depends on the location of \overline. I couldn’t see any pattern in the output. The only thing I can see is that the command ‘\overline’ makes a blank line, and I just guess that it is related with the column environment. > I hope Hans will see your message and fix the issue. Yes, it is also my hope. And, I believe that he also solve the alignment problem too. Best regards, Dalyoung ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <mailman.1204.1510504666.1988.ntg-context@ntg.nl>]
* Re: Problem with math alignment [not found] <mailman.1204.1510504666.1988.ntg-context@ntg.nl> @ 2017-11-13 2:12 ` Jeong Dal 2017-11-13 10:19 ` Otared Kavian 0 siblings, 1 reply; 8+ messages in thread From: Jeong Dal @ 2017-11-13 2:12 UTC (permalink / raw) To: list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl Dear Otared, I run your code and found that they are not aligned properly as you want. But I don’t know how to do for the correct alignment. Did you see the mail about the \overline problem in column environment which I listed recently? It is a different problem from yours, but I’d like to know whether you got the same output as mine or not. Would you please check it in your computer? Thank you. Best regards, Dalyoung ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Problem with math alignment 2017-11-13 2:12 ` Jeong Dal @ 2017-11-13 10:19 ` Otared Kavian 0 siblings, 0 replies; 8+ messages in thread From: Otared Kavian @ 2017-11-13 10:19 UTC (permalink / raw) To: mailing list for ConTeXt users Dear Dalyoung, Thank you for having tested my example. Regarding what you are reporting in another thread about the weird behaviour of \overline in columns, I was traveling and could not test your file. Now I tested your example and I get the same result as you with the latest beta 2017.11.08 22:45. The strange fact is that if one puts \startitem $\overline{A} = A$ \stopitem as the first item in your example (instead of the second), then ConTeXt creates three columns, with the first item the result of the above line, and then items 2 and 3 in the second column and finally item 4 in the third column. Despite this the textwidth is divided into four… I hope Hans will see your message and fix the issue. Best regards: OK > On 13 Nov 2017, at 03:12, Jeong Dal <haksan@me.com> wrote: > > Dear Otared, > > I run your code and found that they are not aligned properly as you want. > But I don’t know how to do for the correct alignment. > > Did you see the mail about the \overline problem in column environment which I listed recently? > It is a different problem from yours, but I’d like to know whether you got the same output as mine or not. > Would you please check it in your computer? > > Thank you. > > Best regards, > > Dalyoung > ___________________________________________________________________________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Problem with math alignment @ 2017-11-12 16:37 Otared Kavian 2017-11-12 16:58 ` Weber, Matthias 2017-11-13 8:03 ` Wolfgang Schuster 0 siblings, 2 replies; 8+ messages in thread From: Otared Kavian @ 2017-11-12 16:37 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 1432 bytes --] Hi everybody, Does anyone have noticed that the mathalignment has changed its behaviour recently? I think a bug has managed to enter the environment which handles the mathalignment, at least since a few weeks ago. I did not report it earlier because I was traveling and did not have a stable internet access. Here is a minimal example where on can see in the first displayed formula that the first and third column are centered while the first one shoud be right-aligned and the third one left-aligned. (Actually it seems that all columns are centered…) %%% begin pb-math-align.tex \definemathmatrix[alignedcases] [align={right,left,left}, distance=3pt, left={\left\{}, right={\right.}, style=\displaystyle] \starttext \startformula \startalignedcases \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\;(0,T)\times\Omega \NR \NC u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR \NC \partial_{t} u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR \NC {\partial u \over\partial{\bf n} } \NC = g(t,\sigma) \NC \quad \mbox{on }\; (0,T)\times\partial\Omega. \NR \stopalignedcases \stopformula \startformula \startalignedcases \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\; (0,T)\times\Omega \NR \NC - \Delta v \NC = q(x) \partial_{t}u \NC \quad\mbox{in }\; \Omega \NR \stopalignedcases \stopformula \stoptext %%% end pb-math-align.tex [-- Attachment #2: pb-align-math.pdf --] [-- Type: application/pdf, Size: 10911 bytes --] [-- Attachment #3: Type: text/plain, Size: 2 bytes --] [-- Attachment #4: Type: text/plain, Size: 492 bytes --] ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Problem with math alignment 2017-11-12 16:37 Otared Kavian @ 2017-11-12 16:58 ` Weber, Matthias 2017-11-12 20:57 ` Otared Kavian 2017-11-13 8:03 ` Wolfgang Schuster 1 sibling, 1 reply; 8+ messages in thread From: Weber, Matthias @ 2017-11-12 16:58 UTC (permalink / raw) To: mailing list for ConTeXt users Same here. Curiously, the Garden version is ok, while the newest beta seems to make all alignments centered. Minimal Example: \starttext \startformula A=\startmathmatrix[align={right,right}] \NC1\NC-1\NR \NC-1\NC1\NR \stopmathmatrix \stopformula \stoptext Matthias > On Nov 12, 2017, at 11:37 AM, Otared Kavian <otared@gmail.com> wrote: > > Hi everybody, > > Does anyone have noticed that the mathalignment has changed its behaviour recently? I think a bug has managed to enter the environment which handles the mathalignment, at least since a few weeks ago. I did not report it earlier because I was traveling and did not have a stable internet access. > > Here is a minimal example where on can see in the first displayed formula that the first and third column are centered while the first one shoud be right-aligned and the third one left-aligned. (Actually it seems that all columns are centered…) > %%% begin pb-math-align.tex > \definemathmatrix[alignedcases] > [align={right,left,left}, > distance=3pt, > left={\left\{}, > right={\right.}, > style=\displaystyle] > > > \starttext > > \startformula > \startalignedcases > \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\;(0,T)\times\Omega \NR > \NC u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR > \NC \partial_{t} u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR > \NC {\partial u \over\partial{\bf n} } \NC = g(t,\sigma) \NC \quad \mbox{on }\; (0,T)\times\partial\Omega. \NR > \stopalignedcases > \stopformula > > > \startformula > \startalignedcases > \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\; (0,T)\times\Omega \NR > \NC - \Delta v \NC = q(x) \partial_{t}u \NC \quad\mbox{in }\; \Omega \NR > \stopalignedcases > \stopformula > > \stoptext > %%% end pb-math-align.tex > > <pb-align-math.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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Problem with math alignment 2017-11-12 16:58 ` Weber, Matthias @ 2017-11-12 20:57 ` Otared Kavian 0 siblings, 0 replies; 8+ messages in thread From: Otared Kavian @ 2017-11-12 20:57 UTC (permalink / raw) To: mailing list for ConTeXt users Hi Matthias, Thanks for your answer. I think that Hans has changed the way entries of mathmatrix are handled, that is they are now centered and this cannot be changed… However I think now that my way of using mathmatrix in order to get aligned cases, should be changed into the following: \definemathalignment[alignedcases] [n=3, align={right,left,left}, distance=3pt, left={\left\{}, right={\right.}, style=\displaystyle] Once this is done, the result is as expected since the math alignment environment accepts changing the alignment in each column. However the big problem is that one loses the left brace encompassing the displayed equations… I hope Hans will read this and help fix the issue… Best regards: OK %%% begin example-aligned-cases.tex \definemathalignment[alignedcases] [n=3, align={right,left,left}, distance=3pt, left={\left\{}, % this is not honoured… right={\right.}, style=\displaystyle] \starttext \startformula \startalignedcases \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\;(0,T)\times\Omega \NR \NC u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR \NC \partial_{t} u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR \NC {\partial u \over\partial{\bf n} } \NC = g(t,\sigma) \NC \quad \mbox{on }\; (0,T)\times\partial\Omega. \NR \stopalignedcases \stopformula \startformula \startalign[n=3,align={right,left,left}] \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\; (0,T)\times\Omega \NR \NC - \Delta v \NC = q(x) \partial_{t}u \NC \quad\mbox{in }\; \Omega \NR \stopalign \stopformula \startformula \startalignedcases \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\; (0,T)\times\Omega \NR \NC - \Delta v \NC = q(x) \partial_{t}u \NC \quad\mbox{in }\; \Omega \NR \stopalignedcases \stopformula \stoptext %%% end example-aligned-cases.tex > On 12 Nov 2017, at 17:58, Weber, Matthias <matweber@indiana.edu> wrote: > > Same here. Curiously, the Garden version is ok, while the newest beta seems to make all alignments centered. > > > Minimal Example: > > > \starttext > \startformula > A=\startmathmatrix[align={right,right}] > \NC1\NC-1\NR > \NC-1\NC1\NR > \stopmathmatrix > \stopformula > \stoptext > > Matthias > >> On Nov 12, 2017, at 11:37 AM, Otared Kavian <otared@gmail.com> wrote: >> >> Hi everybody, >> >> Does anyone have noticed that the mathalignment has changed its behaviour recently? I think a bug has managed to enter the environment which handles the mathalignment, at least since a few weeks ago. I did not report it earlier because I was traveling and did not have a stable internet access. >> >> Here is a minimal example where on can see in the first displayed formula that the first and third column are centered while the first one shoud be right-aligned and the third one left-aligned. (Actually it seems that all columns are centered…) >> %%% begin pb-math-align.tex >> \definemathmatrix[alignedcases] >> [align={right,left,left}, >> distance=3pt, >> left={\left\{}, >> right={\right.}, >> style=\displaystyle] >> >> >> \starttext >> >> \startformula >> \startalignedcases >> \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\;(0,T)\times\Omega \NR >> \NC u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR >> \NC \partial_{t} u(0,x) \NC = 0 \NC \quad \mbox{in }\; \Omega \NR >> \NC {\partial u \over\partial{\bf n} } \NC = g(t,\sigma) \NC \quad \mbox{on }\; (0,T)\times\partial\Omega. \NR >> \stopalignedcases >> \stopformula >> >> >> \startformula >> \startalignedcases >> \NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\mbox{in }\; (0,T)\times\Omega \NR >> \NC - \Delta v \NC = q(x) \partial_{t}u \NC \quad\mbox{in }\; \Omega \NR >> \stopalignedcases >> \stopformula >> >> \stoptext >> %%% end pb-math-align.tex >> >> <pb-align-math.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://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Problem with math alignment 2017-11-12 16:37 Otared Kavian 2017-11-12 16:58 ` Weber, Matthias @ 2017-11-13 8:03 ` Wolfgang Schuster [not found] ` <CBAE2B33-9EE5-4A60-9FD6-19583B05B091@gmail.com> 1 sibling, 1 reply; 8+ messages in thread From: Wolfgang Schuster @ 2017-11-13 8:03 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Otared Kavian [-- Attachment #1.1: Type: text/plain, Size: 523 bytes --] > Otared Kavian <mailto:otared@gmail.com> > 12. November 2017 um 17:37 > Hi everybody, > > Does anyone have noticed that the mathalignment has changed its > behaviour recently? I think a bug has managed to enter the environment > which handles the mathalignment, at least since a few weeks ago. I did > not report it earlier because I was traveling and did not have a > stable internet access. The align option for mathmatrix doesn’t work anymore because the function is disabled (commented) in the code. Wolfgang [-- Attachment #1.2: Type: text/html, Size: 1514 bytes --] [-- Attachment #2: Type: text/plain, Size: 492 bytes --] ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <CBAE2B33-9EE5-4A60-9FD6-19583B05B091@gmail.com>]
* Re: Problem with math alignment [not found] ` <CBAE2B33-9EE5-4A60-9FD6-19583B05B091@gmail.com> @ 2017-11-13 10:25 ` Wolfgang Schuster 0 siblings, 0 replies; 8+ messages in thread From: Wolfgang Schuster @ 2017-11-13 10:25 UTC (permalink / raw) To: Otared Kavian; +Cc: mailing users [-- Attachment #1.1: Type: text/plain, Size: 856 bytes --] > Otared Kavian <mailto:otared@gmail.com> > 13. November 2017 um 11:08 > > > Hi Wolfgang, > > Thanks for your help. In math-ali.mkiv there are the following lines: > > \setupmathmatrix > [\c!distance=\emwidth, > \c!left=, > \c!right=, > \c!align=\v!middle] > > Is it here where one has to change something? I confess that I am not > at all familiar with the source code… No, this is only the default setup for matrices. The alignment is done at the begin and end of the cell content (look at the commented commands below): \unexpanded\def\math_matrix_start_cell {\dostarttagged\t!mathtablecell\empty \hss %\math_left_of_equalign \startimath \math_matrix_set_style \tabskip\zeropoint \everycr\emptytoks} \unexpanded\def\math_matrix_stop_cell {\stopimath %\math_right_of_eqalign \hss \dostoptagged} Wolfgang [-- Attachment #1.2: Type: text/html, Size: 1957 bytes --] [-- Attachment #2: Type: text/plain, Size: 492 bytes --] ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-11-13 14:06 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <mailman.1.1510570801.1118.ntg-context@ntg.nl> 2017-11-13 14:06 ` Problem with math alignment Jeong Dal [not found] <mailman.1204.1510504666.1988.ntg-context@ntg.nl> 2017-11-13 2:12 ` Jeong Dal 2017-11-13 10:19 ` Otared Kavian 2017-11-12 16:37 Otared Kavian 2017-11-12 16:58 ` Weber, Matthias 2017-11-12 20:57 ` Otared Kavian 2017-11-13 8:03 ` Wolfgang Schuster [not found] ` <CBAE2B33-9EE5-4A60-9FD6-19583B05B091@gmail.com> 2017-11-13 10:25 ` Wolfgang Schuster
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).