Register a domain and help support LQ
 Home Forums HCL Reviews Tutorials Articles Register Search Today's Posts Mark Forums Read
 LinuxQuestions.org Images in latex front page
 Linux - Software This forum is for Software issues. Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

 04-30-2004, 05:31 AM #1 ObedientMonk LQ Newbie   Registered: Apr 2004 Posts: 3 Rep: 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 ) [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 \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