# How to stick an image and text together, and below them a line, then more text, and then another line?

I'm trying to get this (An image was supposed to be on the upper LHS corner):

With this code

    \begin{wrapfigure}{l}{.25\textwidth }
\includegraphics[width=1\linewidth]{utm logo colores.PNG}
\end{wrapfigure}

\begin{center}

Instituto de Física y Matemáticas

Protocolo de Tesis
\end{center}

\rule{15cm}{.01cm}

Nombre del alumno:
No. matrícula:

Carrera:

Nombre de la tesis: \textbf{}

\rule{15cm}{.01cm}

\tableofcontents


I got this:

• You are using a floating environment, when you acutally are looking for an absolute position for your image. Have you tried just adding the image directly in either a table or ideally a two-column environment? – Markus G. Apr 7 at 18:22
• @MarkusG. nop. I didn't even know that one could include images in a table. I've noticed that you used something different: {minipage}. – Verónica Rmz. Apr 7 at 21:05
• Yes, I had the columns environment from the beamer package in mind. But that simply uses minipages. A solution with a table would have worked as well, but tables have a tendency to add empty spaces that are often undesired. – Markus G. Apr 8 at 7:24

You can place the image and the text in two side-by-side minipages.

 \documentclass{scrartcl}
\usepackage{graphicx}

\begin{document}
\begin{minipage}{.2\linewidth}
\centering
\includegraphics[width=1\linewidth]{example}
\end{minipage}
\begin{minipage}{.8\linewidth}
\centering

Instituto de Física y Matemáticas

Protocolo de Tesis
\end{minipage}

\noindent\makebox[.97\linewidth]{\rule{\linewidth}{1.0pt}}

Nombre del alumno:
No. matrícula:

Carrera:

Nombre de la tesis: \textbf{}

\noindent\makebox[.97\linewidth]{\rule{\linewidth}{1.0pt}}

\end{document}


It looks something like this:

EDIT: You can align the text between the two lines in one of two ways. Both have advantages and disadvantages as you will see.

The first is a tabbing environment, which is a bit reminiscent of a typewriter:

\noindent\makebox[.97\linewidth]{\rule{\linewidth}{1.0pt}}
\begin{tabbing}
Nombre del alumno: \= \kill % for the length
Nombre del alumno: \> Name\\
No. matrícula: \> Number\\
Carrera: \> Something\\
Nombre de la tesis: \> \textbf{Title of the thesis}
\end{tabbing}
\vspace*{-2mm}
\noindent\makebox[.97\linewidth]{\rule{\linewidth}{1.0pt}}


The other is a simple table, but this will also indent the text a bit:

\noindent\makebox[.97\linewidth]{\rule{\linewidth}{1.0pt}}

\vspace*{2mm}
\begin{tabular}{ll}
Nombre del alumno: & Name\\
No. matrícula: & Number\\
Carrera: & Something\\
Nombre de la tesis: & \textbf{Title of the thesis}
\end{tabular}

\vspace*{2mm}
\noindent\makebox[.97\linewidth]{\rule{\linewidth}{1.0pt}}


Please note the empty lines below and above the \vspace*{} commands, which ensure that the table is acutally between the two lines and not next to it.

• Thanks for your help. – Verónica Rmz. Apr 7 at 21:30
• Glad I could help. Feel free to accept my answer, to make sure others can see that your problem has been solved. – Markus G. Apr 8 at 7:21
• Do you know how to make the text to start, not right after the ":" but to be aligned with the other text above and below? See for example: Licen... started at a specific point. – Verónica Rmz. Apr 8 at 15:38
• I added some more code to give you some examples on how to achieve this. – Markus G. Apr 8 at 15:43
• Double thanks. I didn't notice a difference between the displays of both, but I've chose the second since I see it more clear to know what's going on. – Verónica Rmz. Apr 8 at 16:01