cogEntry point to export to LaTeX
TypeJAR
Developed by

Vincent Massol, Thomas Mortagne

Active Installs43
Rating
Rate!
0 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

Provide an entry point to export a wiki page into LaTeX content, see Output Filter for more details about the generated package.

Usage

You will get an entry in the export menu for LaTeX as follows:

export.png

Alternatively you can export a page by changing the /view/ action in the browser address bar into /latexexport/. For example to export the wiki home page you can use http://myhost/xwiki/bin/latexexport/Main/.

Then you'll get various export options that you can select/configure:

export-options.png

Convert to PDF

This will generate a ZIP file that you need to unzip. Then you need to convert the LaTeX content (the generated index.tex file) into a PDF.

This can be achieved very simply, using, for example, this LaTeX Docker image. Put yourself at the root of the unzipped ZIP and do the following (after having installed Docker if you don't have it already):

wget https://raw.githubusercontent.com/blang/latex-docker/master/latexdockercmd.sh
chmod +x latexdockercmd.sh
./latexdockercmd.sh pdflatex -shell-escape index.tex

This will generate an index.pdf file.

Example

Here's an example of the SandBox home page as a PDF.

Release Notes

All release notes

1.9.4

1.9.3

1.9.2

1.9.1

1.9

1.8

1.7.1

1.7

1.6

1.5

1.4

1.3

1.2

1.1

1.0

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.

Dependencies

Dependencies for this extension (org.xwiki.contrib.latex:latex-export 1.9.4):

Tags:
Created by Thomas Mortagne on 2018/02/23 16:33
    

Get Connected