Author: tommaso Date: Sun Jun 12 01:21:14 2011 New Revision: 39015 URL: http://www.lyx.org/trac/changeset/39015
Log: Now a regexp inset with a \backslash compiles. This is needed when instant preview is on, so we avoid the empty preview due to latex compilation error. Fixing issue 1. reported at: http://permalink.gmane.org/gmane.editors.lyx.devel/136992. Modified: lyx-devel/trunk/src/mathed/InsetMathHull.cpp Modified: lyx-devel/trunk/src/mathed/InsetMathHull.cpp ============================================================================== --- lyx-devel/trunk/src/mathed/InsetMathHull.cpp Sun Jun 12 00:55:53 2011 (r39014) +++ lyx-devel/trunk/src/mathed/InsetMathHull.cpp Sun Jun 12 01:21:14 2011 (r39015) @@ -742,7 +742,7 @@ features.addPreambleSnippet( string("\\newcommand{\\regexp}[1]{\\fcolorbox{") + frcol + string("}{") - + bgcol + string("}{\\texttt{#1}}}")); + + bgcol + string("}{\\ensuremath{\\mathtt{#1}}}}")); } // Validation is necessary only if not using AMS math.
