* Flushleft formula
@ 2016-06-16 16:58 Aditya Mahajan
2016-06-16 20:46 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2016-06-16 16:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 590 bytes --]
Hi,
Something has changed with respect to the align=flushleft option for
formulas. Earlier (tested with 2016.05.08), align=flushleft did not remove
the leftskip, but now it does.
Consider the following example:
\showframe
\setupitemize[margin=6em]
\setupformula[align=flushleft]
\starttext
\startitemize
\item An equation inside an itemize
\startformula
E = mc^2
\stopformula
\stopitemize
\stoptext
The output of 2016.05.06 is attached as test-old.pdf; that of 2016.06.16
is attached as test-new.pdf
Is it possible to revert to the old behavior?
Thanks,
Aditya
[-- Attachment #2: Type: APPLICATION/pdf, Size: 9820 bytes --]
[-- Attachment #3: Type: APPLICATION/pdf, Size: 9813 bytes --]
[-- Attachment #4: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Flushleft formula
2016-06-16 16:58 Flushleft formula Aditya Mahajan
@ 2016-06-16 20:46 ` Hans Hagen
2016-06-16 22:18 ` Aditya Mahajan
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2016-06-16 20:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 6/16/2016 6:58 PM, Aditya Mahajan wrote:
> Hi,
>
> Something has changed with respect to the align=flushleft option for
> formulas. Earlier (tested with 2016.05.08), align=flushleft did not
> remove the leftskip, but now it does.
it doesn't but somehow it's not effective
(indeed spacing was updated, some more - future - possibilities and
bester handling in boxes and such)
> Consider the following example:
>
> \showframe
> \setupitemize[margin=6em]
> \setupformula[align=flushleft]
>
> \starttext
> \startitemize
> \item An equation inside an itemize
> \startformula
> E = mc^2
> \stopformula
> \stopitemize
> \stoptext
>
> The output of 2016.05.06 is attached as test-old.pdf; that of 2016.06.16
> is attached as test-new.pdf
>
> Is it possible to revert to the old behavior?
can you test with
\hskip\d_strc_formulas_display_margin_left % was kern but that
doesn't indent
line 1153 in math-ali.mkiv
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Flushleft formula
2016-06-16 20:46 ` Hans Hagen
@ 2016-06-16 22:18 ` Aditya Mahajan
2016-06-17 4:24 ` Alan BRASLAU
2016-06-17 7:40 ` Hans Hagen
0 siblings, 2 replies; 7+ messages in thread
From: Aditya Mahajan @ 2016-06-16 22:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, 16 Jun 2016, Hans Hagen wrote:
> On 6/16/2016 6:58 PM, Aditya Mahajan wrote:
>> Hi,
>>
>> Something has changed with respect to the align=flushleft option for
>> formulas. Earlier (tested with 2016.05.08), align=flushleft did not
>> remove the leftskip, but now it does.
>
> it doesn't but somehow it's not effective
>
> (indeed spacing was updated, some more - future - possibilities and bester
> handling in boxes and such)
And some stage, it will be nice to discuss the possiblility of adding
background to formulas, especially aligned formulas. Similar to some of
the examples in
http://texdoc.net/texmf-dist/doc/latex/mathtools/empheq.pdf
>> Consider the following example:
>>
>> \showframe
>> \setupitemize[margin=6em]
>> \setupformula[align=flushleft]
>>
>> \starttext
>> \startitemize
>> \item An equation inside an itemize
>> \startformula
>> E = mc^2
>> \stopformula
>> \stopitemize
>> \stoptext
>>
>> The output of 2016.05.06 is attached as test-old.pdf; that of 2016.06.16
>> is attached as test-new.pdf
>>
>> Is it possible to revert to the old behavior?
>
> can you test with
>
> \hskip\d_strc_formulas_display_margin_left % was kern but that doesn't
> indent
>
> line 1153 in math-ali.mkiv
I guess you already added it to the new beta. It works correctly.
Thanks,
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Flushleft formula
2016-06-16 22:18 ` Aditya Mahajan
@ 2016-06-17 4:24 ` Alan BRASLAU
2016-06-17 5:48 ` Aditya Mahajan
2016-06-17 7:40 ` Hans Hagen
1 sibling, 1 reply; 7+ messages in thread
From: Alan BRASLAU @ 2016-06-17 4:24 UTC (permalink / raw)
To: Aditya Mahajan; +Cc: mailing list for ConTeXt users
On Thu, 16 Jun 2016 18:18:58 -0400
Aditya Mahajan <adityam@umich.edu> wrote:
> And some stage, it will be nice to discuss the possiblility of adding
> background to formulas, especially aligned formulas.
something like a
\setupformula
[before={\startframedtext[background=color,backgroundcolor=lightblue]},
after={\stopframedtext}]
?
("untested")
Alan
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Flushleft formula
2016-06-17 4:24 ` Alan BRASLAU
@ 2016-06-17 5:48 ` Aditya Mahajan
2016-06-18 14:42 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2016-06-17 5:48 UTC (permalink / raw)
To: Alan BRASLAU; +Cc: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 562 bytes --]
On Thu, 16 Jun 2016, Alan BRASLAU wrote:
> On Thu, 16 Jun 2016 18:18:58 -0400
> Aditya Mahajan <adityam@umich.edu> wrote:
>
>> And some stage, it will be nice to discuss the possiblility of adding
>> background to formulas, especially aligned formulas.
>
> something like a
>
> \setupformula
> [before={\startframedtext[background=color,backgroundcolor=lightblue]},
> after={\stopframedtext}]
One typically wants to have a bounding box around the displayed math, but
not the white space or the equation number. For example, see the attached
image.
Aditya
[-- Attachment #2: Type: IMAGE/png, Size: 60981 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Flushleft formula
2016-06-16 22:18 ` Aditya Mahajan
2016-06-17 4:24 ` Alan BRASLAU
@ 2016-06-17 7:40 ` Hans Hagen
1 sibling, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2016-06-17 7:40 UTC (permalink / raw)
To: ntg-context
On 6/17/2016 12:18 AM, Aditya Mahajan wrote:
> On Thu, 16 Jun 2016, Hans Hagen wrote:
>
>> On 6/16/2016 6:58 PM, Aditya Mahajan wrote:
>>> Hi,
>>>
>>> Something has changed with respect to the align=flushleft option for
>>> formulas. Earlier (tested with 2016.05.08), align=flushleft did not
>>> remove the leftskip, but now it does.
>>
>> it doesn't but somehow it's not effective
>>
>> (indeed spacing was updated, some more - future - possibilities and
>> bester handling in boxes and such)
>
> And some stage, it will be nice to discuss the possiblility of adding
> background to formulas, especially aligned formulas. Similar to some of
> the examples in http://texdoc.net/texmf-dist/doc/latex/mathtools/empheq.pdf
actually, backgrounds were a reason for some changes but the code that
does that is not yet integrated (still considering the interface)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Flushleft formula
2016-06-17 5:48 ` Aditya Mahajan
@ 2016-06-18 14:42 ` Hans Hagen
0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2016-06-18 14:42 UTC (permalink / raw)
To: ntg-context
On 6/17/2016 7:48 AM, Aditya Mahajan wrote:
> On Thu, 16 Jun 2016, Alan BRASLAU wrote:
>
>> On Thu, 16 Jun 2016 18:18:58 -0400
>> Aditya Mahajan <adityam@umich.edu> wrote:
>>
>>> And some stage, it will be nice to discuss the possiblility of adding
>>> background to formulas, especially aligned formulas.
>>
>> something like a
>>
>> \setupformula
>> [before={\startframedtext[background=color,backgroundcolor=lightblue]},
>> after={\stopframedtext}]
>
> One typically wants to have a bounding box around the displayed math,
> but not the white space or the equation number. For example, see the
> attached image.
experimental framed support in beta ...
\starttext
\setupformulaframed[framecolor=red,frame=on,offset=1ex]
\setupformula[option=frame,color=blue]
\setupformula[numbercommand={\inframed[framecolor=green]}]
\startplaceformula
\startformula
2 + 2 = 3 + 1
\stopformula
\stopplaceformula
\stoptext
see framed-002.tex in test suite for a bunch of examples
(rather tricky with respect to spacing and alignments etc)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-06-18 14:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-16 16:58 Flushleft formula Aditya Mahajan
2016-06-16 20:46 ` Hans Hagen
2016-06-16 22:18 ` Aditya Mahajan
2016-06-17 4:24 ` Alan BRASLAU
2016-06-17 5:48 ` Aditya Mahajan
2016-06-18 14:42 ` Hans Hagen
2016-06-17 7:40 ` Hans Hagen
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).