--- loncom/xml/lonxml.pm 2004/02/05 21:00:15 1.300 +++ loncom/xml/lonxml.pm 2004/02/06 20:59:50 1.301 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.300 2004/02/05 21:00:15 albertel Exp $ +# $Id: lonxml.pm,v 1.301 2004/02/06 20:59:50 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -411,6 +411,7 @@ sub latex_special_symbols { # { or α $string=~s/(&(?!((\#[0-9]+)|([a-z]+));))/\\$1/gi; $string=~s/([^&])\#/$1\\#/g; + $string=~s/([^\\])\#/$1\\#/g; $string=~s/(\$|_|{|})/\\$1/g; $string=~s/\\char92 /\\texttt{\\char92}/g; $string=~s/(>|<)/\$$1\$/g; #more or less