Sie sind auf Seite 1von 7

An example of using Ticking Digital Clock in Beamer

Luis Randez & Juan I. Montijano


IUMA
Universidad de Zaragoza

April 16, 2016


We are putting here a clock with the macro

Before that, the macro

\initclock

\tdclock:

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
Luis R
andez & Juan I. Montijano (IUMA)

An example of using Ticking Digital Clock in Beamer

April 16, 2016

0/6

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

1/6

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

1/6

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

2/6

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
6.0

Luis R
andez & Juan I. Montijano (IUMA)

An example of using Ticking Digital Clock in Beamer

3/6

\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

4/6

\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
2.0 format date

An example of using Ticking Digital Clock in Beamer

5/6