--- loncom/xml/lonxml.pm 2004/03/19 22:01:13 1.311 +++ loncom/xml/lonxml.pm 2004/03/19 22:06:53 1.312 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.311 2004/03/19 22:01:13 albertel Exp $ +# $Id: lonxml.pm,v 1.312 2004/03/19 22:06:53 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -408,6 +408,7 @@ sub latex_special_symbols { $string=~s/([^\\])\&/$1\\\&/g; $string=~s/([^\\])\#/$1\\\#/g; } else { + $string=~s/\\/\\ensuremath{\\backslash}/g; $string=~s/([^\\])\%/$1\\\%/g; $string=~s/([^\\])(\$|_)/$1\\$2/g; $string=~s/\$\$/\$\\\$/g;