Modify

Opened 17 years ago

Closed 17 years ago

#1676 closed enhancement (fixed)

Corrections and enhancements.

Reported by: ofv@… Owned by: rlotun
Priority: normal Component: TracMathPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

Attached is an enhanced version of this interesting plugin. It contains the following stuff:

  • Corrected a bug where dvipng was invoked with imgname instead of imgpath.
  • Added support for configuring parameteres on trac.ini. This parameterers are supported: cache_dir, latex_cmd and dvipng_cmd. Example configuration for my windows machine with MikTex:
[tracmath]
cache_dir = c:/TEMP
latex_cmd = c:/apps/miktex/miktex/bin/latex.exe
dvipng_cmd = c:/apps/miktex/miktex/bin/dvipng.exe
  • Images are centered vertically.
  • Support for writing latex math in the usual way, i.e.: {{{$\pi \over 2 $}}} (Please observe the space before the closing $.) This feature is a bit controversial. It remains to be seen the implications of using the dollar sign for as a delimiter. This feature can be easily removed by deleting the IWikiSyntaxProvider methods.

TODO

  • Sanity checking for trac.ini parameters.
  • trac.ini entries for parameters for dvipng and latex.
  • Some system for deleting old entries on the cache.
  • Support for international characters withing Latex text. Right now, writing something like [[latex($á$)]] produces a traceback.

Attachments (1)

tracmath.py (5.2 KB) - added by ofv@… 17 years ago.
Enhanced version.

Download all attachments as: .zip

Change History (2)

Changed 17 years ago by ofv@…

Attachment: tracmath.py added

Enhanced version.

comment:1 Changed 17 years ago by rlotun

Resolution: fixed
Status: newclosed

(In [2316]) Contributed some changes and suggestions by ofv@…. Includes:

  • parsing of trac.ini for [tracmath] including options for cache_dir, latex_cmd, dvipng_cmd, max_png
  • a simple cache manager
  • unicode won't cause a traceback now

closes #1676

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain rlotun.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.