diff --git a/CHANGELOG.md b/CHANGELOG.md index 519b5c6..5678ecd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/formationTitle.sty b/formationTitle.sty index fd1904d..aeb7ad5 100644 --- a/formationTitle.sty +++ b/formationTitle.sty @@ -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} diff --git a/plan.tex b/plan.tex index ea0b6fa..5550754 100644 --- a/plan.tex +++ b/plan.tex @@ -2,7 +2,7 @@ \usepackage[a4paper, landscape]{geometry} -\usepackage{formationTitle} +\usepackage[english]{formationTitle} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}