Symbols on LaTeX

Random questions or observations about and around computers
Post Reply
gdesvignes
Posts: 12
Joined: Mon Dec 28, 2009 12:04 am

Symbols on LaTeX

Post by gdesvignes » Fri May 14, 2010 11:15 am

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 !

User avatar
Vincent
Posts: 3077
Joined: Fri Apr 07, 2006 12:10 pm
Location: Schtroumpf
Contact:

Re: Symbols on LaTeX

Post by Vincent » Fri May 14, 2010 12:07 pm

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...
{ Vincent Hugot }

gdesvignes
Posts: 12
Joined: Mon Dec 28, 2009 12:04 am

Re: Symbols on LaTeX

Post by gdesvignes » Fri May 14, 2010 2:07 pm

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.

User avatar
Vincent
Posts: 3077
Joined: Fri Apr 07, 2006 12:10 pm
Location: Schtroumpf
Contact:

Re: Symbols on LaTeX

Post by Vincent » Fri May 14, 2010 2:25 pm

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	
{ Vincent Hugot }

gdesvignes
Posts: 12
Joined: Mon Dec 28, 2009 12:04 am

Re: Symbols on LaTeX

Post by gdesvignes » Fri May 14, 2010 2:46 pm

Thanks, this works fine ! ::merci

gdesvignes
Posts: 12
Joined: Mon Dec 28, 2009 12:04 am

Re: Symbols on LaTeX

Post by gdesvignes » Fri May 14, 2010 3:01 pm

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...

User avatar
Vincent
Posts: 3077
Joined: Fri Apr 07, 2006 12:10 pm
Location: Schtroumpf
Contact:

Re: Symbols on LaTeX

Post by Vincent » Fri May 14, 2010 3:32 pm

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.
{ Vincent Hugot }

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests