I've tried for hours to find a solution for this fairly simple layout. The closest I've got is:
\begin{minipage}{.25\textwidth}
\includegraphics[width=\textwidth]{res/server.jpg}
\end{minipage}
\begin{minipage}{.75\textwidth}
\begin{flushright}
asdasd\\
asdasdasdasdasddsa
\end{flushright}
\end{minipage}
.. which produces something like:
How to move the text up to the top line?
I've seen many solutions with tables and boxes. Is there a simple way to do it with minipage
?
With [t]
alignment of the minipage
\begin{minipage}[t]{.25\textwidth}
\includegraphics[width=\textwidth]{res/server.jpg}
\end{minipage}
\begin{minipage}[t]{.75\textwidth}
\begin{flushright}
some text\\
some more text
\end{flushright}
\end{minipage}
With \vspace{0pt}
\begin{minipage}[t]{.25\textwidth}
\vspace{0pt}
\includegraphics[width=\textwidth]{res/server.jpg}
\end{minipage}
\begin{minipage}[t]{.75\textwidth}
\vspace{0pt}
\begin{flushright}
some text\\
some more text
\end{flushright}
\end{minipage}
[t]
orfbox
. I've seen this question when I did my research. I can add a negativevspace
to get it working, but it's an ugly solution :( – Robin Feb 12 '20 at 11:53\vspace{0pt}
? For me\begin{minipage}[t]{.25\textwidth} \vspace{0pt} \includegraphics[width=\textwidth]{res/server.jpg} \end{minipage} \begin{minipage}[t]{.75\textwidth} \vspace{0pt} \begin{flushright} asdasd\\ asdasdasdasdasddsa \end{flushright} \end{minipage}
works correctly. – Marijn Feb 12 '20 at 12:01minipage
s by providing equally high contents to align to. – Marijn Feb 12 '20 at 12:06\vspace{0pt}
something odd happens. – Robin Feb 12 '20 at 12:11