時刻の表示(calc利用)

名前: Tora
日時: 2003-04-03 12:23:43
IPアドレス: 133.45.16.*

Tora と申します. The LaTeX コンパニオン(アスキー出版局) pp.562-563 に出ている calc パッケージを利用した 時刻を出力するコマンド \printtime についての質問です. \documentclass[a4j,12pt]{jsarticle} \usepackage{calc} \newcounter{hours}\newcounter{minutes} \newcommand{\printtime}{% \setcounter{hours}{\time/60}% \setcounter{minutes}{\time-\value{hours}*60}% \thehours h \theminutes min} \begin{document} \noindent The time is \printtime.\\ \end{document} これは上記書籍のオリジナルのままですが, これだと, hours や minutes が一桁の場合, The time is 8h 8min. のように表示されます. これを The time is 08h 08min. あるいは The time is _8h _8min. %('_' はスペース) のように表示させるにはどのように変更したらよいのでしょうか? どなたかご教授頂ければ幸いです. よろしくお願い致します.

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます)