Modify

Opened 7 years ago

Closed 7 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@… 7 years ago.
Enhanced version.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by ofv@…

Enhanced version.

comment:1 Changed 7 years ago by rlotun

  • Resolution set to fixed
  • Status changed from new to closed

(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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from rlotun. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.