Populate class with class
This commit is contained in:
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}%
|
||||
% }%
|
||||
% }%
|
||||
%}
|
||||
%{}
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
Reference in New Issue
Block a user