File:  [LON-CAPA] / loncom / cgi / mimeTeX / commands
Revision 1.2: download - view: text, annotated - select for diffs
Tue Jul 15 10:49:02 2008 UTC (15 years, 10 months ago) by foxr
Branches: MAIN
CVS tags: version_2_7_X, version_2_7_1, version_2_7_0, HEAD
bz5632 - add support to render the following tex constructs in mimetex:
\xleftarrow{x}  - x on top of a left arrow.
\xrightarrow{x} - x on top of a left arrow.
\xleftrightharpoons{x} - X on top of left/right harpoons.
\autorightleftharpoons{x}{y} x on top, y below left right harpoons.

This has been done by using a supported mimetex extension for defining
latex macros and using the constructs suggested by Ray Batchelor in the
original request. Therefore
- New file: loncapanewcommands.h
- Modified commands to define NEWCOMMANDS such that loncapanewcommands.h
 is included by mimetex in its macro definition sections.

No changes to mimetex.c were required... this is a supported way to add
extensions to mimetex.

#!/bin/sh
cc -DAA -DCACHEPATH=\"mimetexcache/\" -DNEWCOMMANDS="\"loncapanewcommands.h\"" \
    mimetex.c gifsave.c -lm -o mimetex.cgi


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>