I have a table that represents a timetable for bus, so each cell contains time of departure as hour followed by minute, both as two digits, but sometimes I don't have two digits,just one so I have to switch eg. from 12 4 -> 12 04.
How is it possible?
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
|
|||||
|
|
You can define a macro as follows:
This macro is fully expandable. If you also want to cut trailing zeros you can use:
If you want to change a
If you post a real usage example I can help me with more specific macros. |
|||||||||||||
|
|
You can do that using the
prints
or alternatively you can declare the option as default,
|
|||||||
|
|
You can also use the
Code:
|
|||
|
|
|
You can use LaTeX's internal
|
|||
|
|

