This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]


The LaTeX Plugin allows it to create a PDF document out of Wiki content. The user can define which pages are combined to a single document. Templates are used to define the document type (article, book, ...). The created PDF file is attached to the current page.

A sample document can be downloaded here: Sample.pdf.

This is what the plugin looks like on a wiki page:


This plugin is a rather large plugin. It requires a full LaTeX installation to work. The parser is based on the LatexConverter by Torsten Hildebrandt. The plugin consists of the plugin class that is used for the configuration and a Java servlet that does the actual job. Two other plugins (Bibliography and Cite) are used to make bibliography management inside of JSPWiki possible.

Due to the complexity of the plugin, the plugin description is splitted on several pages.


The installation is described on a separate page: LatexPluginInstallation.


To create a document out of two wiki pages following code can be used:

[{LatexConverter author='Steffen' title='Test document'


More examples can be found on the plugin documention pages below.

Plugin documentation#

The whole LaTeX plugin consists of three plugins which are explained on their on pages:


  • Version 0.1.0 was developed by the i3g insitute. Author is Steffen Schramm
  • Version 0.1.1 does not rely on PluginUtil any more


Hi, I would like to use this plugin. But it doesn't work with 2.4.x JSPWiki. I tried to patch it for JSPWiki 2.4.x but some source are missing: org.wikiwizard.jspwiki.plugin.PluginUtil

A working version of latexplugin for jspwiki 2.4.46 is attached (without


Fixed, the new version 0.1.1 does not rely on PluginUtil any more. By the way, what were the changes to make it run on 2.4?


Thank you!

Changes for 2.4:
com.ecyrd.jspwiki.auth.UserProfile does not exist in jspwiki 2.4 ist used instead.

This requires small changes in LatexServlet and LatexConverter.


PROBLEM (jspwiki.log):
JSPWiki:http://host:8080/JSPWiki/Wiki.jsp - Plugin failed while executing:
java.lang.NoSuchMethodError: com.ecyrd.jspwiki.WikiContext.getCurrentUser()Lcom/ecyrd/jspwiki/auth/UserProfile;
at org.wikiwizard.jspwiki.latex.LatexConverter.execute(
at com.ecyrd.jspwiki.plugin.PluginManager.execute(
at com.ecyrd.jspwiki.parser.PluginContent.getText(
at org.jdom.output.XMLOutputter.printTextRange(
at org.jdom.output.XMLOutputter.printContentRange(
at org.jdom.output.XMLOutputter.outputElementContent(
at com.ecyrd.jspwiki.render.XHTMLRenderer.getString(
at com.ecyrd.jspwiki.render.RenderingManager.getHTML(
at com.ecyrd.jspwiki.render.RenderingManager.getHTML(
at com.ecyrd.jspwiki.WikiEngine.textToHTML(
at com.ecyrd.jspwiki.WikiEngine.getHTML(
at com.ecyrd.jspwiki.tags.InsertPageTag.doWikiStartTag(
at com.ecyrd.jspwiki.tags.WikiTagBase.doStartTag(
at org.apache.jsp.templates.default_.PageContent_jsp._jspx_meth_wiki_005fInsertPage_005f0(
at org.apache.jsp.templates.default_.PageContent_jsp._jspService(
at org.apache.jasper.runtime.HttpJspBase.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.jasper.servlet.JspServletWrapper.service(
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
at org.apache.jasper.servlet.JspServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.ApplicationDispatcher.invoke(
at org.apache.catalina.core.ApplicationDispatcher.doInclude(
at org.apache.catalina.core.ApplicationDispatcher.include(

What's wrong?


I have just started using JSPWiki 2.4.91 (binary) and have used a few plugins and compiled and installed a simple HelloWorld plugin but have failed to get the Latex Plugin to work from either binary or source. There are two source zips and one binary on

I am unsure which source zip I should be using and if any other changes are needed, please advise. Is there a shell script or ant build file to build the latex.jar file ?

--AshleyFord, 26-Feb-2007

A modified version of LatexPlugin for JSPWiki 2.4.102 and MiKTeX you can find here


Tables problem: there seems to be a problem with tables formatting. E.g. content in the tables columns doesn't get wrapped if too long and therefore the tables do not fit the page width. Could somebody give me a hint how it could be fixed?

--RafalSmyka, 18.01.2008

I've just installed JSPWiki 2.6.4 rc 2 + Latex-plugin 0.1.1 , but I've got this ugly Exception :

java.lang.ClassCastException: [I
	at org.wikiwizard.jspwiki.latex.LatexConverter.getConverterForm(Unknown Source)
	at org.wikiwizard.jspwiki.latex.LatexConverter.execute(Unknown Source)
	at com.ecyrd.jspwiki.plugin.PluginManager.execute(
	at com.ecyrd.jspwiki.parser.PluginContent.getText(

Does anyone have any clue ?

AndreaCamurri, 08-Sep-2008

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
zip 185.9 kB 1 05-Sep-2006 16:15
« This particular version was published on 08-Sep-2008 11:32 by Andrea Camurri.