TransWikia.com

How to position an image higher using tabular

TeX - LaTeX Asked on June 16, 2021

Im wonder, how to position an image higher.

enter image description here

The previous image, corresponds to this code:

begin{tabular}{m{5.25cm}m{10.5cm}}
includegraphics[width=48mm]{Screenshot_12.png}
& begin{center}textbf{large{Pricipal Title}}

footnotesize{Subtitle}

footnotesize{Another title}

footnotesize{More things}
end{center}
end{tabular}

Any idea to place the image in a higher position? I have tried everything but it has not worked.

One Answer

Assuming you need to raise the contents of the tabular environment by 10mm, you could insert the instruction vspace*{-10mm} right before the start of the tabular environment.

By the way, large and footnotesize are switches and don't take arguments.

documentclass{article}
usepackage[demo]{graphicx} % remove 'demo' option in real document
usepackage{array} % for 'm' column type

begin{document}
vspace*{-10mm} % <-- new
noindent
begin{tabular}{@{} m{5.25cm} m{10.5cm} @{}}
includegraphics[width=48mm]{Screenshot_12.png}
& footnotesize
  begin{center}
    obeylines % just for this example
    textbf{large Principal Title}
    Subtitle
    Another title
    More things
  end{center}
end{tabular}
end{document}

Correct answer by Mico on June 16, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP