LaTeX forum ⇒ Scientific Word/Workplacebeamer | Frame Numbers in the Footer

Information and discussion about Scientific Word and Scientific Workplace, two commercial WYSIWYG-like editors for Windows
Hoed
Posts: 28
Joined: Sat Jan 07, 2012 12:46 pm

beamer | Frame Numbers in the Footer

Postby Hoed » Sat Jan 07, 2012 1:42 pm

Hi,

I'm using Scientific Workplace 5.5 and Beamer. However, I've been asked to put some frame-numbers on the slides, so my students are able to follow my lectures better. Trying this, I found a code, which puts the frame-numbers in the footer to the right. All being quite well, but when setting the document more than once, the box, in which the frame-number is set, offsets some pt to the right. The problem seems to be persistent when deleting all packages. Anyway, if there's solution to that (may be I'm only not able to find an existing solution) I'd be a happy bunny.
  1. %\usecolortheme{crane}
  2. %\setbeamercolor{normal text}{fg=black,bg=yellow}
  3. %\logo{\includegraphics[height=40pt]{figures/hu-logo-breit}}
  4. %\usefonttheme[onlysmall]{structurebold}
  5. %\setbeamerfont{frametitle}{series=\bfseries}
  6. %\usepackage[centertags,reqno]{amsmath}
  7. %\usepackage{amsthm}
  8.  
  9. \documentclass[notes=show,beamer,t,final]{beamer}
  10. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  11. %TCIDATA{OutputFilter=LATEX.DLL}
  12. %TCIDATA{Version=5.50.0.2890}
  13. %TCIDATA{<META NAME="SaveForMode" CONTENT="1">}
  14. %TCIDATA{BibliographyScheme=Manual}
  15. %TCIDATA{Created=Friday, December 02, 2011 18:00:47}
  16. %TCIDATA{LastRevised=Saturday, January 07, 2012 12:28:07}
  17. %TCIDATA{<META NAME="GraphicsSave" CONTENT="32">}
  18. %TCIDATA{<META NAME="DocumentShell" CONTENT="Other Documents\SW\Slides - Beamer">}
  19. %TCIDATA{Language=Deutsch (neu)}
  20. %TCIDATA{CSTFile=beamer.cst}
  21.  
  22. \newenvironment{stepenumerate}{\begin{enumerate}[<+->]}{\end{enumerate}}
  23. \newenvironment{stepitemize}{\begin{itemize}[<+->]}{\end{itemize} }
  24. \newenvironment{stepenumeratewithalert}{\begin{enumerate}[<+-| alert@+>]}{\end{enumerate}}
  25. \newenvironment{stepitemizewithalert}{\begin{itemize}[<+-| alert@+>]}{\end{itemize} }
  26. \usecolortheme{whale}
  27. \usecolortheme{orchid}
  28. \usecolortheme{sidebartab}
  29. \useoutertheme[width=58pt,height=45pt]{sidebar}
  30. \useinnertheme{rounded}
  31. \setbeamercolor{normal text}{bg=white}
  32. \setbeamercolor{frametitle}{fg=white}
  33. \setbeamercolor{section in sidebar}{bg=black}
  34. \setbeamercolor{subsection in sidebar}{bg=black}
  35. \setbeamerfont{title in sidebar}{size=\scriptsize}
  36. \setbeamerfont{author in sidebar}{size=\tiny}
  37. \setbeamercovered{transparent}
  38. \setbeamertemplate{blocks}[rounded][shadow=true]
  39. \defbeamertemplate*{footline}{infolines theme}
  40. {
  41. \leavevmode
  42. \hbox{ \begin{beamercolorbox}[wd=1\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
  43. \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
  44. \end{beamercolorbox}}
  45. \vskip0pt
  46. }
  47. \input{tcilatex}
  48. \begin{document}
  49.  
  50. \title[]{Migrationsmodelle}
  51. \author{Lala}
  52. \institute{Hochschule...}
  53. \date{}
  54. \maketitle
  55.  
  56. %TCIMACRO{\TeXButton{BeginFrame}{\begin{frame}}}%
  57. %BeginExpansion
  58. \begin{frame}%
  59. %EndExpansion
  60.  
  61. \QTR{frametitle}{Geschichte der Migrationsforschung}
  62.  
  63. \QTR{framesubtitle}{Ravenstein}
  64.  
  65. \begin{stepitemize}
  66. \item 1889: Ravenstein. 'Laws of Migration'
  67. \end{stepitemize}
  68.  
  69. %TCIMACRO{\TeXButton{EndFrame}{\end{frame}}}%
  70. %BeginExpansion
  71. \end{frame}%
  72. %EndExpansion
  73.  
  74. \end{document}
Last edited by Hoed on Tue Jan 10, 2012 8:29 pm, edited 1 time in total.

Hoed
Posts: 28
Joined: Sat Jan 07, 2012 12:46 pm

Postby Hoed » Tue Jan 10, 2012 11:41 am

Hi,

I developed a work-around. Instead of defining a new template using
  1. \defbeamertemplate*{footline}{infolines theme}
  2. {...
  3. }


I just use a given template and modify it.
  1. \setbeamertemplate{footline}
  2. {
  3. \begin{beamercolorbox}[wd=1\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}
  4. \usebeamerfont{date in head/foot}
  5. \insertshortdate{}\hspace*{2em}
  6. \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
  7. \end{beamercolorbox}
  8. }


Seems, this topic can be closed although I'm quite interested in why the first solution doesn't work.

Thanks for your thoughts, anyway.


Return to “Scientific Word/Workplace”

Who is online

Users browsing this forum: No registered users and 1 guest