Description
Trac2Latex is a set of Trac plugins and macros to convert Wiki files to Latex/Pdf, including a Latex [wiki:WikiProcessors WikiProcessor].
Source
You can check out Trac2LatexPlugin from http://code.google.com/p/trac2latex/ using Subversion:
svn checkout http://trac2latex.googlecode.com/svn/trunk/ trac2latex
Install
- Gen Trac2Latex egg
python setup.py bdist_egg
1Trac 0.10 uses new macro style (all macros are plugins). PLEASE COPY ALL FILES TO PLUGINS DIR NOT TO WIKI-MACROS DIR.
How to use
See WikiMacros help page (after installation).
Requirements
- Trac-0.10 or 0.11-dev
- Python
- Tetex-3.0, TexLive, Miktex, etc... (any Tex distribution).
- ImageMagick
Examples
To see Trac2Latex running go to http://code.chenca.org/wiki/trac2latex.
Latex Processor
{{{
#!Latex
$\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)]] [[LatexUsePkg(xcolor)]] [[LatexUsePkg(hyperref)]] [[LatexBeginDoc]] = Section = This is a section == SubSection == This is a subsection === SubSubSection === This is a subsubsection [[LatexEndDoc]]