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-176275/)

ObedientMonk 04-30-2004 05:39 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

Bebo 05-02-2004 08:59 AM

Hello,

I have never been able to use other image/figure formats than ps or eps, so maybe that's your problem?

Vlad_M 05-02-2004 09:24 AM

You probably know this, but I'll say it anyway - LyX is a really good document processor. It is a frontend for LaTeX and you can use LaTeX commands in it. I used it for both of my B.Sc and M.Sc thesis and it worked like a charm, figures, diagrams, tables, everything - never had to correct anything. I don't see a reason to wrestle with LaTeX all the time when I can use LyX and then just correct (if necessary) with raw LaTeX commands.

And yes I managed to get the varsity logo on the title page, no problems at all. :)


All times are GMT -5. The time now is 07:23 AM.