Hello Davide,
okay, this post was sloppy, I try to explain:
\lb and \rb are just short commands for \left( and \right).
What I try to acomplish is to put parts of displayed math in a box
with a certain border color - I therefore defined myself
boxa,boxb,boxc,boxd,boxe for the colors I want to use:
% Colors
\colorlet{c1}{blue}
\newcommand{\boxa}[1]{\color{c1}{{\ovalbox{\color{black}#1}}}
\color{black}}
...
this is the only way (as far as i know) to get colored boxes in latex
math enviroment.
Before I inserted this code into my former jsMath enviroment I parsed
the files and created something like this:
begin{align*}
\text{\boxa{$5$}}
\end{align*}
\bbox[#ffffff,1pt,border:2px solid blue;border-radius:5px;]{5}
(the border-radius was just a css hack to get the rounded corners. the
color is replaced by a mapping of the letter attached to the box, in
this case "a" means blue)
I did all that to get a similar representation in my latex-pdf files
AND on the website.
I'm really looking forward to test MathJax v2.0 to see how bbox works
- and if there is a way to get the height of boxes matches to the
height of the content.
Or is there a misstake on my side?
best regards
stephan c.
On 25 Feb., 15:20, "Davide P. Cervone" <
d...@union.edu> wrote:
> Since MathJax doesn't process macros within \text{} (except within any
> math delimiters it contains), I don't see how your \boxe macro is
> going to be used at all. I'm also confused by the need for \text in
> the first place. What are you trying to accomplish?
>
> Note that \bbox and \cancel are included in MathJax v2.0, so you won't
> have to add them yourself once that it released this weekend.
>
> In any case, you will need to give us your definition of \boxe before
> we can determine anything. Also, what are \lb and \rb? If you could
> point to a page the includes this code, that might help.
>
> Davide
>
> On Feb 25, 2012, at 7:17 AM, Stephan Claus wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I'm currently switching from mathjs to mathjax and ran into a little
> > problem using the bbox extension mentioned here:
>
> >
http://groups.google.com/group/mathjax-users/browse_thread/thread/d59...