Changeset 49426 in spip-zone
- Timestamp:
- Jul 5, 2011, 11:17:20 PM (10 years ago)
- Location:
- _plugins_/latexwheel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/latexwheel/latexwheel_fonctions.php
r49425 r49426 3 3 function propre_latex($t) { 4 4 5 $t = echappe_html(latex_echappe_coloration($t) ,'latex');5 $t = echappe_html(latex_echappe_coloration($t)); 6 6 7 7 $t = appliquer_regles_wheel($t,array('latex/latex.yaml')); 8 8 $t = latex_traiter_modeles($t); 9 $t = echappe_retour( $t,'latex');9 $t = echappe_retour(echappe_retour($t),'latex'); 10 10 11 11 return $t; -
_plugins_/latexwheel/wheels/latex/latex-code.php
r49425 r49426 3 3 function tw_code_latex($code){ 4 4 if (count($code)>1) 5 return "<html>\begin{minted}{".strtolower($code[2])."}\n";5 return echappe_html("<html>\begin{minted}{".strtolower($code[2])."}\n",'latex'); 6 6 else 7 return "\n\end{minted}</html>";7 return echappe_html("\n\end{minted}</html>",'latex'); 8 8 } 9 9 10 10 function tw_cadre_latex($code){ 11 11 if (count($code)>1) 12 return "<html>\begin{minted}[linenos]{".strtolower($code[2])."}\n";12 return echappe_html("<html>\begin{minted}[linenos]{".strtolower($code[2])."}\n",'latex'); 13 13 else 14 return "\n\end{minted}</html>";14 return echappe_html("\n\end{minted}</html>",'latex'); 15 15 } 16 16 ?> -
_plugins_/latexwheel/wheels/latex/latex.php
r49425 r49426 56 56 $array = array(); 57 57 58 preg_match_all('#verb \?(.*)\?#',$texte,$array,PREG_SET_ORDER);58 preg_match_all('#verb¡(.*)\¡#',$texte,$array,PREG_SET_ORDER); 59 59 foreach ($array as $i){ 60 60 $texte = str_replace("\\".$i[0],$i[1],$texte);
Note: See TracChangeset
for help on using the changeset viewer.