Mailing List Archive


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

Re: [tlug] Poll: OpenOffice or LibreOffice?



> 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.)

Have a look at 17 at http://johnmacfarlane.net/pandoc/demos.html
You can click "math.text" to see the source, and then click the *.html
filenames to see the output. E.g.
http://johnmacfarlane.net/pandoc/demo/mathMathML.html

The equations are looking nice and scaleable in Firefox, at least.
(If you look in the HTML you see most of it is noise to support various
older browsers.)

I can copy and paste individual characters. What I cannot do in any of
the pages is highlight an entire equation and paste it into another
document. E.g. I get γ=11−v2/c2
If it had worked I'd have been amazed; I'm just saying that appears to
be the limit at the moment.

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.

Darren

[1]: For reference here is the markdown I tried.

## This is a markdown maths test

Normal paragraph. e=mc² written in straight text (using compose key).

Here is a square root: $$\sqrt{x^2 + y^2}$$ equation.

This has $$\textstyle {\int_{#1}\limits c_{#1,#1}}{(\gamma'\cdot{}\gamma)} =
  \left[\fend{c}{\gamma'}\right] \circ \left[\fend{c}{\gamma }\right]$$
some latex inlined.

This is the final paragraph, with a list:

* Did it work?
* Does it scale nicely in a browser?
* Was it easy?


[2]: I'm compiling with:
  pandoc test.txt -s -m -o test.html


-- 
Darren Cook, Software Researcher/Developer
My new book: Data Push Apps with HTML5 SSE
Published by O'Reilly: (ask me for a discount code!)
  http://shop.oreilly.com/product/0636920030928.do
Also on Amazon and at all good booksellers!


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links