source: spip-zone/_plugins_/latexwheel/wheels/latex/latex-code.php @ 49380

Last change on this file since 49380 was 49380, checked in by maieul@…, 10 years ago

mettre en miniscule la classe de code pour permettre à minted d'intépreter

File size: 324 bytes
Line 
1<?php
2
3function tw_code_latex($code){
4        if (count($code)>1)
5                return "<html>\begin{minted}{".strtolower($code[2])."}";
6        else
7                return  "\end{minted}</html>";
8}
9
10function tw_cadre_latex($code){
11        if (count($code)>1)
12                return "<html>\begin{minted}[linenos]{".strtolower($code[2])."}";
13        else
14                return  "\end{minted}</html>";
15}
16?>
Note: See TracBrowser for help on using the repository browser.