Probleme d'algorithme en latex
an1981
Messages postés
5
Statut
Membre
-
amal-these Messages postés 26 Statut Membre -
amal-these Messages postés 26 Statut Membre -
Bonjour,
donc j'ai toujours le même problème.
Je veux ecrire un algorithme dans mon rapport avec la tex, j'ai utilisé les package algorithm et algorithmic. ça donne un résultats mais le problème est que les mots clé tels que if, end, for, while, ... etc sont écrit en anglais alors que mon rapport est en français.
est ce qu'il ya un moyen d'écrire ces mots clé en français ou bien est ce qu'il existe un autre package qui le fait.
Merci.
donc j'ai toujours le même problème.
Je veux ecrire un algorithme dans mon rapport avec la tex, j'ai utilisé les package algorithm et algorithmic. ça donne un résultats mais le problème est que les mots clé tels que if, end, for, while, ... etc sont écrit en anglais alors que mon rapport est en français.
est ce qu'il ya un moyen d'écrire ces mots clé en français ou bien est ce qu'il existe un autre package qui le fait.
Merci.
Configuration: Windows XP Internet Explorer 6.0
2 réponses
-
Bonjour,
j'ai trouvé ça :%%% francisation des algorithmes \renewcommand{\algorithmicrequire} {\textbf{\textsc{Entrées:}}} \renewcommand{\algorithmicensure} {\textbf{\textsc{Sorties:}}} \renewcommand{\algorithmicwhile} {\textbf{tantque}} \renewcommand{\algorithmicdo} {\textbf{faire}} \renewcommand{\algorithmicendwhile}{\textbf{fin tantque}} \renewcommand{\algorithmicend} {\textbf{fin}} \renewcommand{\algorithmicif} {\textbf{si}} \renewcommand{\algorithmicendif} {\textbf{finsi}} \renewcommand{\algorithmicelse} {\textbf{sinon}} \renewcommand{\algorithmicthen} {\textbf{alors}} \renewcommand{\algorithmicfor} {\textbf{pour}} \renewcommand{\algorithmicforall} {\textbf{pour tout}} \renewcommand{\algorithmicdo} {\textbf{faire}} \renewcommand{\algorithmicendfor} {\textbf{fin pour}} \renewcommand{\algorithmicloop} {\textbf{boucler}} \renewcommand{\algorithmicendloop} {\textbf{fin boucle}} \renewcommand{\algorithmicrepeat} {\textbf{répéter}} \renewcommand{\algorithmicuntil} {\textbf{jusqu'à}}
(la suite sur http://quickies.seriot.ch/index.php?cat=1#a8 ) -
Je suppose que tu utilises le package «?algorithm2e?», celui-ci possède une option pour la langue :
\usepackage[french]{algorithm2e}
;)