Is there a plugin to export confluence pages as LaTeX source code?

Hi. I am looking for a way to export the content of (relatively simple structured) Confluence pages as LaTeX source code fragments. (That is, italics as \emph, headings at \section, \subsection, and so on.) Does someone know of a way of doing this?

Many thanks in advance.

4 answers

1 accepted

I am afraid, there is no such plugin. But maybe devloping your own plugin is an option?

If you are using Confluence >= 4 the contents of the pages are stored in XHTML. So you could write an XSL transformation that transforms the XHTML to LaTeX. Maybe [1] or [2] offers a good start. The transformation could be triggered via an entry in the Tools menu.

Regards,
Niels

1: http://www.w3.org/2004/04/xhlt91/
2:
http://www.cse.ohio-state.edu/~gurari/docs/mml-00/xhm2latex.html

Yes, this seems to be the way to do it properly. Thanks for the links.

Hi Marcel,

After researching through the https://marketplace.atlassian.com I couldn't find a plugin that fits your request. The only ones that I'd point out are the following:

Hope it helps!

Cheers.

Hi Alyson. Thanks for pointing to the marketplace. I have being looking there before myself, although I haven't found a matching plugin either. I was actually pondering on doing the "opposite" of what the both plugins you pointed to (or the MathJax plugin) are doing: exporting wiki content to latex documents (instead of entering latex source and displaying them in Confluence, which is what the plugins are used for).

I am still hoping that maybe someone has done this before and can give me any hint on how to convert Confluence content to latex source.

I am afraid, there is no such plugin. But maybe developing your own plugin is an option?

If you are using Confluence > 4 the contents of your pages are stored in XHTML. You could write an XSL stylesheet that transforms this XHTML to LaTeX. Maybe one of those is a start: [1,2]. The transformation could be triggered via a Tools-menu entry.

Regards,
Niels

1: http://www.w3.org/2004/04/xhlt91/
2:
http://www.cse.ohio-state.edu/~gurari/docs/mml-00/xhm2latex.html

As long as you only have a few pages to convert, there is a quite simple solution to get confluence pages converted to LaTeX. Just use "Tools -> View Storage format" to get the HTML of your page. Now you can revert to established tools like html2tex (http://www.iwriteiam.nl/html2tex.html).

Cheers,

Sebastian

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

374 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you