LaTeX superscript

344 views
Skip to first unread message

gervaz

unread,
May 26, 2011, 5:09:47 AM5/26/11
to LaTeX Users Group
Hi all, I've problems making a superscript text bold.

In fact, with the following code:

\textbf{This is the $2^{nd}$ page}

in the output it doesn't seem like the '2nd' is bold, but just plain
normal text.

Any help?

Thanks,

Mattia

Peter Flynn

unread,
May 26, 2011, 8:36:18 AM5/26/11
to latexus...@googlegroups.com
On Thu, May 26, 2011 at 10:09 AM, gervaz <ger...@gmail.com> wrote:
Hi all, I've problems making a superscript text bold.

In fact, with the following code:

\textbf{This is the $2^{nd}$ page}

Don't do this.

Superscripted ordinals are a historical relic of Victorian typography. They are unnecessary and are never used in modern professional typesetting. They were re-introduced by Microsoft Word apparently because Americans like their wordprocessing to look old-fashioned.

If you want to try and mimic low-quality wordprocessing, or if you are trying to make a typographic fac-simile of Victorian typsetting, use the \textsuperscript command from the textcomp package. Do NOT use math mode for text superscripts.

///Peter

gervaz

unread,
May 26, 2011, 9:35:41 AM5/26/11
to LaTeX Users Group
Ok Peter, thanks for the good advice. I'll not try this at home ;-)

On 26 Mag, 14:36, Peter Flynn <anglebrac...@gmail.com> wrote:
> On Thu, May 26, 2011 at 10:09 AM, gervaz <ger...@gmail.com> wrote:
> > Hi all, I've problems making a superscript text bold.
>
> > In fact, with the following code:
>
> > \textbf{This is the $2^{nd}$ page}
>
> *Don't do this.*
>
> Superscripted ordinals are a historical relic of Victorian typography. They
> are unnecessary and are never used in modern professional typesetting. They
> were re-introduced by Microsoft Word apparently because Americans like their
> wordprocessing to look old-fashioned.
>
> If you want to try and mimic low-quality wordprocessing, or if you are
> trying to make a typographic fac-simile of Victorian typsetting, use the
> \textsuperscript command from the textcomp package. Do *NOT* use math mode
> for text superscripts.
>
> ///Peter

Jagath AR

unread,
May 30, 2011, 2:01:34 PM5/30/11
to latexus...@googlegroups.com
On 26 May 2011 19:05, gervaz <ger...@gmail.com> wrote:
Ok Peter, thanks for the good advice. I'll not try this at home ;-)

Just an info! \boldmath will make the superscript text bold in this case.

\boldmath\textbf{This is the $2^{nd}$ page}

But, please follow Peter.
 
--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.




--
Regards

Werner Grundlingh

unread,
May 31, 2011, 12:32:17 PM5/31/11
to latexus...@googlegroups.com
I find it hard to blatantly dismiss the use of something in LaTeX without the proper context. Consequently, here's one solution to your problem:

...
\textbf{This is the $\mathbf{2^{nd}}$ page}
...

Werner

Peter Flynn

unread,
Jun 1, 2011, 7:07:23 AM6/1/11
to latexus...@googlegroups.com
On Tue, May 31, 2011 at 5:32 PM, Werner Grundlingh <wgrun...@gmail.com> wrote:
I find it hard to blatantly dismiss the use of something in LaTeX without the proper context.

Quite right, and I was quite wrong not to give the example:

\documentclass{article}
\begin{document}
I was born on 15th October

\textbf{I was born on 15\textsuperscript{th} October}
\end{document}

If you need it to look like it was done in Word, this way is much easier and less error-prone than abusing mathematics for something which is not mathematical.

I was also wrong in saying it needed the textcomp package: it doesn't -- \textsuperscript is built in. What is not built in is \textsubscript...this is in the fixltx2e package.

///Peter



Reply all
Reply to author
Forward
0 new messages