0

Is there a way to draw the little black square at the end of proof without using the environment \begin{proof}... \end{proof}?

I know that one way is like says in this question but I'd like to know if is it possible to place that little black square at determined position, say (7,-8) in coordinate scale for example?

If yes, how do it?

Sigur
  • 37,330

2 Answers2

4

Like this?

enter image description here

(you can use any other symbol as QED symbol; to push it to right use \hfill)

\documentclass{report}
\usepackage{showframe} % for this example
\usepackage[nopar]{lipsum} % for this example
\usepackage{amsthm}
\renewcommand{\qedsymbol}{\rule{7pt}{7pt}}
\begin{document}
\noindent\textit{Proof.} \lipsum[1]\hfill\qedsymbol
\end{document}
Sigur
  • 37,330
  • 1
    should get the fastest correct answer badge ! ...just noting a slight difference in my compiled pdf-- where the black square comes on the next line. – Partha D. Feb 21 '19 at 02:59
  • 1
    @ParthaD. That is an artifact of lipsum, which auto-adds the \par at the end of the paragraph. Load the package with the [nopar] option. – Steven B. Segletes Feb 21 '19 at 03:04
  • You should have used \noindent\textit{Proof.} There is no such way.\hfill\qedsymbol. (+1 some time ago;-) –  Feb 21 '19 at 03:32
  • Thank you for your help Sigur, this is helpful. Though this solution is 'fixed'. The little black square is always at a determined static position. Could it be possible to place it at determined coordinate position? – I likeThatMeow Feb 21 '19 at 03:48
  • @marmot there's no such way.. lol – I likeThatMeow Feb 21 '19 at 04:12
  • @user178403, so you don't want the square at end of last line of the proof? I think that to put it in some coordinate on the page you have to use picture, I'm not sure about that. Also, in that case, you'll have to test the coordinates to find the good ones. – Sigur Feb 21 '19 at 11:33
  • 1
    yes, I want the square at the end of last line of the proof but with specific coordinates. Seems like Partha D.'s answer does it. – I likeThatMeow Feb 22 '19 at 00:30
1

The QED symbol could be placed at a desired position, e.g.--

enter image description here

with a tikz node whose position is specified w.r.t. the page.center (where coordinates such as (6,9) have to be calibrated as needed):

\documentclass{report}
\usepackage{showframe}     % for this example
\usepackage{tikz}
\usetikzlibrary{calc}

\newcommand{\QED}[1]{\tikz[remember picture, overlay]\node 
                         at ($(current page.center) + (#1)$) 
                                         {\rule{7pt}{7pt}};}

\begin{document}
 \textit{Proof.} Proof of simple theorems are 
                            quite easily done. \QED{6,9}

 \QED{0,0} \QED{-6,6}
\end{document}
Partha D.
  • 2,250