adityam / filter

ConTeXt module to process contents of a start-stop environment through an external program
45 stars 10 forks source link

escape comments = yes|no #6

Closed adityam closed 12 years ago

adityam commented 12 years ago

Provide an escape comments = yes|no option that will not escape \{} inside the Comment regions. The current behaviour is equivalent to escapecomments=no. With escapecomments=yes, one can say:

/* The following function computers the roots of \m{ax^2 + bx + c = 0} using the 
    determinant \m{\Delta = \frac {-b \pm \sqrt{b^2 - 2ac}}{2a}}                                  */
    double root (double a, double b, double c) {....}

so that the \ in the comments are not escaped and then the math is typeset using TeX.

adityam commented 12 years ago

Implemented in 175fabe10c78011db4bce6dcde17444e646884f5