Modify ↓
Opened 18 years ago
Closed 18 years ago
#1676 closed enhancement (fixed)
Corrections and enhancements.
| Reported by: | 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
imgnameinstead ofimgpath.
- 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.iniparameters.
trac.inientries for parameters fordvipngandlatex.
- 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)
Change History (2)
Changed 18 years ago by
| Attachment: | tracmath.py added |
|---|
comment:1 Changed 18 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.



Enhanced version.