LaTeX Output Filter

Last modified by Vincent Massol on 2024/10/21 00:15

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

Vincent Massol, Thomas Mortagne

Active Installs44
Rating
0 Votes
LicenseGNU Lesser General Public License 2.1
Compatibility

Since v1.5 requires XWiki 10.2RC1

Installable with the Extension Manager

Description

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}}

Parameters

The filter support the following parameters:

ParameterTypesDescription
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

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

Get Connected