Add the language option for the package

This commit is contained in:
Gregory Trolliet 2019-10-01 08:28:41 +02:00
parent 9f26e2dac4
commit ee8d030e5d
3 changed files with 20 additions and 3 deletions

View File

@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased]
## [0.4.0] - 2019-10-01
### Added
* formationTitle.sty, add the parameter for the language, options article
`english` (default) or `french`
## [0.3.0] - 2019-10-01
### Added
* formationTitle.sty, add new commands used to specify the location of

View File

@ -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}

View File

@ -2,7 +2,7 @@
\usepackage[a4paper, landscape]{geometry}
\usepackage{formationTitle}
\usepackage[english]{formationTitle}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}