Document ClassesWhat's the proper way to customize the QED symbol in acmart?

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
user49915
Posts: 81
Joined: Wed Apr 17, 2019 12:51 pm

What's the proper way to customize the QED symbol in acmart?

Post by user49915 »

Using acmart, we would like to have a black for at the end of the proofs and white boxes for all other environments for which the end is not necessarily clear from the context. What's the "standard" way to do it?

MWE:

Code: Select all

\documentclass[sigplan,10pt,review,anonymous,USenglish,natbib=false]{acmart}
\begin{document}
\begin{proof}
  This is a proof with \(\square\) at its end. We wish to have \(\blacksquare\) as standard for the end-of-proofs.
\end{proof}
\begin{proof}
  This is a proof with \(\square\) on the last line. Instead, we wish to have \(\blacksquare\) also here.
  \[e^{i\pi}+1=0\qedhere\]
\end{proof}
\begin{definition}
  This is a definition with \(\square\) at its end. This qed symbol is o.k.\qed
\end{definition}
\begin{example}
  This is an example with \(\square\) on the last line. It's also ok here.
  \[e^{i\pi}+1=0\tag*{\qed}\]
\end{example}
\end{document}
Output of pdflatex:
result of compilation with pdflatex
result of compilation with pdflatex
file.png (257.87 KiB) Viewed 6671 times

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply