Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to make presentation by using LyX beamer template (already installed in program files). But I am not able in insert a university logo on title page. Hope that some one can solve this problem. Please download any lyx file from the link below and try to insert your own logo.

http://www.ctan.org/tex-archive/macros/latex/contrib/beamer/solutions/conference-talks

I have followed the instruction given in the file.

"If you have a file called "institution-logo-filename.xxx", where xxx is a graphic format that can be processed by latex or pdflatex, resp., then you can add a logo by uncommenting the following:"

%\pgfdeclareimage[height=0.5cm]{institution-logo}{institution-logo-filename}
%\logo{\pgfuseimage{institution-logo}}

I have uncommented these two lines and have the logo file with same name "institution-logo-filename" in the same folder, but it does not work.

share|improve this question
1  
First, I think TeX - LaTeX would be a better place for this; I've flagged for a moderator to migrate, perhaps one will agree you'll have better luck over there. Second, they'll probably need more information. How exactly are you trying to insert the logo? What file format is it stored in? What does the generated TeX look like? –  sarnold Nov 13 '11 at 22:12
    
I think this question is a duplicate from this one –  adn Nov 14 '11 at 5:10
add comment

migrated from stackoverflow.com Nov 14 '11 at 2:19

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 6 down vote accepted

To add a logo to the titlepage, you can use the \titlegraphic command in the preamble. Go to Document --> Settings --> LaTeX preamble and add

\titlegraphic{\includegraphics{uni-logo-filename}}

However, this can also be done from within the GUI. Add a new line after the author(s), and choose TitleGraphic from the drop down menu in the top left. Then you can add the logo as you normally add images, by clicking add graphic.

For me, this placed the logo at the bottom of the page. If the same happens for you, you probably have to redefine the title page template. Stefan Kottwitz provides the basic idea in How to customize \titlepage in beamer?

Copy the \defbeamertemplate part to your LaTeX preamble in Document --> Settings, and change it to suit your needs. I'm not sure exactly what you want to have, but the following produced something very similar to the template, only with the logo between the authors and the affiliations.

\defbeamertemplate*{title page}{customized}[1][]
{\centering
 \setbeamercolor{title}{bg=blue,fg=white}
 \begin{beamercolorbox}[rounded=true,shadow=true,sep=5pt,center]{title}
 \usebeamerfont{title}\inserttitle\par
  \usebeamerfont{subtitle}\insertsubtitle
  \end{beamercolorbox} \par\medskip
  \usebeamerfont{author}\insertauthor\par\medskip
  \inserttitlegraphic \par\medskip
  \usebeamerfont{institute}\insertinstitute\par\medskip
  \setbeamerfont{date}{size=\large}
  \usebeamerfont{date}\insertdate\par
}
share|improve this answer
    
Thanks, but It will put the logo on the corner of each slide. I need the logo on front page between the author and university name. –  user4299 Nov 15 '11 at 7:57
    
@user4299 Yes, I believe that is the point of \logo. I didn't see that you mentioned the title page in your question though, sorry about that. –  Torbjørn T. Nov 15 '11 at 8:18
add comment

More information would definitely be helpful - particularly what you have tried already. Not knowing this, I take a shot:

Assuming you want to insert between subtitle and author, you could create an emtpy line there and, from the menu, select < Insert | Graphics > and choose your logo file. Right click on the picture and edit the settings - scale for the right size and anchor for centering.

Does that help?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.