Version 6 (modified by chenca, 11 years ago) (diff)


Trac plugins and macros to convert Wiki files to Latex/Pdf


Trac2Latex is a set of Trac plugins and macros to convert Wiki files to Latex/Pdf, including a Latex WikiProcessor.

Bugs/Feature Requests

Existing bugs and feature requests for Trac2LatexPlugin are here.

If you have any issues, create a new ticket.


You can check out Trac2LatexPlugin from using Subversion:

svn checkout trac2latex


  • Copy all macro files (.py) and plugins files (.egg) to Trac plugins* directory.
  • Restart Trac web server.

*Trac 0.10 uses new macro style (all macros are plugins).

How to use

See WikiMacros help page (after installation).


  • Trac-0.10
  • Tetex-3.0, Miktex, etc... (any Tex distribution).
  • Python
  • ImageMagick
  • Latex write18 (shell escape) enabled (see howto below)

How to enable latex write18 support

  • find file texmf.cnf, "kpsewhich texmf.cnf"
  • change shell_escape property to "t"


Latex Processor

$\frac{\alpha{2 + \beta}}{\delta_x}$

This code will produce a PNG file and a PDF file, both will be added to Attachments section.

Latex Document

You can generate a wholly Latex document using some TexMacros and clicking in the Latex-PDF or Latex link at the end of the page

[[LatexDocCls(article, a4paper)]]

= Section =

This is a section

== SubSection ==

This is a subsection

=== SubSubSection ===

This is a subsubsection


Recent Changes

ChangeLog macro failed
No node trac2latexplugin at revision 17223


Author: chenca

Attachments (1)

Download all attachments as: .zip