2010-02-23 11 views
6

मैं पूरी तरह से पाद लेख को हटाए बिना, बीमर प्रस्तुति के पाद लेख (फुटलाइन) से स्लाइड गिनती (उदा।, SLIDE_NUMBER/TOTAL_SLIDES) को हटाना चाहता हूं। मैं बोडाइला थीम का उपयोग कर रहा हूं, जो infolines बाहरी थीम का उपयोग करता है।बीमर फ़ूटर से स्लाइड गिनती हटाएं

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

मैं अनिवार्य रूप से इस बाहरी विषय ऐसा है कि उसमें \insertframenumber{}/\inserttotalframenumber\hspace*{2ex} नहीं है, या अन्यथा कि विरासत में एक नया बाहरी विषय को परिभाषित को फिर से परिभाषित करने की जरूरत है: beamerouterthemeinfolines.sty फ़ाइल में, हम footline के लिए निम्नलिखित परिभाषा को खोजने infolines विषय से सब कुछ। मैं यह कैसे कर सकता हूँ?

संबंधित प्रश्न: How to Remove Footers of LaTeX Beamer Templates?

उत्तर

6

आप आप बस फ़ाइल beameroutertheminfolines.sty जो नहीं हो सकता है एक अच्छा विचार है कि बदल सकते हैं पसंद है। तो इसके बजाय आप बस अपनी .tex फ़ाइल में फुटलाइन का कोड लें और फ्रेम संख्याओं के लिए लाइन हटाएं या जैसा मैंने किया है, बस इसे एक टिप्पणी में बदल दें। तो आप अपने .tex फ़ाइल में beameroutertheminfolines.sty से सटीक हिस्सा कॉपी:

\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

यह समाधान अच्छी तरह से काम करता है, लेकिन एक '%' टिप्पणी में "' अगले #turning को स्वैप करने के लिए '#' यह सुनिश्चित कर लें .. । '"या यह संकलित नहीं होगा (' # 'संकलन तोड़ता है)। – gotgenes

+0

@gotgenes ने इसे सही किया, धन्यवाद! – mropa

+0

यह मेरे लिए अच्छा काम करता है और मुझे अतिरिक्त संशोधन की अनुमति देता है (स्लाइड नंबर रखें लेकिन हटाएं "/ \ inserttotalframenumber" – Chris

संबंधित मुद्दे