-
Notifications
You must be signed in to change notification settings - Fork 0
/
nzproof.sty
26 lines (23 loc) · 879 Bytes
/
nzproof.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
\ProvidesPackage{nzproof}[2004/04/01]
\RequirePackage{amsmath,amssymb,amsfonts,ifthen}
\def\proofname{Proof}
\def\sketchname{Proof sketch}
\def\qedsymbol{\RIfM@\bgroup\else$\bgroup\aftergroup$\fi
\vcenter{\hrule\hbox{\vrule\@height.6em\kern.6em\vrule}\hrule}\egroup}
\def\qed{\RIfM@\else\unskip\fi\hskip 0pt plus 1fill\hbox{}\nobreak\hskip 1 em plus 1fill\nobreak
\qedsymbol}
\newenvironment{pf}[1][]{%
\par\topsep6\p@\@plus6\p@
\trivlist \itemindent 0pt
\ifthenelse{\equal{#1}{}}%
{\item[\hskip\labelsep\sl\proofname.]\ignorespaces}%
{\item[\hskip\labelsep\sl\proofname\ (#1).]\ignorespaces}}%
{\qed\endtrivlist}
\newenvironment{ps}[1][]{%
\par\topsep6\p@\@plus6\p@
\trivlist \itemindent 0pt
\ifthenelse{\equal{#1}{}}%
{\item[\hskip\labelsep\sl\sketchname.]\ignorespaces}%
{\item[\hskip\labelsep\sl\sketchname\ (#1).]\ignorespaces}}%
{\qed\endtrivlist}
%%% END OF FILE %%%