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

\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}
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

\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}
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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

\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}
Post Reply