ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \mframed not aligned in mkiv
Date: Tue, 22 Oct 2013 02:20:59 +0800	[thread overview]
Message-ID: <BA4CBB71-718D-4772-A583-B73580FDA46D@gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.02.1310211017080.15380@ybpnyubfg.ybpnyqbznva>

Thanks Aditya!
I overlooked this change in mkiv…

Best regards: OK

On 21 oct. 2013, at 22:18, Aditya Mahajan <adityam@umich.edu> wrote:

> On Mon, 21 Oct 2013, Otared Kavian wrote:
> 
>> Dear Hans,
>> 
>> I noticed a difference between mkii and mkiv in the behavior of \mframed: it seems that in mkiv the frame is not vertically aligned with the the + sign in the following example (or rather it is not vertically centered, please see the attached PDF produced with ConTeXt  ver: 2013.10.15 13:52 MKIV).
>> Does one have to use now a new key to require this sort of alignment?
>> 
>> Best regard: OK
>> 
>> %%%% begin mframed-example.tex
>> \setupcolors[state=start]
>> 
>> \def\graymath{\mframed[frame=off,
>>  background=color,
>>  backgroundcolor=lightgray,
>>  backgroundoffset=2pt
>>  ]}
>> 
>> \starttext
>> 
>> Since for $|x| < 1$ we have
>> \startformula
>> \log(1+x) = \graymath{x- \displaystyle{x^2\over2}} + {x^3 \over 3} + \cdots
>> \stopformula
>> we may write $\log(1+x) = x + O(x^2)$.
>> 
>> \stoptext
>> %%%% end mframed-example.tex
> 
> Search for "Alignment in inmframed" in the mailing list archives.
> 
> % The next statement is part of the core. Included it here for % illustration.
> 
> \definemathframed[mcframed] [location=mathematics]
> 
> \starttext
> 
> \startformula
>    \ln (1+x) = \mcframed[background=color,backgroundcolor=red,foregroundcolor=white,frame=off]{x - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3}}}}} +
> \frac{x^3}{3}-\cdots.
> \stopformula
> 
> \startformula
>    \ln (1+x) = \mcframed{x - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3}}}}} + \frac{x^3}{3}-\cdots.
> \stopformula
> 
> \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
___________________________________________________________________________________


  reply	other threads:[~2013-10-21 18:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-21  8:35 Otared Kavian
2013-10-21 14:18 ` Aditya Mahajan
2013-10-21 18:20   ` Otared Kavian [this message]
2013-10-22 14:02   ` Otared Kavian
2013-10-22 17:44     ` Aditya Mahajan

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=BA4CBB71-718D-4772-A583-B73580FDA46D@gmail.com \
    --to=otared@gmail.com \
    --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).