Changeset 49416 in spip-zone


Ignore:
Timestamp:
Jul 5, 2011, 9:02:36 PM (10 years ago)
Author:
maieul@…
Message:

choix du setmainlanguage

Location:
_galaxie_/programmer.spip.org/plugin_latex
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • _galaxie_/programmer.spip.org/plugin_latex/preambule.html

    r49415 r49416  
     1#HTTP_HEADER{content-type:text/plain}
    12\usepackage{fontspec,xltxtra,xunicode}
    23\defaultfontfeatures{Mapping=tex-text}
     
    56\setmonofont[Scale=MatchLowercase]{Andale Mono}
    67\usepackage{polyglossia}
     8\setmainlanguage{[(#ENV{lang}|programmer2latex_polyglossia)]}
    79\usepackage{minted}
    810\usepackage{longtable}
  • _galaxie_/programmer.spip.org/plugin_latex/programmer2latex_fonctions.php

    r49372 r49416  
    11<?php
    22
     3function programmer2latex_polyglossia($lang){
     4        $tableau = array(
     5                'fr' => 'french',
     6                'en' => 'english',
     7                'es' => 'spanish');
     8        return $tableau[$lang];         
     9}
    310
    411function programmer2latex_zipper($lang){
     
    916        # Fichiers de bases
    1017        programmer2latex_copier_tex('documentation.tex',_DIR_PROGRAMMER2LATEX.'/documentation.tex');
    11         programmer2latex_copier_tex('inclus/preambule.tex',_DIR_PROGRAMMER2LATEX.'/inclus/preambule.tex');
     18        programmer2latex_creer_tex('preambule','/inclus/preambule',array('lang'=>$lang));
    1219               
    1320        programmer2latex_creer_tex('latex_plan','inclus/plan',array('lang'=>$lang));
Note: See TracChangeset for help on using the changeset viewer.