LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Images in latex front page (https://www.linuxquestions.org/questions/linux-software-2/images-in-latex-front-page-176272/)

ObedientMonk 04-30-2004 05:31 AM

Images in latex front page
 
Hi all,
I'm writing a thesis with latex2e, and I need to put my university's logo image in the front page, up the thesis' title. I used the book class, for various reason, and pdflatex with the hyperref package. I needed a preface, so I used the \frontmatter, \mainmatter and \backmatter commands, which let it appear in the table of contents and bookmarks, without being numbered as for the other chapters. To make it work with hyperref I used this options: [plainpages=false,pdfpagelabels]{hyperref}.
Now, when trying to include the logo image, i get errors like this:

-----------------ERROR-----------------

loading : Context Support Macros / PDF
) <logo.jpg, id=203, 105.39375pt x 104.39pt> <use logo.jpg> [1{/usr/share/texmf
/dvips/config/pdftex.map} <./logo.jpg>] [2]
! pdfTeX warning (ext4): destination with the same identifier (name{page.i}) ha
s been already used, duplicate ignored
<to be read again>
\penalty

----------------ERROR---------------



So it seems the problem's in page numbering.
The sensitive parts of the document are like these:

-----------------------------------------------
\documentclass[a4paper,10pt]{book}
\usepackage{tocbibind}
[...]
\usepackage[backref=page,plainpages=false,pdfpagelabels]{hyperref}
\usepackage[pdftex]{color,graphicx}
\begin{document}

\frontmatter
\includegraphics{logo.jpg}
\maketitle
\tableofcontents
\chapter{Preface}
[...]
\mainmatter
[...]
\backmatters
\appendix
\end{document}

------------------------------------------------------------------------

If I remove the \includegraphics command the error disappears (but I have no logo), as it disappears if I remove the maketitle command (I have the logo but not the title). In this latter case, I thought I could write the title on my own, but I got a page number up in the front page, which is not nice. So I added a \thispagestyle{empty} for the front page, and now I get what I wanted, but still not so nice.

I just would like to know if someone knows a solution wgich is not a work-around (i.e. which let me use the \maketitle command).
thx in advance

Giovanni


All times are GMT -5. The time now is 03:28 PM.