wiki:PageToLatexPlugin

Version 6 (modified by anonymous, 8 years ago) (diff)

remove notice since trac 0.10 has now shipped

A plugin for exporting Wiki pages as raw LaTeX (.tex)

Description

This plugin, like PageToPdfPlugin, uses the new content conversion API in Trac's trunk to export Wiki pages to LaTeX source (.tex). The link appears in the Download in other formats list at the bottom of Wiki pages.

This plugin uses an unstable inheritance hack of Trac's official Wiki Formatter (ticket on Edgewall).

Bugs/Feature Requests

Existing bugs and feature requests for PageToLatexPlugin are (todo).

If you have any issues, email the author.

Download

Download the gzipped source from the attachment.

Source

You can examine PageToLatexPlugin by downloading it and opening it up in a text editor ;-).

Recent Changes

Added a "patch" against 0.9.6 that I had floating around. 0.10 is doomed to failure and unmaintainability because the formatting logic that does tickets, changesets, etc has been moved out of the wiki Formatter and into plugin logic, hence we cannot override the methods! As at 0.9 this wasn't yet done, but I also haven't added all the "features" from the 0.10 plugin into the "patch" against 0.9.6.

Included is a Makefile -- sudo make install will, after a --dry-run, add wikilatex.py and replace web_ui.py in $(PYTHONPATH)/site-packages/trac/wiki then byte-compile.

Author/Contributors

Author:

Trent Apted

Contributors:

---

OK, no attachment -- I get

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 313, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 198, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 342, in process_request
    self._do_save(req, attachment)
  File "/usr/lib/python2.4/site-packages/trac/attachment.py", line 435, in _do_save
    for field, message in manipulator.validate_attachment(req, attachment):
  File "build/bdist.linux-i686/egg/tracspamfilter/adapters.py", line 102, in validate_attachment
  File "build/bdist.linux-i686/egg/tracspamfilter/api.py", line 70, in test
  File "build/bdist.linux-i686/egg/tracspamfilter/filters/akismet.py", line 59, in test
  File "build/bdist.linux-i686/egg/tracspamfilter/filters/akismet.py", line 90, in _check_comment
UnicodeDecodeError: 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128)

however I try, so get it off the ticket on Edgewall: pagetolatexplugin.tar.gz

Attachments (3)

Download all attachments as: .zip