Text FormattingHow to have superscript ordinal numerals?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
clemens
Posts: 77
Joined: Fri Jun 26, 2009 11:57 am

How to have superscript ordinal numerals?

Post by clemens »

Hello, I have in my text lots of 1st, 30th, 2nd, etc. and I would like to have the letters to be in superscript.
Is there a command to do it in the entire text?
I am using TexLive (XeTex) with Lyx.
Cheers

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

How to have superscript ordinal numerals?

Post by phi »

Code: Select all

1\textsuperscript{st}
The engord package is able to do this automatically.
clemens
Posts: 77
Joined: Fri Jun 26, 2009 11:57 am

Re: How to have superscript ordinal numerals?

Post by clemens »

Thank you :)
clemens
Posts: 77
Joined: Fri Jun 26, 2009 11:57 am

Re: How to have superscript ordinal numerals?

Post by clemens »

Hi, actually I am having some trouble :oops:
I am using Lyx and what I did was to put the userpackage in the latex preamble of the document \userpackage[normal]{engord}, then at the beginning of the document \engordraisetrue, but nothing happened.
I also tried putting the cmmand \engordnumber{1} but nothing. What should I do?
There are so many ordinals in my text and doing them one by one would be really time consuming
coreybruns
Posts: 1
Joined: Thu Sep 24, 2009 3:59 am

Re: How to have superscript ordinal numerals?

Post by coreybruns »

The "normal" option you are giving engord is causing "st", etc. to be set as normal text. Removing it (i.e. just having "\usepackage{engord}" )should fix it.
clemens
Posts: 77
Joined: Fri Jun 26, 2009 11:57 am

Re: How to have superscript ordinal numerals?

Post by clemens »

Thanks and sorry for this late reply.
Cheers
Post Reply