Document ClassesInserting a figure into a table and having it span two rows.

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
zoho
Posts: 6
Joined: Fri Jun 29, 2007 9:22 pm

Inserting a figure into a table and having it span two rows.

Post by zoho »

Hello:

I am creating a title page and I would like the title page to consist of a picture left justifed and the title on the right hand side opposite the picture. It works fine with this code:

Code: Select all

Code, edit and compile here:
\begin{titlepage}
\vspace*{\stretch{1}}
\begin{tabular}[t]{m{0.50\textwidth}m{0.50\textwidth}}
\toprule
\includegraphics[scale=0.15]{ewbunb.png}& {\Large JF Interview Exchange Program} \\
\bottomrule
\end{tabular}
\vspace*{\stretch{2}}
\begin{center}
\today
\end{center}
\end{titlepage}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
However the title of the project has a sub heading which I need to place on the line below the title so I tried this code:
Hello:

I am creating a title page and I would like the title page to consist of a picture left justifed and the title on the right hand side opposite the picture. It works fine with this code:

Code: Select all

Code, edit and compile here:
\begin{titlepage}
\vspace*{\stretch{1}}
\begin{tabular}[t]{m{0.50\textwidth}m{0.50\textwidth}}
\toprule
\multirow{2}{*}{\includegraphics[scale=0.15]{ewbunb.png}} & {\Large JF Interview Exchange Program} \\
& 2007 Pilot Project Proposal \\
\bottomrule
\end{tabular}
\vspace*{\stretch{2}}
\begin{center}
\today
\end{center}
\end{titlepage}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
But then the png I use is no longer with the toprule and bottomrule. It seems that the height of the picture is ignored when calculating the size of the table. Any suggestions?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

zoho
Posts: 6
Joined: Fri Jun 29, 2007 9:22 pm

Inserting a figure into a table and having it span two rows.

Post by zoho »

I found the solution: minipage.

Here is the code

Code: Select all

Code, edit and compile here:
\begin{titlepage}
\vspace*{\stretch{1}}
\begin{tabular}{c}
\toprule
\begin{minipage}[c]{0.50\textwidth}
\begin{flushleft}
\includegraphics[scale=0.15]{ewbunb.png}
\end{flushleft}
\end{minipage}
\begin{minipage}[c]{0.50\textwidth}
\begin{center}
{\Large JF Interview Exchange Program}\\
2007 Pilot Project Proposal
\end{center}
\end{minipage}
\\
\bottomrule
\end{tabular}
\vspace*{\stretch{2}}
\begin{center}
\today
\end{center}
\end{titlepage}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Post Reply