2010-02-23 7 views
6

Je souhaite supprimer le nombre de diapositives (par exemple, SLIDE_NUMBER/TOTAL_SLIDES) du pied de page d'une présentation Beamer, sans retirer complètement le pied de page. J'utilise le thème Boadilla, qui utilise le thème externe infolines. Dans le fichier beamerouterthemeinfolines.sty, on trouve la définition suivante pour le footline:Supprimer le nombre de diapositives du pied de page Beamer

\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~~(\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% 
} 

Je dois redéfinir essentiellement ce thème extérieur de telle sorte qu'il n'a pas le \insertframenumber{}/\inserttotalframenumber\hspace*{2ex} dans, ou autrement définir un nouveau thème extérieur qui hérite tout le reste du thème infolines. Comment puis-je faire ceci?

question connexe: How to Remove Footers of LaTeX Beamer Templates?

Répondre

6

Si vous le souhaitez, vous pouvez simplement modifier le fichier beameroutertheminfolines.sty qui pourrait être pas d'une bonne idée. Donc, à la place, vous prenez simplement le code de la ligne de pied dans votre fichier .tex et supprimez la ligne pour les numéros d'image ou, comme je l'ai fait, il suffit de le transformer en un commentaire. Donc, vous copiez la partie exacte de beameroutertheminfolines.sty dans votre fichier .tex:

\documentclass{beamer} 
    %#comment out the Boadilla theme and uses only the header bar 
    %\usetheme[]{Boadilla} 
    \usetheme[secheader]{Boadilla} 

     %#make sure to change this part, since it is predefined 
     %\defbeamertemplate*{footline}{infolines theme} 
     \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~~(\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} 

    %#turning the next line into a comment, erases the frame numbers 
     %\insertframenumber{}/\inserttotalframenumber\hspace*{2ex} 

     \end{beamercolorbox}}% 
     \vskip0pt% 
    } 
+1

Cette solution fonctionne bien, mais assurez-vous d'échanger le '' # un ''% dans le commentaire « ' #turning prochain .. . '"ou cela ne compilera pas (le' #' casse la compilation). – gotgenes

+0

@gotgenes l'a corrigé, merci! – mropa

+0

Cela a bien fonctionné pour moi et m'a permis une modification supplémentaire (garder le numéro de la diapositive, mais supprimer "/ \ inserttotalframenumber" – Chris