summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/proof-at-the-end/proof-at-the-end_demo.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/proof-at-the-end/proof-at-the-end_demo.tex')
-rw-r--r--Master/texmf-dist/doc/latex/proof-at-the-end/proof-at-the-end_demo.tex26
1 files changed, 16 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/proof-at-the-end/proof-at-the-end_demo.tex b/Master/texmf-dist/doc/latex/proof-at-the-end/proof-at-the-end_demo.tex
index d4f59616c91..26b087cbea9 100644
--- a/Master/texmf-dist/doc/latex/proof-at-the-end/proof-at-the-end_demo.tex
+++ b/Master/texmf-dist/doc/latex/proof-at-the-end/proof-at-the-end_demo.tex
@@ -5,12 +5,15 @@
\usepackage{verbatim}
% Load the package (put the proof-at-the-end.sty file in the working directory)
-\usepackage{proof-at-the-end} % with default options...
-% Or by putting in the 'conf' option the default configuration you want:
-%\usepackage[conf={normal, one big link}]{proof-at-the-end}
-%\usepackage[conf={normal, one big link=Goto proof}]{proof-at-the-end}
-%\usepackage[conf={one big link translated=Aller à la preuve page}]{proof-at-the-end}
-%\usepackage[conf={text link section}]{proof-at-the-end}
+% with default options and shortcuts for thmE/... WARNING: this requires a version above 2022/01/28.
+\usepackage[createShortEnv]{proof-at-the-end}
+% If you use cref, use instead:
+% \usepackage[createShortEnv,commandRef=Cref]{proof-at-the-end}
+% You can change the default options in the 'conf' option:
+%\usepackage[createShortEnv, conf={text link section}]{proof-at-the-end}
+%\usepackage[createShortEnv, conf={normal, one big link}]{proof-at-the-end}
+%\usepackage[createShortEnv, conf={normal, one big link=Goto proof}]{proof-at-the-end}
+%\usepackage[createShortEnv, conf={one big link translated=Aller à la preuve page}]{proof-at-the-end}
%%% If you want to use options with macros, you cannot
% use directly the package options, so just modify
@@ -40,16 +43,18 @@
\newtheorem*{lemma*}{Lemma}
\providecommand*\lemmaautorefname{Lemma}
-%% If you want you can define shortcuts:
+%% If you want you can define shortcuts to create new theorem.
+%% Since 2022/01/28, the option createShortEnv automatically defines
+%% shortcuts for thmE, theoremE, lemmaE...
+%% You can define new shortcuts using something like:
+%% \newEndThm[normal]{thmE}{thm}
+%% This is itself a shortcut for the rather length old way to define new theorem shorcuts, namely:
% And to define new shortcuts, in order to avoid typing:
% \NewDocumentEnvironment{thmE}{O{}O{}+b}{%
% \begin{theoremEnd}[normal,#2]{thm}[#1]%
% #3%
% \end{theoremEnd}%
% }{}
-% you can just type:
-\newEndThm[normal]{thmE}{thm}
-\newEndProof{proofE}
\usepackage{hyperref}
\begin{document}
@@ -132,6 +137,7 @@ You can also put comments that appear only in the appendix.
And also you can put both the theorem and the proof at the end, like for \autoref{thm:mytheoremattheend}!
+
\begin{theoremEnd}[all end]{thm}
\label{thm:mytheoremattheend}
$\delta = b^2-4ac$