La configuration des langues avec \documentclass[mainlanguage=english,french]{yathesis} %\documentclass{book} \usepackage[algo2e]{algorithm2e} \begin{document} \mainmatter \begin{algorithm2e}[ht]\caption{Test}\label{alg:PPCG} Test\; \For{Test}{ Test\; } \end{algorithm2e} \end{document} |
Ce n'est pas la configuration de Voici une solution. \documentclass[mainlanguage=english]{yathesis} \usepackage[algo2e]{algorithm2e} \makeatletter \addto\captionsenglish{ \renewcommand{\listalgorithmcfname}{List of Algorithms} \renewcommand{\algorithmcfname}{Algorithm} \renewcommand{\algorithmautorefname}{algorithm} \renewcommand{\algorithmcflinename}{line} \renewcommand{\algocf@typo}{} \renewcommand{\@algocf@procname}{Procedure} \renewcommand{\@algocf@funcname}{Function} \renewcommand{\procedureautorefname}{procedure} \renewcommand{\functionautorefname}{function} \renewcommand{\algocf@languagechoosen}{english} } \makeatother \begin{document} \begin{algorithm2e}[ht]\caption{Test}\label{alg:PPCG} Test\; \For{Test}{ Test\; } \end{algorithm2e} \end{document} |