I'm using a template to write my resume (unfortunately I cannot find the source anymore, but I think it's a variation of liantze/AltaCV), and I wanted to extend it with a section formatted for projects, using minipages.

I'd like to get 3 columns:

  • left one, containing the project title and some other info (date, course etc.);
  • center one, containing the project description;
  • right one, containing an image.

However, for some reason I can't figure out, the image is getting displayed above the other minipages.

What I'm getting

enter image description here

Desired result

enter image description here


Class file (.cls)

I added the following:


    \begin{minipage}[t]{\projectExtendedLeft}% minipage for left column with name/date/course
        % PROJECT TITLE ---------------------------------------------------------------
            {\Large \color{emphasis} #1}
        % PROJECT DATE ----------------------------------------------------------------
        \begin{minipage}[t]{3mm}% wrap marker in minipage to allow multi-line dates
        \hspace{0.5 em}%
        \begin{minipage}[t]{\dimexpr \projectExtendedLeft-3mm-0.5em}% wrap date in minipage to allow multi-line dates
        % PROJECT COURSE --------------------------------------------------------------
        \begin{minipage}[t]{3mm}% wrap marker in minipage to allow multi-line courses
        \begin{minipage}[t]{\dimexpr \projectExtendedLeft-3mm-0.5em}% wrap place in minipage to allow multi-line courses
    % PROJECT DESCRIPTION -------------------------------------------------------------
    \begin{minipage}[t]{\projectExtendedCenter}% minipage for description
        \par \normalsize
    % PROJECT IMAGE -------------------------------------------------------------------
    \begin{minipage}[t]{\projectExtendedRight}% minipage for picture

Main (.tex)

\section{Other Projects}
    \projectExtended{\href{https://github.com/mikyll}{\textbf{Project Name}}}
        {From - To}
        {\href{https://www.unibo.it/}{Course Name}}
        {Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.}

I'm not much experienced in LaTeX, so let me know if you need further details to investigate the problem.


1 Answer 1



As suggested by cabohah (thank you so much 🙏), the problem was that with minipage [t] option the baseline of the top element gets aligned with the baseline outside the box, and \includegraphics baseline is at the bottom of the image.


In order to align the image with other minipages, I needed to move its baseline upwards (for example using \raisebox command). Therefore, I obtained the desired result by wrapping \includegraphics in a \raisebox{-\height} command which raised the picture by its height:



enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .