summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/proof-at-the-end/proof-at-the-end_demo.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-02-07 21:40:18 +0000
committerKarl Berry <karl@freefriends.org>2022-02-07 21:40:18 +0000
commita4c5c9826e217b374234a296a1c0c7fcfe91ef93 (patch)
tree36fa9fde52d3c3824e011caefb19770610a32ca6 /Master/texmf-dist/doc/latex/proof-at-the-end/proof-at-the-end_demo.tex
parent088ca7f8f3fc260fc202e63151a4cd1d61db4046 (diff)
proof-at-the-end (7feb22)
git-svn-id: svn://tug.org/texlive/trunk@61933 c570f23f-e606-0410-a88d-b1316a301751
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$