You are on page 1of 7

An example of using Ticking Digital Clock in Beamer

Luis Randez & Juan I. Montijano


IUMA
Universidad de Zaragoza

April 1, 2015

Luis R
andez & Juan I. Montijano (IUMA)

An example of using Ticking Digital Clock in Beamer

April 1, 2015

1/7

Introduction
We are putting here a clock with the macro

\tdclock:

Before that, the macro

\initclock

must have been used (only one time !).

This document uses the option resetatpages=2. This means that the crono is
reset to zero at page 2.
Below you can see a crono advancing. Every time you access to this page, the
crono should be reset to 0 (the output is updated every 10 seconds, as indicated
with the option timeinterval=10, so it could appear some non zero seconds, not
greater than 10)
Crono:

Wait some seconds until you see the crono advancing, then go to the next page,
go back to this page again and wait some seconds to see how the crono is reset.
Luis R
andez & Juan I. Montijano (IUMA)

An example of using Ticking Digital Clock in Beamer

April 1, 2015

2/7

Here we have inserted the clock at the place reserved to the date, the foot line in
the case of Madrid theme.
To do that, we have redefined the date contents with the order
\date{\tddate\ \ \tdtime}
Note that color and font size are adjusted according to the theme.
Look at the foot!, the clock must be running.

Luis R
andez & Juan I. Montijano (IUMA)

An example of using Ticking Digital Clock in Beamer

3/7

Next, we have inserted a button to toggle between clock and stopwatch, and a
button to reset the stopwatch to zero.
toggle

reset

Click at the left button, see what happens (you must wait 10 seconds), then click
at the right button and see the result. Finally, click at the left button again to
recover the current time
To do that, we have used
\toggleclock{\beamerbutton{toggle}}
\tdtime
\resetcrono{\beamerbutton{reset}}

Luis R
andez & Juan I. Montijano (IUMA)

An example of using Ticking Digital Clock in Beamer

4/7

Here we change the color and size of the clock with standard LATEXcommands.
\textcolor{blue}{\Large \tdhours.\tdminutes}}:
.
Here a huge yellow clock showing only hours and minutes, inside a red box
\hhmm \factorclockfont{6.0} \tdtime

:
Luis R
andez & Juan I. Montijano (IUMA)

An example of using Ticking Digital Clock in Beamer

5/7

\initclock
\tickingclock
\tickingtime
\tickingdate
\tickingday
\tickingmonth
\tickingyear
\tickinghours
\tickingminutes
\tickingseconds
\crono
\cronohours
\cronominutes
\cronoseconds
\resetcrono
\toggleclock

/ /
: :
/ /

reset
toggle

Luis R
andez & Juan I. Montijano (IUMA)

Time-Date-Crono macros
initialize clock
complete clock
: :
current time
current date
current day
current month
current year
current hours
current minutes
current seconds
stopwatch
crono hours
crono minutes
crono seconds
sets crono time to zero
toggle time-crono

An example of using Ticking Digital Clock in Beamer

6/7

\hhmm
\hhmmss
\mmddyyyy
\ddmmyyyy
\dateseparator
\timeseparator
\pdfslash
\pdfcolon
\factorclockfont{factor}

Luis R
andez & Juan I. Montijano (IUMA)

Formatting macros
format time
:
format time
: :
format date
/ /
format date
/ /

separator for date
. .
separator for time
slash in pdf font
/
colon in pdf font
:

format date

An example of using Ticking Digital Clock in Beamer

7/7

You might also like