LyXbeamer | Remove Institute Name from Footer

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
EigenGoofy
Posts: 42
Joined: Fri Jul 22, 2011 12:26 am

beamer | Remove Institute Name from Footer

Post by EigenGoofy »

Hi all!

As the attachment shows, there is annoying "Department of Hell University of" appeared on the footer. How do I remove this without affecting rest of part of slide?

The following code is loaded in my preamble:

Code: Select all

\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage{graphics}
\usepackage[absolute,overlay]{textpos}
\usepackage{calligra}
\usepackage{listings}

\usetheme{CambridgeUS}
\setbeamercovered{transparent}
\usepackage{ae,aecompl}

\usecolortheme{crane}
\useoutertheme{infolines}

\setbeamertemplate{headline}
{%
  \begin{beamercolorbox}{section in head/foot}
    \vskip2pt \hfill \insertsectionnavigationhorizontal{\linewidth}{}{}  \hfill  \vskip2pt
  \end{beamercolorbox}%
}

Thank You!
Attachments
removedepartment.jpg
removedepartment.jpg (54.55 KiB) Viewed 13210 times
Last edited by EigenGoofy on Wed Feb 01, 2012 9:58 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

beamer | Remove Institute Name from Footer

Post by coachbennett1981 »

I do not get what you get..

Code: Select all

\documentclass[compress]{beamer}
\mode<presentation>

    \usepackage[T1]{fontenc}
    \usepackage{graphics}
    \usepackage[absolute,overlay]{textpos}
    \usepackage{calligra}
    \usepackage{listings}

    \usetheme{CambridgeUS}
    \setbeamercovered{transparent}
    \usepackage{ae,aecompl}

    \usecolortheme{crane}
    \useoutertheme{infolines}

    \setbeamertemplate{headline}
    {%
      \begin{beamercolorbox}{section in head/foot}
        \vskip2pt \hfill \insertsectionnavigationhorizontal{\linewidth}{}{}  \hfill  \vskip2pt
      \end{beamercolorbox}%
    }
\title{Section 5.4 Midsegment Theorem}
\author{Mr. Bennett}

\begin{document}
\maketitle



\end{document}

it would be easier if you included a minimum working example to work with. The above code is one that I use in class. Did somebody put some info in your slide you are unaware of? Please post the exact file...
EigenGoofy
Posts: 42
Joined: Fri Jul 22, 2011 12:26 am

Re: beamer | Remove Institute Name from Footer

Post by EigenGoofy »

Hi, coachbennett1981!

The attachment is my example. Please note that this forum does NOT allow me to upload file with extension *.lyx. So I change my file extension into *.txt. If you want see the file, you must change my file extension back to *.lyx, otherwise you can not correctly see my file.

And you must have lyx with version 2.0 in order to load the file.

Thank you, coachbennett1981!
Attachments
example1.txt
(6.77 KiB) Downloaded 359 times
EigenGoofy
Posts: 42
Joined: Fri Jul 22, 2011 12:26 am

beamer | Remove Institute Name from Footer

Post by EigenGoofy »

By the way, your code does not work for lyx 2.0

It returns error:"
! LaTeX Error: Two \documentclass or \documentstyle commands.

\documentclass[compress]{
beamer}
The document may only declare one class.
"
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

beamer | Remove Institute Name from Footer

Post by localghost »

EigenGoofy wrote:[…] Please note that this forum does NOT allow me to upload file with extension *.lyx. So I change my file extension into *.txt. If you want see the file, you must change my file extension back to *.lyx, otherwise you can not correctly see my file. […]
You can always put the *.lyx file into a RAR or ZIP archive and upload this.

The beamer theme "CambridgeUS" uses the outer theme "infolines". In the corresponding configuration file called »beamerouterthemeinfolines.sty« the foot line is defined with the institute name in parentheses. A slight modification should let this data disappear. These lines would go into the document preamble.

Code: Select all

\defbeamertemplate*{footline}{infolines theme}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
    \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
  \end{beamercolorbox}}%
  \vskip0pt%
}
Disclaimer:
Since I'm not a LyX user, the above suggestions only represent an approach and therefore come with no warranty for full functionality. I can't neither offer further support with adding code into LyX nor with doing additional settings.


Thorsten
EigenGoofy
Posts: 42
Joined: Fri Jul 22, 2011 12:26 am

beamer | Remove Institute Name from Footer

Post by EigenGoofy »

Hello, Thorsten (Localghost?)!

If I directly copy your code onto my pre-amble, it returns error:
! LaTeX Error: Command \beamer@@tmpop@footline@infolines theme already defined.
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.

However, there are couple of ways to modify it so that it can work in LyX. For example, replace the first line from your code by

Code: Select all

\defbeamertemplate*{footline}{infolines}
or, another method is to replace the first line your code by

Code: Select all

\setbeamertemplate{footline}
So the code in my pre-amble looks like:

Code: Select all

\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage{graphics}
\usepackage[absolute,overlay]{textpos}
\usepackage{calligra}
\usepackage{listings}

\usetheme{CambridgeUS}
\setbeamercovered{transparent}
\usepackage{ae,aecompl}

\usecolortheme{crane}
\useoutertheme{infolines}

\setbeamertemplate{headline}
{%
  \begin{beamercolorbox}{section in head/foot}
    \vskip2pt \hfill \insertsectionnavigationhorizontal{\linewidth}{}{}  \hfill  \vskip2pt
  \end{beamercolorbox}%
}

\defbeamertemplate*{footline}{infolines}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
    \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
  \end{beamercolorbox}}%
  \vskip0pt%
}
Thank you so much, Thorsten~ Now I am going to give a wonderful presentation! :lol:
Post Reply