# Insert lecture number and page number of lecture in footline

Filed under:
|
##### latex

I am dividing a semester's worth of lectures via the \lecture command. I'd like to have in the footline (among other things) the lecture number, date, and page number of the current lecture. I would also like to use the default style footline, with the black box on the left and the blue on the right. So I define a lecture with e.g.

\lecture{January 28, 2010}{lecture01}


with

\title[Lecture \insertlecturenumber{}(\insertlecture)\quad{}Page \insertframenumber]{Course Title}


in the preamble, I get an error; it will not accept \insertlecture there. If I remove \insertlecture, it does what I want, except that the page number is counted from the start of the semester, not the lecture. Is there any way to do this? Thank you.

Liam

© Stack Overflow or respective owner

• #### Resizing screenshots/screen captures for inclusion in Beamer

as seen on Stack Overflow - Search for 'Stack Overflow'
Sorry, this may or may not be a programming question directly, but I am trying to resize screenshots with Imagemagick and Gimp to include in a Beamer presentation, but it comes out even blurrier than the resizing done by LaTeX. For instance, in Beamer I might have a command to rescale the image… >>> More

• #### Resources for latex beamer

as seen on Stack Overflow - Search for 'Stack Overflow'
I am learning latex right now as a hobby and was working on beamer classes. What I would like to know is how to create your own themes for beamer. Can you please point out some good resources which would help me do it..I googled but could not really find some >>> More

• #### LaTeX beamer presentation-package 16:9 aspect ratio?

as seen on Stack Overflow - Search for 'Stack Overflow'
I'm programming a presentation in LaTeX using the beamer package. However, it defaults to 4:3 aspect ratio slides, while everything I use is 16:9 -- is there an easy way to change this using a command or two? Thanks! >>> More

• #### Best font size for Latex Beamer

as seen on Stack Overflow - Search for 'Stack Overflow'
Hi Stackoverflow - I am preparing a presentation in latex using the beamer package. I am wondering what font size "pros" who give a lot of presentations use to make sure people in the back of the room can see. The default font size seems a bit small to me. Thanks, Setjmp >>> More

• #### LaTeX beamer free-flowing two column?

as seen on Stack Overflow - Search for 'Stack Overflow'
So in standard LaTeX, there is \twocolumn, where I can just type text, and it'll go down the left side of the page, then continue at the top of the right side of the page. Now, I know that inside of a Beamer frame, I can manually create two columns, of various width, with text in them -- however… >>> More

• #### How to deal with configuration style warnings occuring from TexLive 2012 installation?

I followed the advice of izx on how to install TexLive 2012 using the texlive-backports PPA. Before I started I removed all TexLive-related packages. The installation finished and everything seems to work fine. The only thing I noticed are some warnings in the output of the installer. Here is an excerpt… >>> More

• #### Making the draft document option in LaTeX have extra text appear in LaTeX

as seen on Stack Overflow - Search for 'Stack Overflow'
Is there a way to get some text to appear only when the [draft] option is active. For example, when the draft option is active, I want some text to appear between my title and abstract: "draft: do not cite without permission" or some such. >>> More

• #### how to replace latex macros with their definitions (using latex)

as seen on Stack Overflow - Search for 'Stack Overflow'
How can I replace all occurrence of user defined latex macros with their definitions? For example, given this file old.tex \newcommand{\blah}[2]{#1 \to #2} ... foo \blah{egg}{spam} bar ... how to generate the file below in an automatic way new.tex ... foo egg \to spam bar ... Instead of reimplementing… >>> More

• #### write c++ in latex, noob latex question

as seen on Stack Overflow - Search for 'Stack Overflow'
maybe is a noob question but i can't find the solution in the web, i need to write C++ in Latex. I write C$++$ but the result is like crap, the signs are too big and there is too much space between C and the first plus sign. Previously i needed to write the sharp symbol for C#....c$\sharp$ it also… >>> More

• #### fresh installation of PGF/TikZ crashes, why?

as seen on Stack Overflow - Search for 'Stack Overflow'
I have a clean CentOS 5.5 machine with tetex installed. Next, I installed PGF/TikZ: wget http://media.texample.net/pgf/builds/pgfCVS2010-06-02_TDS.zip unzip pgfCVS2010-06-02_TDS.zip \cp -r tex /usr/share/texmf texhash I'm trying to compile a simple document and this is what I'm getting: \$ latex… >>> More