Text Formatting\begin{right}$\qed$\end{right}

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
andrei.f
Posts: 2
Joined: Fri Oct 09, 2009 12:23 am

\begin{right}$\qed$\end{right}

Post by andrei.f »

So I want to insert the

Code: Select all

$\qed$
symbol manually, i.e. I am not using

Code: Select all

\begin{proof}\end{proof}
If i use flushright, it appears on the next line on the right.

So I use

Code: Select all

\begin{right}$\qed$\end{right}
, which works as I want it to, except that it generates 4 errors:

1. Missing $ inserted
2. Missing delimiter
3. Extra right
4. Missing $ inserted.

What's the problem? (output is ok) or is there any other way to do this?

Thank you.

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

\begin{right}$\qed$\end{right}

Post by Stefan Kottwitz »

\right is a macro for math delimiters, remember \left(...\right). Perhaps you wanted to use the flushright environment instead of right.
You could use \hfill before the qed symbol.

Stefan
LaTeX.org admin
andrei.f
Posts: 2
Joined: Fri Oct 09, 2009 12:23 am

Re: \begin{right}$\qed$\end{right}

Post by andrei.f »

Thanks for your reply. The \hfill works very nice - thank you.

flushright places the \qed at the end of the next line, that's why I didn't like it.

It's however interesting that \hfill\qed gives the same output as \begin{right}$\qed$\end{right}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

\begin{right}$\qed$\end{right}

Post by Stefan Kottwitz »

On my system (TeX Live 2009 on Ubuntu Linux) the line

Code: Select all

\begin{right}$\qed$\end{right}
inside a small article document brings just 5 errors but no output.

Stefan
LaTeX.org admin
Post Reply