Page LayoutHow to edit the 'proof' environment

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Plato
Posts: 6
Joined: Wed Nov 19, 2014 7:08 pm

How to edit the 'proof' environment

Post by Plato »

Code: Select all

%Preamble
\documentclass[11pt,a4paper,openany]{book}
\usepackage{amssymb,amsmath,amsthm}
\usepackage[dutch]{babel}
\usepackage{mdframed}
\usepackage{lipsum}
\renewcommand{\qedsymbol}{$\blacksquare$}
\pagestyle{plain}
\setlength{\parindent}{0cm}
\setlength{\parskip}{0cm}
\theoremstyle{definition}
\newmdtheoremenv[linewidth=1.0pt,linecolor=red]{Definition}{Definitie}
\newmdtheoremenv[linewidth=1.0pt,linecolor=black]{Theorem}{Theorema}
\newtheorem{corollary}{Corollarium}

\begin{document}
\begin{titlepage}
Hey guys, I'm writing a mathematical text and I wish to change the 'proof' environment a little bit. Now, I usually do:
\begin{proof}
...
\end{proof}
And the 'proof' comes up in Italics. However, I wish it to be in capital letters + underlined, so that it becomes clearer for the reader. Is there any way to do this, so that it automatically comes up?

Any help would be appreciated, thanks in advance.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

How to edit the 'proof' environment

Post by Johannes_B »

You can patch the internals of package amsthm. I used small caps in the example. Uppercase and underlined will look really really ugly.
Have confidence in the reader, they will note it even if \proofname is not printed in red bold faced letters.

Code: Select all

%Preamble
\documentclass[11pt,a4paper,openany]{book}
\usepackage{%amssymb,
amsmath,
amsthm
}
\usepackage[dutch]{babel}
%\usepackage{mdframed}
%\usepackage{lipsum}
%\renewcommand{\qedsymbol}{$\blacksquare$}
%\pagestyle{plain}
%\setlength{\parindent}{0cm}
%\setlength{\parskip}{0cm}
%\theoremstyle{definition}
%\newmdtheoremenv[linewidth=1.0pt,linecolor=red]{Definition}{Definitie}
%\newmdtheoremenv[linewidth=1.0pt,linecolor=black]{Theorem}{Theorema}
%\newtheorem{corollary}{Corollarium}
\usepackage{blindtext}
\newcommand{\prooffont}{\scshape}
\usepackage{xpatch}
\tracingpatches
\xpatchcmd{\proof}{\itshape}{\prooffont}{}{}
\begin{document}
\begin{proof}
	\blindtext
\end{proof}
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply