5

I would like to use powerdot to compose a document. I want to have a clock in the pdf file, but it does not show. If I am using Beamer, then how can I have a clock as in powerdot? Please help me.

\documentclass[size=12pt,
% style=husky,
% style= default
% style= elcolors
  style=tycja,
  paper=screen,
  mode =present,
  orient=landscape,
  display = slidesnotes,
  nopagebreaks,fleqn,clockformat]{powerdot}

\usepackage{fouriernc}

\begin{document}

\begin{slide}{First}
    Let $ABC$ be a triangle.
\end{slide}

\end{document}
lockstep
  • 250,273
minthao_2011
  • 4,534
  • 7
  • 36
  • 61

2 Answers2

3

With powerdot, you can:

  • use the clock option,
  • compile via latex->dvips->ps2pdf,
  • and use a PDF Viewer with Javascript capacity (like Adobe Reader).
\documentclass[size=12pt,
  style=tycja,
  paper=screen,
  mode =present,
  orient=landscape,
  display = slidesnotes,
  nopagebreaks,fleqn,clock]{powerdot}
\usepackage{fouriernc}
\begin{document}
\begin{slide}{First}
    Let $ABC$ be a triangle.
\end{slide}
\end{document}

With beamer, you can:

  • use the tdclock package,
  • compile via pdflatex,
  • and use a PDF Viewer with Javascript capacity (like Adobe Reader).
\documentclass{beamer}
\usepackage[timeinterval=1,font=Helv]{tdclock}
\setbeamertemplate{background}{\hspace{.5em}\textcolor{red}{\tiny\bfseries\tdtime}}
\begin{document}
\begin{frame}
  \initclock
  \frametitle{First slide}
\end{frame}
\begin{frame}
  \frametitle{Second slide}
\end{frame}
\end{document}
Paul Gaborit
  • 70,770
  • 10
  • 176
  • 283
2

Due to a bug in tdclock.sty, the clocks in more than one PDF opened in AR do not work except for the clock in the document opened first.

These are the steps to get clocks inserted using tdclock always working:

sed -i '/^global\.[ifd]/ s/^/%/' tdclock.sty
sed -i 's/global\.//g' tdclock.sty
sed -i 's/TextField\[/TextField\[readonly,/g' tdclock.sty

orig. tdclock.sty patched tdclock.sty

Werner
  • 603,163
AlexG
  • 54,894
  • What do I need to change to make it work on a Windows box with Cygwin? – Abhinav Jun 08 '18 at 04:21
  • Ok, but where do I use these commands? In the preamble of my TeX file? Could you give more details? – lucenalex Dec 05 '22 at 15:17
  • 1
    tdclock is not needed anymore for inserting a digtal clock in powerdot. powerdot comes with its own implementation. Just add clock as option to \documentclass. The time format can be further adjusted. If you want for example get rid of the (distracting) seconds, add \pdsetup{clockformat=H:MM, clockrefresh=60000} or \pdsetup{clockformat=h:MM tt, clockrefresh=60000} in the preamble. – AlexG Dec 05 '22 at 16:00
  • 1
    For beamer, you still need tdclock. Here you must patch tdclock.sty. These commands work in Unix environments to modify text files on the command line. Alternatively, open tdclock.sty in a text editor and do the modifications there. sed 's/<orig text>/<replacement text>/g' means: globally substitute <orig text> with <replacemenrt text>. The special chars make up Regular Expressions for pattern matching. – AlexG Dec 05 '22 at 21:13