Text FormattingT{\acute{}} VS T'

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
avoyance
Posts: 13
Joined: Sun Feb 13, 2011 1:53 am

T{\acute{}} VS T'

Post by avoyance »

Is there any difference between typing

Code: Select all

T{\acute{}}
and

Code: Select all

T'
?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: T{\acute{}} VS T'

Post by frabjous »

I assume you mean with both in math mode? Yes, they're different. Try it and see. \acute{} inserts an accent mark, and ' indicates a "prime" symbol (same as ^\prime, I believe).
avoyance
Posts: 13
Joined: Sun Feb 13, 2011 1:53 am

T{\acute{}} VS T'

Post by avoyance »

frabjous wrote:I assume you mean with both in math mode? Yes, they're different. Try it and see. \acute{} inserts an accent mark, and ' indicates a "prime" symbol (same as ^\prime, I believe).
' also gave a prime symbol
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: T{\acute{}} VS T'

Post by frabjous »

Yes, that's what I wrote. ' gives a prime symbol. \acute{} does not. Anyway, there's nothing easier than checking it yourself.
avoyance
Posts: 13
Joined: Sun Feb 13, 2011 1:53 am

T{\acute{}} VS T'

Post by avoyance »

frabjous wrote:Yes, that's what I wrote. ' gives a prime symbol. \acute{} does not. Anyway, there's nothing easier than checking it yourself.

I concluded that there is no difference using T^\prime and T^{\acute{}}
but it is actually best to use T'
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

T{\acute{}} VS T'

Post by frabjous »

avoyance wrote:I concluded that there is no difference using T^\prime and T^{\acute{}}
but it is actually best to use T'
I cannot see how you could have concluded that. The difference is palpable.

This code:

Code: Select all

\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\Huge
$T'$ and  $T^\prime$ and $T^{\acute{}}$
\end{document}
Yields this:
ts.png
ts.png (3.31 KiB) Viewed 5316 times
Surely you can see the difference between the first two on one hand, and the last one, on the other?
avoyance
Posts: 13
Joined: Sun Feb 13, 2011 1:53 am

T{\acute{}} VS T'

Post by avoyance »

This code:

Code: Select all

\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\Huge
$T'$ and  $T^\prime$ and $T^{\acute{}}$
\end{document}
Yields this:
ts.png
Surely you can see the difference between the first two on one hand, and the last one, on the other?[/quote]


so...which one is the correct way to type the usual T'?

presumably
$T'$ and $T^\prime$ and $T\acute{}$ should get the same?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: T{\acute{}} VS T'

Post by frabjous »

I would just write T' unless you have a special reason to prefer one of the others. The \acute command is usually used with an argument (e.g, \acute{a}) to put an accent *over* a character. If you're not doing that, I'd avoid \acute{}.
Post Reply