GeneralAdjusting horizontal alignment of graphics and text

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
miko
Posts: 2
Joined: Thu Sep 11, 2008 3:45 pm

Adjusting horizontal alignment of graphics and text

Post by miko »

Hi,

I'm trying to adjust the alignment of a graphic, I want the text underneath the graphic to align with the lower left corner of the black triangle composing the graphic.

I have attached the minimal example in this zip file.
Aligning_graphics_and_text.zip
(52.78 KiB) Downloaded 284 times
An example of the proper alignment of the graphic can be seen in this file:

http://lib.tkk.fi/Julkaisut/E6-Kansi.pdf

The bottom left corner of the black triangle composing the logo is in line with the rest of the text above.

Thanks in advance ! ;)

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Adjusting horizontal alignment of graphics and text

Post by gmedina »

Hi,

you can try using \hspace* (with a negative value in my example), as the following example suggests:

Code: Select all

\documentclass[11pt,a4paper]{report}
\usepackage[T1]{fontenc}     
\usepackage[latin1]{inputenc} 
\usepackage[english]{babel}   
\usepackage{graphicx}

\begin{document}

\noindent Bla bla bla text text text Bla bla bla text text text

\noindent Bla bla bla text text text Bla bla bla text text text 

\hspace*{-1.05cm}\includegraphics[width=50mm]{Logo}

\noindent Bla bla bla text text text Bla bla bla text text text

\noindent Bla bla bla text text text Bla bla bla text text text 

\end{document}
Of course, you can adjust the value used according to your needs.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
miko
Posts: 2
Joined: Thu Sep 11, 2008 3:45 pm

Re: Adjusting horizontal alignment of graphics and text

Post by miko »

Thanks, works like a charm !
:D
Post Reply