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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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 373 times
-
- example space.tex
- (3.74 KiB) Downloaded 313 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}