I was browsing The Comprehensive LATEX Symbol List looking for a simple analog clock in which I could use in a pamphlet. At some moment, I found an interesting entry (page 91):

Clock entry

I tried to use the \showclock macro in my document, but unfortunately a pdflatex run showed me the following error:

! Undefined control sequence.
l.10 \showclock{4}{50}

In my Linux box with TL2011, the very same attempt to call \showclock{4}{50} gets even worse, with no ifsym package available.


I tried to read the documentation, but texdoc ifsym lists only a German document, of which I only understand a few words - sadly. (Ich spreche kein Deutsch.) :( Anyway, the icon table in the end of the documentation gives me the idea of a possible font problem, like a missing indexing or reference.








Is there any package with a similar command, say \clock{<hours>}{<minutes>}?

  • I'm surprised you linked to the documentation on ctan, and not texdoc.net :)
    – cmhughes
    Mar 26 '12 at 2:59
  • @cmhughes: Oops, my bad. :) Mar 26 '12 at 16:35
  • only because I know you co-created texdoc.net :)
    – cmhughes
    Mar 26 '12 at 17:45

Il est minuit 45 : \showclock{0}{45}

enter image description here

  • Wow. I feel so silly, I had no idea about providing a package option. Merci. :) Mar 25 '12 at 21:00

It seems the \showclock command becomes available if you activate it with a clock package option:


For completeness sake, I'll add a honorable mention to a similar package I found when trying to find a solution to my original question: the clock package. According to the documentation:

  • The basic command available is \clock{<hours>}{<minutes>} which takes two arguments: hours and minutes. It does not matter whether the hours are given in a 12h or a 24h range; the TeX clock understands both.

  • When saying \clocktime (without any argument) then the TeX clock will output the current system time at time of compilation.

  • \ClockFrame: a boolean parameter and can be true or false. Saying \ClockFramefalse lets the border disappear, saying \ClockFrametrue lets the border appear.

  • The parameter \ClockStyle takes a number between 0 and 3 where 0 stands for a clock with invisible dial.

A full MWE:







The previous code creates the following output:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.