Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Fwd: Re: Poll: OpenOffice or LibreOffice?



(I am resending this message with the attachment removed, as I suspect the
attachment is what caused the message to not go through.)

On 2014年05月19日 09:24, Darren Cook wrote:
>> Here's the LaTeX:
>>
>> \newcommand{\fend}[2]{\int_{#1}\limits #2_{#1,#1}}
>>
>> $$\textstyle \fend{c}{(\gamma'\cdot{}\gamma)} =
>>   \left[\fend{c}{\gamma'}\right] \circ \left[\fend{c}{\gamma }\right]$$
> 
> Curious about pandoc's mathML functionality I've been trying that, but
> it appears to get stuck on defining a new function. ...and I don't know
> enough Tex to inline the function manually [1].  (It might just be me
> missing some commandline option.)

Here is an inlined version for you to experiment with:

$$\textstyle \int_{c} (\gamma'\cdot{}\gamma)_{c,c} =
  \left[\int_{c} \gamma'_{c,c}\right] \circ
  \left[\int_{c} \gamma _{c,c}\right]$$

With your Pandoc command, LaTeXMathML is used to translate LaTeX math
syntax into MathML.  (Note that neither Pandoc nor LaTeX is not doing any
translation or rendering itself.)  LaTeXMathML does not seem to support
the \limits command (which places limits above and below the integral
symbol), so I removed such commands.

I am attaching a (trimmed) screenshot.  [Attachment Removed]

> Another limit (and again I may just not know how to do it) is I cannot
> seem to get an equation in a line.  E.g. in the below, the $$\sqrt{x^2 +
> y^2}$$ appears on its own line.

LaTeXMathML causes equations to be rendered in separate blocks because it
renders MathML within tables.  I tried the following CSS rule to make the
equations inline:

    .LaTeX table { display: inline; }

It works to some degree, but the vertical alignment of each equation would
need to be tweaked.  HTML+MathML sure is not LaTeX! ;)

Cheers,

Travis


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links