3

I have the following in my preamble in Share Latex.

\documentclass{beamer}
\usetheme{CambridgeUS}
\usepackage{graphicx}
\usepackage{mathabx}
\usepackage{enumitem}
\setitemize{itemsep=10pt,% Change the item separation here
label=\usebeamerfont*{itemize item}% These lines are necessary to restore the bullets to each item
\usebeamercolor[fg]{itemize item}%
\usebeamertemplate{itemize item}%
}
\setbeamertemplate{caption}[numbered]{}% Number float-like environments
%% Shortcuts
\newcommand{\td}[2]{\dfrac{d #1}{d #2}}
\newcommand{\std}[2]{\dfrac{d^2 #1}{d {#2}^2}}
\newcommand{\ctd}[3]{\dfrac{d^2 #1}{d #2 d #3}}

\newcommand{\pd}[2]{\dfrac{\partial #1}{\partial #2}}
\newcommand{\spd}[2]{\dfrac{\partial^2 #1}{\partial {#2}^2}}
\newcommand{\cpd}[3]{\dfrac{\partial^2 #1}{\partial #2 \partial #3}}

\newcommand{\pdi}[2]{\partial #1/\partial #2}

\newcommand{\LR}{\Leftrightarrow}
\newcommand{\Lg}{\mathcal{L}}
\newcommand{\half}{\tfrac{1}{2}}
\newcommand{\eqp}{\phantom{=}}
\newcommand{\eqs}{\buildrel s \over =}
\newcommand{\me}{\mathrm{e}}


\title{Comments on Angrist and Evans: Children and Their Parents' Labor Supply (1998)}
\author{Name}
\institute{University}
\date{Oct 16, 2015}

enter image description here

I was wondering how to remove the slide number and also shorten the "Comments on Angrist and Evans: Children" to just "Comments on Angrist and Evans" at the bottom. I am using Share Latex and any help would be appreciated. Thanks

1
  • 1
    For first you have to re-define the footline and for the second use the optional argument: \title[Comments on Angrist and Evans]{Comments on Angrist and Evans: Children and Their Parents' Labor Supply (1998)}
    – user11232
    Commented Oct 16, 2015 at 3:53

1 Answer 1

3

For removing the slide number, you have to re-define the footline. The CambridgeUS theme uses infolines outer theme. So find the file beamerouterthemeinfolines.sty and locate the footline and modify. The modified one is given below where one line is commented out

\makeatletter
\setbeamertemplate{footline}{%
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor\expandafter\beamer@ifempty\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
  \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}   %% comment this
  \end{beamercolorbox}}%
  \vskip0pt%
}
\makeatother

And for the second, use the optional argument of title like

\title[Comments on Angrist and Evans]{Comments on Angrist and Evans: Children and Their Parents' Labor Supply (1998)}

Here is the full code.

\documentclass{beamer}
\usetheme{CambridgeUS}
\usepackage{graphicx}
\usepackage{mathabx}
\usepackage{enumitem}
\setitemize{itemsep=10pt,% Change the item separation here
label=\usebeamerfont*{itemize item}% These lines are necessary to restore the bullets to each item
\usebeamercolor[fg]{itemize item}%
\usebeamertemplate{itemize item}%
}
\setbeamertemplate{caption}[numbered]{}% Number float-like environments
%% Shortcuts
\newcommand{\td}[2]{\dfrac{d #1}{d #2}}
\newcommand{\std}[2]{\dfrac{d^2 #1}{d {#2}^2}}
\newcommand{\ctd}[3]{\dfrac{d^2 #1}{d #2 d #3}}

\newcommand{\pd}[2]{\dfrac{\partial #1}{\partial #2}}
\newcommand{\spd}[2]{\dfrac{\partial^2 #1}{\partial {#2}^2}}
\newcommand{\cpd}[3]{\dfrac{\partial^2 #1}{\partial #2 \partial #3}}

\newcommand{\pdi}[2]{\partial #1/\partial #2}

\newcommand{\LR}{\Leftrightarrow}
\newcommand{\Lg}{\mathcal{L}}
\newcommand{\half}{\tfrac{1}{2}}
\newcommand{\eqp}{\phantom{=}}
\newcommand{\eqs}{\buildrel s \over =}
\newcommand{\me}{\mathrm{e}}

\makeatletter
\setbeamertemplate{footline}{%
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor\expandafter\beamer@ifempty\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
  \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%
}
\makeatother



\title[Comments on Angrist and Evans]{Comments on Angrist and Evans: Children and Their Parents' Labor Supply (1998)}
\author{Name}
\institute{University}
\date{Oct 16, 2015}
\begin{document}
  \begin{frame}
    \maketitle
  \end{frame}
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .