Page 1 of 1

Symbols on LaTeX

Posted: Fri May 14, 2010 11:15 am
by gdesvignes
Hi !!!!!!!! That's me again !

Here's the thing, I try to insert a symbol on my report. I use the package marvosym. But, I want the picture to the begining of the line.
I tried to enclosed the picture into a figure :

Code: Select all

\begin{figure}[H]
\Pointinghand
\end{figure}
But it doesn't work !

So I let you, LaTeX Masters, help me on this !

Re: Symbols on LaTeX

Posted: Fri May 14, 2010 12:07 pm
by Vincent
Again, the difficult part will be guessing what it is you want, exactly...
gdesvignes wrote:. But, I want the picture to the begining of the line.
Just "\Pointinghand" will put the picture at current position, and at the beginning of the line if it's the first item in the line. Since this is absolutely trivial I assume this is not your question.

So, it's up to the crystal ball again... I have two guesses
  • [GUESS 1]
    you are looking for "left-aligned" figures, in the style of this (but left instead of right). In this case you may want to look at the package wrapfig, or use \captionof...
  • [GUESS 2]
    you are looking for a replacement to the standard "bullet" of the itemize environment

    Code: Select all

    \renewcommand\labelitemi{\Pointinghand}
    should do the trick. (so if this post was in LaTeX, I would have pointing hands instead of bullets to the left of the two guesses).
    My amazing telepathic abilities tell me that's really what you want, though in this case I can't fathom why on earth you would have imagined that a figure environment would be the way to go...

Re: Symbols on LaTeX

Posted: Fri May 14, 2010 2:07 pm
by gdesvignes
I thought the figure environment is a floating box... guess it doesn't ?!
The idea is to make the symbols like a "lettrine" ( :D ). I just want a paragraph with this symbols (as an important paragraph).
I try something with your "Guess 1" solution.

Re: Symbols on LaTeX

Posted: Fri May 14, 2010 2:25 pm
by Vincent
gdesvignes wrote:I thought the figure environment is a floating box... guess it doesn't ?!
It is a float. Meaning it can't be broken and is not part of the normal flow of text.
gdesvignes wrote:The idea is to make the symbols like a "lettrine"
And I guess the point is you want several lines of text to wrap around the symbol. If so package wrapfig is the solution.

Code: Select all

\usepackage{wrapfig}
%%%%
\begin{wrapfigure}{l}{size of figure}
  %%%%%
  \caption{blah}
\end{wrapfigure} your text	

Re: Symbols on LaTeX

Posted: Fri May 14, 2010 2:46 pm
by gdesvignes
Thanks, this works fine ! ::merci

Re: Symbols on LaTeX

Posted: Fri May 14, 2010 3:01 pm
by gdesvignes
Ah ah ah !!!!!!!
Still got a problem ! I definitively don't understand LaTeX !!!!

I use the following code I found on the Web (because I want the symbols only on the first line :

Code: Select all

\begin{wrapfigure}[1]{l}{0.5cm}
\Pointinghand
\end{wrapfigure}
But the symbols appears behind the text on the second line...

Re: Symbols on LaTeX

Posted: Fri May 14, 2010 3:32 pm
by Vincent
Errrrrr... I just don't get the point of using wrapfig with just ONE line...
gdesvignes wrote:symbols
Why a plural? I thought there was only one symbol?

If what you want to have is a big symbol on the first line, without detaching the first line from the rest of the paragraph, ie

Code: Select all

XX
XX rrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrrrr
where X is the symbol and r the text, as opposed to

Code: Select all

XX rrrrrrrrrrrrrrr
XX 
rrrrrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrr
it would be simpler to use a simple \parbox, I think.