Author Topic: Ordinal number(day) variable  (Read 239 times)

Offline Dimitrije

  • Newcomer
  • *
  • Posts: 2
    • View Profile
Ordinal number(day) variable
« on: June 18, 2025, 05:22:22 PM »
Could we get a variable that outputs ordinal numbers, specifically days of the month, in the correct format: 1st, 2nd, 3rd etc? I hope it's a simple addition but would help tremendously for certain captions. I suggest the name {dord}

Offline Claude Diderich

  • Member
  • **
  • Posts: 51
  • Claude Diderich
    • View Profile
    • Claude Diderich Sports Pictures
Re: Ordinal number(day) variable
« Reply #1 on: Yesterday at 07:27:11 AM »
As a quick fix, you could define code replacements, e.g.
o1 1st
o2 2nd
o3 3rd
...

and then use $o{iday}$
Claude Diderich, sports photographer, member of AIPS and sportpress.ch