Share your knowledge at the LQ Wiki.
 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, 06:39 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
 05-02-2004, 09:59 AM #2 Bebo Member   Registered: Jul 2003 Location: Göteborg Distribution: Arch Linux (current) Posts: 553 Rep: Hello, I have never been able to use other image/figure formats than ps or eps, so maybe that's your problem?
 05-02-2004, 10:24 AM #3 Vlad_M Member   Registered: Aug 2002 Location: Cape Town, South Africa Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work) Posts: 388 Rep: 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.