Graphics, Figures & TablesPicture in title page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
QwareeqMathematics
Posts: 68
Joined: Mon Jul 06, 2009 7:44 pm

Picture in title page

Post by QwareeqMathematics »

Hi all,

I need to put a picture in title page. I can't figure out what is the problem with picture in the file..it always show me in the log file Latex Error: Cannot determine size of graphic in ....jpg (no BoundingBox)


here is the code :

Code: Select all

\documentclass{article}

\usepackage{graphicx,graphics}
\baselineskip=36pt
\sloppy \topmargin 0mm \marginparwidth 10mm \oddsidemargin 0mm
\textheight 8.5in \textwidth 6.2in \evensidemargin 0mm
\newcommand{\R}{{\rm I} \hspace{-0.03in} {\rm R}}
\newcommand{\C}{{\rm I} \hspace{-0.08in} {\rm C}}
\newcommand{\Z}{{Z} \hspace{-0.06in} {Z}}
\newcommand{\N}{{\rm I} \hspace{-0.03in} {\rm N}}

\usepackage[utf8]{inputenc}

\usepackage[ngerman]{babel}

\usepackage[T1]{fontenc}

\begin{document}

\begin{titlepage}
\begin{center}
\textbf{
  \Huge Curriculum Vitae \vskip .5cm
\includegraphics[width=6cm,height=7cm]{pic}
  \vskip.2in
  \textsc{\LARGE Professor THTH}}
  \vskip.2in
   \small Department of Mathematics,
 \vskip .2cm
   \end{center}

  \section*{Personal Data}


\begin{itemize}
\item Full Name: \hspace{0.9cm} THTH

\item Date of Birth: \hspace{0.5cm} May 10, 1800

\item Place of Birth:\hspace{0.5cm} CA-USA

\item Nationality: \hspace{0.8cm} USA

\item Sex: \hspace{2.1cm} Male

\item Marital Status: \hspace{0.33cm} Married, two daughters.


\end{itemize}


\end{titlepage}

\end{document}

Attachments
pic.JPEG
pic.JPEG (8.92 KiB) Viewed 3937 times

Recommended reading 2024:

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

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Picture in title page

Post by Johannes_B »

Are you running latex (ie. DVI mode) or are you running pdflatex? You need to run pdflatex in order to use jpg, png, and pdf file formats.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Picture in title page

Post by Stefan Kottwitz »

Also I think, you just need to switch to pdfLaTeX in your editor. Bounding box is a DVI mode eps thingy. :-)

Btw. instead of \hspace in itemize, perhaps tabular would be good for better alignment.

Btw. there are packages for writing a CV. If you would like to have a quick solution and you have an up to date TeX installation, using moderncv and an example template of it is not too hard.

Stefan
LaTeX.org admin
Post Reply