2

An attempt to write 8th

8\textsuperscript{th} resulted in the same text 8th

while the same environment worked well with numbers

8\textsuperscript{8} and produced correct view with subscript.

Why does textsuperscript not work with letters? P.S. Math mode is not used due to inattractive font view

MWE

\documentclass[11pt,notitlepage,oneside,openany,a5paper]{book} 
\usepackage{geometry}  
\geometry{a5paper}
\begin{document}
8\textsuperscript{th}
\\
8\textsuperscript{1}
\end{document}

letters were ignored, while numbers are not

  • 1
    Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – egreg Apr 3 '14 at 16:39
  • 2
    If I prefix the instructions \documentclass{article} and \begin{document} and append the instruction \end{document} to your macros and compile the resulting file under pdflatex, I do not get the problem you state you're getting. Something else must be going on that you haven't told us about. Please help us out by posting an MWE that generates the problem. – Mico Apr 3 '14 at 16:44
  • Please specify your documentclass and preamble in order to reproduce your issue. I have seen that behalf of X∃TeX you would need the package xltxtra. – strpeter Apr 3 '14 at 17:01
  • The minimal example shows superscript “th”. On the other hand, superscripting “th” is not considered good style: it's a Victorian age usage resurrected in recent times by a well known word processing piece of software. – egreg Apr 4 '14 at 9:34
6

Please always post complete documents that show the problem. It should work:

enter image description here

\documentclass{article}

\begin{document}

8\textsuperscript{th} 8th

\end{document}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.