Commit 0409da1e authored by Ellon Mendes's avatar Ellon Mendes
Browse files

Make the language a (mandatory) document class option

parent d5ba74dc
......@@ -55,6 +55,9 @@
\ProvidesClass{StyleThese}
[2004/02/16 v1.4f
Standard LaTeX document class]
\RequirePackage{etoolbox}
\DeclareOption{french}{\newtoggle{ThesisInEnglish}\togglefalse{ThesisInEnglish}}
\DeclareOption{english}{\newtoggle{ThesisInEnglish}\toggletrue{ThesisInEnglish}}
\newcommand\@ptsize{}
\newif\if@restonecol
\newif\if@titlepage
......
\documentclass[a4paper,11pt,twoside]{StyleThese}
% Choose the language of your thesis passing 'french' or 'english' as
% \documentclass option.
% Note1: The 'page de garde' will always be written in French.
% Note2: You will have an error if you change the language of the document and
% compile it without cleaning the auxiliary files. Compiling it again
% should solve the problem.
\documentclass[french,a4paper,11pt,twoside]{StyleThese}
\newcommand{\included}{}
\usepackage{etoolbox} % Package used to manage the language of the thesis
\newtoggle{ThesisInEnglish} % Variable used to define if the thesis is written in english
% Select the language of your thesis by commenting out ONE of the lines below.
% Note1: the 'page de garde' will always be written in French, no matter the
% language selected below.
% Note2: You will need to recompile twice your document (or clear the auxiliary
% files before compiling) if you change the language of your document
%\toggletrue{ThesisInEnglish} % use this line if your thesis is written in ENGLISH
\togglefalse{ThesisInEnglish} % use this line if your thesis is written in FRENCH
\include{formatAndDefs}
\sloppy
\begin{document}
......
\usepackage{amsmath,amssymb} % AMS Math
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\iftoggle{ThesisInEnglish}{%
\usepackage[english]{babel}
}{ %
\usepackage[french]{babel}
}
\usepackage{babel}
\usepackage{lmodern}
\usepackage{tabularx}
%\usepackage{tabular}
......@@ -18,11 +15,7 @@
% Table of contents for each chapter
\usepackage[nottoc, notlof, notlot]{tocbibind}
\iftoggle{ThesisInEnglish}{%
\usepackage[english]{minitoc}
}{ %
\usepackage[french]{minitoc}
}
\usepackage{minitoc}
\setcounter{minitocdepth}{2}
\mtcindent=15pt
% Use \minitoc where to put a table of contents
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment