Tag Archive for 'Latex'

Latex: end of proof symbol

I was just looking after how to put the end of proof square myself in my Latex document. To put it on the same line as the last one of your proof and all the way aligned to the right (while the text is still left aligned), just type \hfill $\square$. To put it on the next line, type something like \begin{flushright} $\square$ \end{flushright}. I think you could use other commands to produce the square, like \qed or \qedsymbol, but I suspect you will have to use some AMS package.

LaTeX: indentation itemize

Ever wondered how to change the indentation in the LaTeX itemize environment? Well, it can’t. When you use the itemize environment in LaTeX your items (\item) will automatically be indented about 2em. Sometimes however (like me yesterday), this indentation is not needed and you want the items in you list to be aligned as the text. However in that case you will have to use the list environment. This is a general environment that can be used for any kind of list and of which the itemize is a special case. To generate an itemize without identation use the following code:

\begin{list}{\labelitemi}{\leftmargin=1em}
\item First item in the list
\item Second item
\item and so on
\end{list}

For more information on the list environment, check this website