Вы находитесь на странице: 1из 7

An example of using Ticking Digital Clock in Beamer

Luis Rández & Juan I. Montijano

IUMA
Universidad de Zaragoza

August 20, 2018

Luis Rández & Juan I. Montijano (IUMA) An example of using Ticking Digital Clock in Beamer August 20, 2018 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ández & Juan I. Montijano (IUMA) An example of using Ticking Digital Clock in Beamer August 20, 2018 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ández & 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ández & 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ández & Juan I. Montijano (IUMA) An example of using Ticking Digital Clock in Beamer / / : : 5/7
Time-Date-Crono macros
\initclock initialize clock
\tickingclock / / : : complete clock
\tickingtime : : current time
\tickingdate / / current date
\tickingday current day
\tickingmonth current month
\tickingyear current year
\tickinghours current hours
\tickingminutes current minutes
\tickingseconds current seconds
\crono : : stopwatch
\cronohours crono hours
\cronominutes crono minutes
\cronoseconds crono seconds
\resetcrono reset sets crono time to zero
\toggleclock toggle toggle time-crono

Luis Rández & Juan I. Montijano (IUMA) An example of using Ticking Digital Clock in Beamer / / : : 6/7
Formatting macros
\hhmm : format time
\hhmmss : : format time
\mmddyyyy / / format date
\ddmmyyyy / / format date
\dateseparator – – separator for date
\timeseparator . . separator for time
\pdfslash / slash in pdf font
\pdfcolon : colon in pdf font
\factorclockfont{factor} : : format date

Luis Rández & Juan I. Montijano (IUMA) An example of using Ticking Digital Clock in Beamer / / : : 7/7

Вам также может понравиться