2

I am just starting in LaTex and I am trying to create a custom titlepage. In our laboratory reports we are asked to have something similar to the image attached. I am having problems aligning the text between the two figures. How can I align it like in the image?

Since I am making the title page from scratch I have two .tex documents like so:

File test_title.tex

\documentclass[pdftex,12pt,letterpaper]{report}

\usepackage[pdftex]{graphicx}

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}

\begin{document}

\input{./title.tex}
\end{document}

File title.tex

\begin{titlepage}

\begin{flushleft}
\includegraphics[width=0.15\textwidth]{./UPRMlogo}
\end{flushleft}

\begin{flushright}
\includegraphics[width=0.15\textwidth]{./UPRMlogo}
\end{flushright}

\begin{center}
University of Puerto Rico \\
Mayaguez Campus\\
Mechanical Engineering Department\\
\end{center}

\end{titlepage}

Example

1 Answer 1

5

Here is one way, but there are many options. Note the use of % characters to prevent spurious spaces from causing overfull \hbox warnings.

\documentclass{article}
\usepackage{graphicx}

\begin{document}
\noindent% just to prevent indentation narrowing the line width for this line
\includegraphics[width=0.15\textwidth]{example-image-a}%
\begin{minipage}[b]{0.7\textwidth}
\centering
University of Puerto Rico \\
Mayaguez Campus\\
Mechanical Engineering Department
\end{minipage}%
\includegraphics[width=0.15\textwidth]{example-image-b}
\end{document}

enter image description here

8
  • Side note: If you know Dr. Papadopoulos (at UPRM), say hello to him from me. :-) Feb 15, 2015 at 21:05
  • 1
    That worked wonders! Oh, small world. I haven't taken class with him but I do know him. When I see him around, I'll make sure to let him know! He gives statics and dynamics classes, I took those over 2 years ago, time flies. Feb 15, 2015 at 21:19
  • I don't have enough reputation yet to upvote but will make sure to do so once I get to that point. Thanks! Feb 15, 2015 at 21:28
  • @user3761290 small world indeed! We worked on this together a few years ago, brought together by a mutual colleague. And you're welcome, glad I could help out. Feel free to leave a comment here if there's anything I can change or explain further. Feb 15, 2015 at 21:35
  • That's pretty cool! I do know there is a big debate regarding that class here on campus. Apparently some professors don't apply the topic to engineering and some students think it's wasting their time. So I am trying to get the table to be next to the names text but I keep getting some errors including that hbox. I looked up some info on the minipage but can't get it to work properly. I am editing my post to include the new information. Thank you in advance! Feb 15, 2015 at 22:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.