Skip to content
/ nth Public

Typst package for adding english ordinals to numbers, eg. 1st, 2nd, 3rd, 4th.

License

Notifications You must be signed in to change notification settings

extua/nth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nth

Provides functions #nth() and #nths() which take a number and return it suffixed by an english ordinal.

This package is named after the nth LaTeX macro by Donald Arseneau.

Usage

Include this line in your document to import the package.

#import "@preview/nth:1.0.0": *

Then, you can use #nth() to markup ordinal numbers in your document.

For example, #nth(1) shows 1st,
#nth(2) shows 2nd,
#nth(3) shows 3rd,
#nth(4) shows 4th,
and #nth(11) shows 11th.

If you want the ordinal to be in superscript, use #nths with an 's' at the end.

For example, #nths(1) shows 1st.

About

Typst package for adding english ordinals to numbers, eg. 1st, 2nd, 3rd, 4th.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages