LaTeX Exporter
![]() | Entry point to export to LaTeX |
Type | JAR |
Category | |
Developed by | |
Active Installs | 56 |
Rating | |
License | GNU Lesser General Public License 2.1 |
Compatibility | Since v1.5 requires XWiki 10.2RC1 |
Table of contents
Description
Provide an entry point to export a wiki page into:
- LaTeX content (you get a zip file containing the LaTeX files)
- 1.10+ PDF directly (the LaTeX files are converted to PDF)
See Output Filter for more details about the generated package.
Usage
Export
You will get 2 entries in the export menu for LaTeX as follows:
Note that exporting to PDF requires Docker to be installed, see the LaTeX to PDF documentation.
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/. If you pass the pdf=true query string parameter, the export will generate a PDF.
Options
Then you'll get various export options that you can select/configure:
Progress
1.12+
Since the export can take some time (especially on the first run if you're exporting to PDF and the Docker image used to convert from LaTeX to PDF hasn't been downloaded yet - this is needed only once), the export progress is shown with a progress bar.
Convert to PDF
If you export to LaTeX and wish to manually generate a PDF from it, you can achieve this, 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):
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
.Release Notes
1.13.1
1.13
1.12.4
1.12.3
1.12.2
1.12.1
1.12
1.11
1.10.1
1.10
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).
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.
Exporting to PDF requires Docker to be installed, see the LaTeX to PDF documentation.
Dependencies
Dependencies for this extension (org.xwiki.contrib.latex:latex-export 1.13.1):
- org.xwiki.contrib.latex:latex-filter 1.13.1
- org.xwiki.contrib.latex:latex-pdf 1.13.1
- org.xwiki.platform:xwiki-platform-uiextension-api 12.10
- org.xwiki.platform:xwiki-platform-filter-script 12.10
- org.xwiki.platform:xwiki-platform-classloader-xwiki 12.10
- org.eclipse.sisu:org.eclipse.sisu.plexus 0.3.4
- org.codehaus.plexus:plexus-archiver 4.2.3