|
|
@ -1027,6 +1027,7 @@ function latex2html($line, $do_clean_extra_bracket=true) { |
|
|
|
|
|
|
|
|
|
|
|
$line = char2html($line,"'",'a',"acute"); |
|
|
|
$line = char2html($line,"'",'c',"acute"); |
|
|
|
$line = char2html($line,"'",'e',"acute"); |
|
|
|
$line = char2html($line,"'",'i',"acute"); |
|
|
|
$line = char2html($line,"'",'o',"acute"); |
|
|
@ -1061,6 +1062,7 @@ function latex2html($line, $do_clean_extra_bracket=true) { |
|
|
|
$line = char2html($line,'r','a',"ring"); |
|
|
|
|
|
|
|
$line = char2html($line,'c','c',"cedil"); |
|
|
|
$line = char2html($line,'c','s',"cedil"); |
|
|
|
$line = char2html($line,'v','s',"caron"); |
|
|
|
|
|
|
|
$line = str_replace('\\ae','æ', $line); |
|
|
@ -1079,6 +1081,12 @@ function latex2html($line, $do_clean_extra_bracket=true) { |
|
|
|
$line = str_replace('\\v{c}','č',$line); |
|
|
|
$line = str_replace('\\v{C}','Č',$line); |
|
|
|
|
|
|
|
// handling \textsuperscript{....} FAILS if there still are nested {}
|
|
|
|
$line = preg_replace('/\\\\textsuperscript\{(.*)\}/U','<sup>\\1</sup>', $line); |
|
|
|
|
|
|
|
// handling \textsubscript{....} FAILS if there still are nested {}
|
|
|
|
$line = preg_replace('/\\\\textsubscript\{(.*)\}/U','<sub>\\1</sub>', $line); |
|
|
|
|
|
|
|
if ($do_clean_extra_bracket) { |
|
|
|
// clean extra tex curly brackets, usually used for preserving capitals
|
|
|
|
// must come before the final math replacement
|
|
|
|