LaTeX Output Filter

Last modified by Vincent Massol on 2023/08/14 00:24

cogPerform the LaTeX export by generating the XDOM for each page to export and calling the LaTeX Renderer
Developed by

Vincent Massol, Thomas Mortagne

Active Installs61
0 Votes
LicenseGNU Lesser General Public License 2.1

Since v1.5 requires XWiki 10.2RC1

Installable with the Extension Manager


Can be used as an output stream filter to produce a package containing:

  • Each page converted into a LaTeX file
  • Each attachment/image used in the exported pages
  • An index.tex file to group all exported documents in one

Index Template

The generation of the index.tex file can be customized using the same mechanism described in the Templates mechanism.

The template name is latex/Index.

Overriding Commands

The default Index template defines 3 LaTeX commands that you can override in latex/Preamble if you wish to customize them:

  • \xwikidate (sets the \date)
  • \xwikiauthor (sets the \author)
  • \xwikititle (sets the \title)

Override example in latex/Preamble:

\renewcommand{\xwikidate}{\date{\today \\ \vfill ~ \\    Text at bottom of page}}


The filter support the following parameters:

targetAny OutputFilter provider an OutputStreamWhere to save the package
entitiesEntityReferenceSetThe exported entities (used by the filter to know how to react for link between exported documents)

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.


Dependencies for this extension (org.xwiki.contrib.latex:latex-filter 1.22):


Get Connected