diff --git a/admin/survey/export/latexclasses/class.LatexSurveyElement.php b/admin/survey/export/latexclasses/class.LatexSurveyElement.php index e3c5eeab1..e17fa37d1 100644 --- a/admin/survey/export/latexclasses/class.LatexSurveyElement.php +++ b/admin/survey/export/latexclasses/class.LatexSurveyElement.php @@ -906,7 +906,12 @@ class LatexSurveyElement{ //$text = str_replace('{','\{',$text); //$text = str_replace('}','\}',$text); $text = str_replace('$','\$ ',$text); - $text = str_replace('#','\# ',$text); + + if(substr_count($text, '#')){ //ce je stevilo # vecje od 1 + $text = str_replace('#','\#',$text); + }else{ + $text = str_replace('#','\# ',$text); + } $text = str_replace('%','\% ',$text); $text = str_replace('€','\euro',$text); $text = str_replace('^','\textasciicircum{} ',$text); @@ -923,7 +928,7 @@ class LatexSurveyElement{ //$text = str_replace('>','\textgreater ',$text); $text = str_replace('>',' \textgreater ',$text); //ureditev posebnih karakterjev za Latex - konec - + //ureditev grskih crk $text = str_replace('α','\textalpha ',$text); $text = str_replace('β','\textbeta ',$text);