Text Formatting ⇒ Best space after ordinal superscript?
Best space after ordinal superscript?
I am a beginner using Latex (XeTex) with Lyx.
I notice that when I make the pdf out of my tex/lyx file the space between an ordinal's superscript (ex. 3rd, 11th etc.) and the following word is quite big and not so nice.
I used the commad \textsuperscript for the superscript and afterwards I tried putting varoius types of space (normal, thin, half quad, custom 0.1 em, interworw space), but none proved satisfactory.
I know there is the engord package to deal with these things automatically, but being a beginner and using Lyx (I don't know many tex commands), I am not able to use it (I can barely manage preamble code and random tex commands, but my attempts haven't worked).
Thanks for any suggestion.
Cheers
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Best space after ordinal superscript?
Code: Select all
...some text 3\textsuperscript{rd} and more text...
Re: Best space after ordinal superscript?
I missed the lyx insert superscript option, but still, even this is not exactly very nice.
I am attaching two example files (lyx changed into tex and the relative pdf). For some reason in all the cases the distance seems too much.
Cheers
P.s. I am about to post some more questions

- Attachments
-
- superscript space problem.pdf
- (31.09 KiB) Downloaded 342 times
-
- example space.tex
- (3.74 KiB) Downloaded 284 times
Best space after ordinal superscript?
Use ERT box to define something like this somewhere in your document or in the Preamble:
Code: Select all
\newcommand{\tss}[1]{\textsuperscript{#1}\hspace{1pt}}
In your document, use the above command this way:
Code: Select all
...some text 3\tss{rd}following text...
Re: Best space after ordinal superscript?

Best space after ordinal superscript?
Code: Select all
\documentclass{article}
\usepackage{engord}
\begin{document}
The \engordnumber{1} element of the list ...
The \engordnumber{1}.
\end{document}
Best space after ordinal superscript?
This will generate wrong spacing if the next character is a punctuation sign. This can be solved by loading the xspace package and using something likemeho_r wrote:...
Use ERT box to define something like this somewhere in your document or in the Preamble:...Code: Select all
\newcommand{\tss}[1]{\textsuperscript{#1}\hspace{1pt}}
Code: Select all
\newcommand{\tss}[1]{\textsuperscript{#1}\xspace}