Populate class with class
This commit is contained in:
parent
3bf620ae54
commit
676a42ddfb
103
jl-devoir/amsthm.tex
Normal file
103
jl-devoir/amsthm.tex
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%
|
||||||
|
%
|
||||||
|
% AMSTHM
|
||||||
|
%
|
||||||
|
%
|
||||||
|
|
||||||
|
|
||||||
|
%% AMSThm styles for exercises
|
||||||
|
%%
|
||||||
|
|
||||||
|
\newtheoremstyle{exostyle1}
|
||||||
|
{\topsep}% espace avant
|
||||||
|
{\topsep}% espace apres
|
||||||
|
{}% Police utilisee par le style de thm
|
||||||
|
{}% Indentation (vide = aucune, \parindent = indentation paragraphe)
|
||||||
|
{\bfseries}% Police du titre de thm
|
||||||
|
{}% Signe de ponctuation apres le titre du thm
|
||||||
|
{\newline}% Espace apres le titre du thm (\newline = linebreak)
|
||||||
|
{%
|
||||||
|
\if\relax\detokenize{#3}\relax
|
||||||
|
% no optional argument
|
||||||
|
\else
|
||||||
|
\makebox[0pt][l]{\hspace{.9\textwidth}\normalfont\itshape#3}%
|
||||||
|
\fi
|
||||||
|
\thmname{#1}\thmnumber{ #2}%
|
||||||
|
}
|
||||||
|
|
||||||
|
\newtheoremstyle{exostyle2}
|
||||||
|
{\topsep}% espace avant
|
||||||
|
{\topsep}% espace apres
|
||||||
|
{}% Police utilisee par le style de thm
|
||||||
|
{}% Indentation (vide = aucune, \parindent = indentation paragraphe)
|
||||||
|
{\bfseries}% Police du titre de thm
|
||||||
|
{}% Signe de ponctuation apres le titre du thm
|
||||||
|
{\newline}% Espace apres le titre du thm (\newline = linebreak)
|
||||||
|
{%
|
||||||
|
\if\relax\detokenize{#3}\relax
|
||||||
|
% no optional argument
|
||||||
|
\else
|
||||||
|
\makebox[0pt][l]{\hspace{.9\textwidth}\normalfont\itshape#3}%
|
||||||
|
\fi
|
||||||
|
\thmname{#1 }%
|
||||||
|
}
|
||||||
|
|
||||||
|
\theoremstyle{exostyle1}
|
||||||
|
\newtheorem{exercice}{Exercice}
|
||||||
|
\newtheorem{exercice*}[exercice]{\faPencil \ Exercice}
|
||||||
|
|
||||||
|
\theoremstyle{exostyle2}
|
||||||
|
\newtheorem{exercice**}{Exercice}
|
||||||
|
|
||||||
|
% amsthm proofs customization
|
||||||
|
\newenvironment{solution}
|
||||||
|
{\begin{proof}[\textbf{Solution}]}
|
||||||
|
{\end{proof}}
|
||||||
|
|
||||||
|
%
|
||||||
|
%
|
||||||
|
% TODO: Replace amsthm exercices with xsim
|
||||||
|
%
|
||||||
|
%
|
||||||
|
%\usepackage{xsim}
|
||||||
|
%
|
||||||
|
%\DeclareExerciseTranslations{exercise}{
|
||||||
|
% Fallback = exercise,
|
||||||
|
% English = exercise,
|
||||||
|
% French = exercice
|
||||||
|
%}
|
||||||
|
%
|
||||||
|
%\DeclareExerciseType{exercice}{
|
||||||
|
% exercise-env = exercice ,
|
||||||
|
% solution-env = answer ,
|
||||||
|
% exercise-name = Exercice ,
|
||||||
|
% solution-name = Solution ,
|
||||||
|
% exercise-template = exercice ,
|
||||||
|
% solution-template = exercice
|
||||||
|
%}
|
||||||
|
%
|
||||||
|
%\DeclareExerciseEnvironmentTemplate{exercice}{%
|
||||||
|
% \subsection*
|
||||||
|
% {%
|
||||||
|
% \XSIMmixedcase{\GetExerciseName}\nobreakspace
|
||||||
|
% \GetExerciseProperty{counter}%
|
||||||
|
% \IfInsideSolutionF
|
||||||
|
% {%
|
||||||
|
% \GetExercisePropertyT{subtitle}
|
||||||
|
% { {\normalfont\itshape\PropertyValue}}%
|
||||||
|
% }%
|
||||||
|
% }
|
||||||
|
% \GetExercisePropertyT{points}
|
||||||
|
% {%
|
||||||
|
% \hspace{.9\textwidth}\\
|
||||||
|
% {%
|
||||||
|
% \IfInsideSolutionF{\rule{1.2cm}{1pt}\slash}%
|
||||||
|
% \printgoal{\PropertyValue}
|
||||||
|
% \GetExercisePropertyT{bonus-points}{~(+\printgoal{\PropertyValue})}%
|
||||||
|
% ~\XSIMtranslate {point-abbr}%
|
||||||
|
% }%
|
||||||
|
% }%
|
||||||
|
%}
|
||||||
|
%{}
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
10
jl-devoir/fixes.tex
Normal file
10
jl-devoir/fixes.tex
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%
|
||||||
|
%
|
||||||
|
% FIXES
|
||||||
|
%
|
||||||
|
%
|
||||||
|
|
||||||
|
% Fix error from KOMA-Script scrartcl class.
|
||||||
|
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
@ -11,33 +11,42 @@
|
|||||||
\ProvidesClass{jl-devoir}[2018/10/03 Classe pour les devoirs et tests, V1.0]
|
\ProvidesClass{jl-devoir}[2018/10/03 Classe pour les devoirs et tests, V1.0]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
% INIT
|
% INIT
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
|
|
||||||
\LoadClassWithOptions{scrartcl}
|
\LoadClassWithOptions{scrartcl}
|
||||||
%\LoadClass[a4paper, 12pt, DIV=24]{scrartcl}
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
% PACKAGES
|
% PACKAGES
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
% Others
|
|
||||||
|
%% Others
|
||||||
|
%%
|
||||||
\RequirePackage{xkeyval}
|
\RequirePackage{xkeyval}
|
||||||
|
|
||||||
% Own packages. Those contains some global settings and definitions.
|
%% Own packages. Those contains some global settings and definitions.
|
||||||
|
%%
|
||||||
\RequirePackage{commun}
|
\RequirePackage{commun}
|
||||||
\RequirePackage{couleurs}
|
\RequirePackage{couleurs}
|
||||||
\RequirePackage{shortcuts}
|
\RequirePackage{shortcuts}
|
||||||
|
|
||||||
% Output
|
%% Output
|
||||||
|
%%
|
||||||
\RequirePackage{comment}
|
\RequirePackage{comment}
|
||||||
|
|
||||||
% Layout
|
%% Layout
|
||||||
|
%%
|
||||||
\RequirePackage{geometry}
|
\RequirePackage{geometry}
|
||||||
\RequirePackage[footsepline, plainfootsepline]{scrlayer-scrpage}
|
\RequirePackage[footsepline, plainfootsepline]{scrlayer-scrpage}
|
||||||
\RequirePackage{titling}
|
\RequirePackage{titling}
|
||||||
@ -45,6 +54,7 @@
|
|||||||
\RequirePackage{pageslts}
|
\RequirePackage{pageslts}
|
||||||
\RequirePackage{enumitem}
|
\RequirePackage{enumitem}
|
||||||
\RequirePackage[]{hyperref}
|
\RequirePackage[]{hyperref}
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -52,6 +62,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
% OPTIONS
|
% OPTIONS
|
||||||
@ -70,20 +81,23 @@
|
|||||||
\ExecuteOptionsX{type}
|
\ExecuteOptionsX{type}
|
||||||
\ExecuteOptionsX{size}
|
\ExecuteOptionsX{size}
|
||||||
\ProcessOptionsX
|
\ProcessOptionsX
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
% FIXES
|
% FIXES
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
|
|
||||||
% Fix error from KOMA-Script scrartcl class.
|
\input{fixes.tex}
|
||||||
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
% SETTINGS
|
% SETTINGS
|
||||||
@ -163,16 +177,19 @@
|
|||||||
|
|
||||||
% paths
|
% paths
|
||||||
\graphicspath{{images/}}
|
\graphicspath{{images/}}
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
% MACROS
|
% COMMANDS
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
|
|
||||||
% new lists definitions
|
%% new lists definitions
|
||||||
|
%%
|
||||||
\newlist{questions}{enumerate}{2}
|
\newlist{questions}{enumerate}{2}
|
||||||
\setlist[questions]{labelindent=0em, leftmargin=*, labelsep=0.5em}
|
\setlist[questions]{labelindent=0em, leftmargin=*, labelsep=0.5em}
|
||||||
\setlist[questions, 1]{label=\textbf{\arabic*.}}
|
\setlist[questions, 1]{label=\textbf{\arabic*.}}
|
||||||
@ -186,131 +203,54 @@
|
|||||||
|
|
||||||
\setlist[description]{font=\sffamily\bfseries}
|
\setlist[description]{font=\sffamily\bfseries}
|
||||||
|
|
||||||
|
%% \displayturnpage
|
||||||
% print a "Please, turn the page" at bottom right of the page
|
%% print a "Please, turn the page" at bottom right of the page.
|
||||||
|
%%
|
||||||
\NewDocumentCommand \displayturnpage{ }{
|
\NewDocumentCommand \displayturnpage{ }{
|
||||||
\rofoot[\textit{Tourner la page, svp} \faHandORight]
|
\rofoot[\textit{Tourner la page, svp} \faHandORight]
|
||||||
{\textit{Tourner la page, svp} \faHandORight}
|
{\textit{Tourner la page, svp} \faHandORight}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%% \displaydirectives
|
||||||
% print the main directives of the test
|
%% print the main directives of the test.
|
||||||
|
%%
|
||||||
\NewDocumentCommand \displaydirectives{ }{
|
\NewDocumentCommand \displaydirectives{ }{
|
||||||
\begin{center}
|
\begin{center}
|
||||||
\fbox{
|
\fbox{
|
||||||
\parbox{.9\textwidth}{
|
\parbox{.9\textwidth}{
|
||||||
\centering
|
\centering
|
||||||
\small
|
Le prêt de matériel et de documents personnels sont interdits.\\
|
||||||
Le prêt de matériel et de documents personnels est interdit.\\
|
Le barème est donné à titre indicatif : il pourra être légèrement différent.\\
|
||||||
Le barème est donné à titre indicatif : il pourra être légèrement différent.\\
|
Les exercices peuvent être traités dans n’importe quel ordre mais attention à bien reporter les numéros des questions.\\
|
||||||
Les exercices peuvent être traités dans n’importe quel ordre mais attention à bien reporter les numéros des questions.\\
|
Il sera tenu compte dans la notation du soin apporté à la copie et de la clarté des raisonnements.\\
|
||||||
Il sera tenu compte dans la notation du soin apporté à la copie et de la clarté des raisonnements.\\
|
Si présent, le symbole \faPencil\ indique que tout ou partie de l'exercice est à réaliser sur l’énoncé.\\
|
||||||
Si présent, le symbole \faPencil\ indique que tout ou partie de l'exercice est à réaliser sur l’énoncé.\\
|
Sauf mention contraire, toutes les questions sont à justifier rigoureusement.
|
||||||
Sauf mention contraire, toutes les questions sont à justifier rigoureusement.
|
}
|
||||||
}
|
}
|
||||||
}
|
\end{center}
|
||||||
\end{center}
|
|
||||||
|
|
||||||
\vspace{.2cm}
|
\vspace{.2cm}
|
||||||
}
|
}
|
||||||
|
|
||||||
% amsthm style for exercises
|
%% text customization
|
||||||
\newtheoremstyle{exostyle1}
|
%%
|
||||||
{\topsep}% espace avant
|
|
||||||
{\topsep}% espace apres
|
|
||||||
{}% Police utilisee par le style de thm
|
|
||||||
{}% Indentation (vide = aucune, \parindent = indentation paragraphe)
|
|
||||||
{\bfseries}% Police du titre de thm
|
|
||||||
{}% Signe de ponctuation apres le titre du thm
|
|
||||||
{\newline}% Espace apres le titre du thm (\newline = linebreak)
|
|
||||||
{%
|
|
||||||
\if\relax\detokenize{#3}\relax
|
|
||||||
% no optional argument
|
|
||||||
\else
|
|
||||||
\makebox[0pt][l]{\hspace{.9\textwidth}\normalfont\itshape#3}%
|
|
||||||
\fi
|
|
||||||
\thmname{#1}\thmnumber{ #2}%
|
|
||||||
}
|
|
||||||
|
|
||||||
\newtheoremstyle{exostyle2}
|
|
||||||
{\topsep}% espace avant
|
|
||||||
{\topsep}% espace apres
|
|
||||||
{}% Police utilisee par le style de thm
|
|
||||||
{}% Indentation (vide = aucune, \parindent = indentation paragraphe)
|
|
||||||
{\bfseries}% Police du titre de thm
|
|
||||||
{}% Signe de ponctuation apres le titre du thm
|
|
||||||
{\newline}% Espace apres le titre du thm (\newline = linebreak)
|
|
||||||
{%
|
|
||||||
\if\relax\detokenize{#3}\relax
|
|
||||||
% no optional argument
|
|
||||||
\else
|
|
||||||
\makebox[0pt][l]{\hspace{.9\textwidth}\normalfont\itshape#3}%
|
|
||||||
\fi
|
|
||||||
\thmname{#1 }%
|
|
||||||
}
|
|
||||||
|
|
||||||
\theoremstyle{exostyle1}
|
|
||||||
\newtheorem{exercice}{Exercice}
|
|
||||||
\newtheorem{exercice*}[exercice]{\faPencil \ Exercice}
|
|
||||||
|
|
||||||
\theoremstyle{exostyle2}
|
|
||||||
\newtheorem{exercice**}{Exercice}
|
|
||||||
|
|
||||||
% amsthm proofs customization
|
|
||||||
\newenvironment{solution}
|
|
||||||
{\begin{proof}[\textbf{Solution}]}
|
|
||||||
{\end{proof}}
|
|
||||||
|
|
||||||
%
|
|
||||||
%
|
|
||||||
% TODO: Replace amsthm exercices with xsim
|
|
||||||
%
|
|
||||||
%
|
|
||||||
%\usepackage{xsim}
|
|
||||||
%
|
|
||||||
%\DeclareExerciseTranslations{exercise}{
|
|
||||||
% Fallback = exercise,
|
|
||||||
% English = exercise,
|
|
||||||
% French = exercice
|
|
||||||
%}
|
|
||||||
%
|
|
||||||
%\DeclareExerciseType{exercice}{
|
|
||||||
% exercise-env = exercice ,
|
|
||||||
% solution-env = answer ,
|
|
||||||
% exercise-name = Exercice ,
|
|
||||||
% solution-name = Solution ,
|
|
||||||
% exercise-template = exercice ,
|
|
||||||
% solution-template = exercice
|
|
||||||
%}
|
|
||||||
%
|
|
||||||
%\DeclareExerciseEnvironmentTemplate{exercice}{%
|
|
||||||
% \subsection*
|
|
||||||
% {%
|
|
||||||
% \XSIMmixedcase{\GetExerciseName}\nobreakspace
|
|
||||||
% \GetExerciseProperty{counter}%
|
|
||||||
% \IfInsideSolutionF
|
|
||||||
% {%
|
|
||||||
% \GetExercisePropertyT{subtitle}
|
|
||||||
% { {\normalfont\itshape\PropertyValue}}%
|
|
||||||
% }%
|
|
||||||
% }
|
|
||||||
% \GetExercisePropertyT{points}
|
|
||||||
% {%
|
|
||||||
% \hspace{.9\textwidth}\\
|
|
||||||
% {%
|
|
||||||
% \IfInsideSolutionF{\rule{1.2cm}{1pt}\slash}%
|
|
||||||
% \printgoal{\PropertyValue}
|
|
||||||
% \GetExercisePropertyT{bonus-points}{~(+\printgoal{\PropertyValue})}%
|
|
||||||
% ~\XSIMtranslate {point-abbr}%
|
|
||||||
% }%
|
|
||||||
% }%
|
|
||||||
%}
|
|
||||||
%{}
|
|
||||||
|
|
||||||
% text customization
|
|
||||||
\NewDocumentCommand \devprintconc{ }{
|
\NewDocumentCommand \devprintconc{ }{
|
||||||
\underline{Conclusion :}
|
\underline{Conclusion :}
|
||||||
}
|
}
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
%
|
||||||
|
%
|
||||||
|
% AMSTHM
|
||||||
|
%
|
||||||
|
%
|
||||||
|
|
||||||
|
\input{amsthm.tex}
|
||||||
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\makeatother
|
\makeatother
|
||||||
|
Loading…
Reference in New Issue
Block a user