Moved user packages and references to subdirectories

This commit is contained in:
saundersp
2024-05-09 19:23:20 +02:00
parent 030342f2e3
commit 70fa023190
7 changed files with 28 additions and 24 deletions

View File

@ -0,0 +1,30 @@
\ProvidesPackage{language_selector}
\DeclareOption{french}{
\def\langoption{french}
\newcommand{\lang}[2]{#1}
\newcommand{\langtitle}[2]{\title{#1}}
\newcommand{\langchapter}[2]{\chapter{#1}}
\newcommand{\langsection}[2]{\section{#1}}
\newcommand{\langsubsection}[2]{\subsection{#1}}
\newcommand{\langsubsubsection}[2]{\subsubsection{#1}}
\newcommand{\langsubsubsubsection}[2]{\subsubsubsection{#1}}
\newcommand{\langnewcites}[3]{\newcites{#1}{#2}}
}
\DeclareOption{english}{
\def\langoption{english}
\newcommand{\lang}[2]{#2}
\newcommand{\langtitle}[2]{\title{#2}}
\newcommand{\langchapter}[2]{\chapter{#2}}
\newcommand{\langsection}[2]{\section{#2}}
\newcommand{\langsubsection}[2]{\subsection{#2}}
\newcommand{\langsubsubsection}[2]{\subsubsection{#2}}
\newcommand{\langsubsubsubsection}[2]{\subsubsubsection{#2}}
\newcommand{\langnewcites}[3]{\newcites{#1}{#3}}
}
\ProcessOptions\relax
% Format
\RequirePackage[\langoption]{babel}