Text FormattingPut a point in front of text

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Onor
Posts: 17
Joined: Mon Aug 01, 2011 9:30 am

Put a point in front of text

Post by Onor »

Hello,


Could you tell me how can I put a square or round point in front of a line and how make a tabulation betwean point and text?


Thank you
Last edited by Onor on Fri Aug 05, 2011 1:09 pm, edited 1 time in total.

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Put a point in front of text

Post by Stefan Kottwitz »

Hi Onor,

use an itemize environment, such as

Code: Select all

\documentclass{article}
\begin{document}
\begin{itemize}
\item One
\item Two
\item Three
\end{itemize}
\end{document}
Stefan
LaTeX.org admin
Onor
Posts: 17
Joined: Mon Aug 01, 2011 9:30 am

Re: Put a point in front of text

Post by Onor »

Thanke you
Onor
Posts: 17
Joined: Mon Aug 01, 2011 9:30 am

Re: Put a point in front of text

Post by Onor »

how can I do the same in this example?


\begin{tabular}{llll}
\begin{itemize}
\item text
\end{itemize} &
\includegraphics[scale=1]{image009.png}&
text
\end{tabular}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Put a point in front of text

Post by Stefan Kottwitz »

For itemize in a table, use a p column or a m column (package array required).

For example:

Code: Select all

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{array}
\begin{document}
\begin{tabular}{m{2cm}ll}
\begin{itemize}
\item text
\end{itemize} &
\raisebox{-.5\height}{\includegraphics[scale=1]{image009.png}}&
text
\end{tabular}
\end{document}
m columns are vertically centered. I used \raisebox to shift the image vertically, because its baseline is at the bottom, not in the middle.

Stefan
LaTeX.org admin
Onor
Posts: 17
Joined: Mon Aug 01, 2011 9:30 am

Put a point in front of text

Post by Onor »

I got something strange when I have more then 1 word

Code: Select all

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{array}
\begin{document}
\begin{tabular}{m{2cm}ll}
\begin{itemize}
\item text text
\end{itemize} &
\raisebox{-.5\height}{\includegraphics[scale=0.5]{image015.png}}&
text
\end{tabular}
\end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Put a point in front of text

Post by Stefan Kottwitz »

Do you mean the line break? Just make the 2cm wider, such as m{3cm}.

Stefan
LaTeX.org admin
Onor
Posts: 17
Joined: Mon Aug 01, 2011 9:30 am

Put a point in front of text

Post by Onor »

Do you mean the line break? Just make the 2cm wider, such as m{3cm}.

Stefan
Yes, So I should calculate the number of words in the text?
Isn't there easier way ?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Put a point in front of text

Post by Stefan Kottwitz »

Simply using $\bullet$, just as in

Code: Select all

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{array}
\begin{document}
\begin{tabular}{lll}
$\bullet$ text text
&
\raisebox{-.5\height}{\includegraphics[scale=0.5]{image015.png}}&
text
\end{tabular}
\end{document}
Stefan
LaTeX.org admin
Onor
Posts: 17
Joined: Mon Aug 01, 2011 9:30 am

Re: Put a point in front of text

Post by Onor »

Thank you a lot
Post Reply