Add the language option for the package
This commit is contained in:
parent
9f26e2dac4
commit
ee8d030e5d
3 changed files with 20 additions and 3 deletions
|
@ -1,9 +1,21 @@
|
|||
% Copyright note: This package define a formation title
|
||||
\ProvidesPackage{formationTitle}[2019/10/01 v.0.3.0 a formation title
|
||||
\ProvidesPackage{formationTitle}[2019/10/01 v.0.4.0 a formation title
|
||||
Gregory Trolliet]
|
||||
|
||||
%Set the actual language, #1 for english and #2 for french
|
||||
\newcommand{\dumblang}[2]{{#1}}
|
||||
|
||||
\DeclareOption{english}{
|
||||
\renewcommand{\dumblang}[2]{#1}
|
||||
}
|
||||
|
||||
\DeclareOption{french}{
|
||||
\renewcommand{\dumblang}[2]{#2}
|
||||
}
|
||||
|
||||
\ExecuteOptions{english}
|
||||
\ProcessOptions\relax
|
||||
|
||||
%Set the actual language, #1 for english and #2 for french
|
||||
\usepackage[\dumblang{english}{french}]{babel}
|
||||
|
||||
\RequirePackage{graphicx}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue