Quantcast
Channel: Active questions tagged bullets - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 96

How to place a symbol to the right of the last item

$
0
0

I have created an environment and I want to put a symbol ($\circ$) to the right of the last item of an itemize, which is inside the environment. However, using \hspace*{\fill}$\circ$ places $\circ$ at the end of the next line (after the last item). How can I fix this?

Here is the code of the environment:

\newenvironment{algoritmo}[3]{\setitemize     {labelindent=\parindent, leftmargin=*, labelsep=1em, itemindent=0em, rightmargin=0em, topsep=0em, parsep=0em, partopsep=0em, itemsep=0em}\setenumerate   {labelindent=\parindent, leftmargin=*, labelsep=1em, itemindent=0em, rightmargin=0em, topsep=0em, parsep=0em, partopsep=0em, itemsep=0em}\begin{Alg}[#2]\label{#1}\normalsize\rmfamily\itshape``#3''\vspace{1ex}}{ \hspace*{\fill}$\circ$\end{Alg}}

Thanks.

enter image description here

\documentclass {article} \usepackage {amssymb} \begin {document} \begin {itemize} \item nono nono nonon nono nono nono nono nono nono \item nono nono nono nono nono nono nono nono nono \item nono nono nono nono nono nono nono nono nono nono nono nono nono nono nono \end {itemize} \hspace{\fill}$\square$ \end {document}

This is a minimal working example. I would like the square to appear to the right of the last item, in the same line as it.


Viewing all articles
Browse latest Browse all 96

Trending Articles