Graphics, Figures & Tablesitemize: Vertical Alignement of a figure in item

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

itemize: Vertical Alignement of a figure in item

Post by pooz »

Hi,

I would like to include a figure in an item list. This figure is very small and functions like an icon beside a keyword. But the figure is not vertically aligned to the item symbol (in this case a standard dash '-'). Instead, the buttom of the figure is on the same vertical position like the dash.

Code: Select all

Audio-example 
\begin{itemize}
  \item \movie[label=s3]{}{sounds/always_700cp_000cf.wav}
        \hyperlinkmovie[]{s3}{\includegraphics[width=0.07\textwidth]{figures/sp-b.png} Soundsignal_1}          
\end{itemize}     
For simplification one can omit the "\movie" and "\hyperlink" part to just keep the essential "\item \includegraphics" part.

I would be thankful for any help
Attachments
small figure (loudspeaker icon) is not vertically aligned to the item symbol at the figures middle point
small figure (loudspeaker icon) is not vertically aligned to the item symbol at the figures middle point
Bildschirmfoto 2010-04-11 um 23.46.33.png (9.67 KiB) Viewed 4197 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

jun0
Posts: 5
Joined: Sat Oct 17, 2009 9:36 am

Re: itemize: Vertical Alignement of a figure in item

Post by jun0 »

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: itemize: Vertical Alignement of a figure in item

Post by localghost »

Check the size of the image and crop it if necessary.


Best regards
Thorsten
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

Re: itemize: Vertical Alignement of a figure in item

Post by pooz »

Thank you,

@jun0: Isn´t there a simple solution, without using a minipage?
@Thorsten: Is size-checking and -cropping related to jun0s answer? I guess I didn´t understand you. Wich are the commands for size-checking and -cropping?

Isn´t there a option/command to let figures be centered vertically, so that the items dash-symbol is "points to" the pictures middle point.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

itemize: Vertical Alignement of a figure in item

Post by localghost »

pooz wrote:[...] Is size-checking and -cropping related to jun0s answer? I guess I didn´t understand you. Wich are the commands for size-checking and -cropping? [...]
Not really. You can check whether your picture has white margins with a picture viewer like IrfanView. As far as I remember this program also allows to crop the image. But every common image manipulation software like Gimp can to this, too.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

itemize: Vertical Alignement of a figure in item

Post by gmedina »

Hi pooz,

have you tried to manually change the vertical position using, for example, a \raisebox command?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
pooz
Posts: 65
Joined: Sat Apr 11, 2009 10:47 am

itemize: Vertical Alignement of a figure in item

Post by pooz »

Thank you gmedina,

this works like a charm! Great!

May I ask which benefits/differences the other mentioned methods have?
Post Reply