18

Can anyone tell how to put the capital Angstrom to express units. I have been looking for a package but I haven't found one yet.

3
  • 9
    \AA is not OK? Feb 2, 2018 at 4:12
  • 1
    \AA is invalid in math mode. In math mode, put it in \text{} as \(\text{\AA}\), or see some solutions at this question
    – ydhhat
    Jun 6, 2021 at 18:39
  • 1
    @ydhhat If you use \text, the formatting of the surrounding text will bleed through to math mode. This most often happens with italics in theorem statements. You probably would want \textnormal to rest the formatting, or \textup if you want to clear italics/small caps but use bold math in a header. Or, use siunitx.
    – Davislor
    Aug 23, 2021 at 14:48

4 Answers 4

23

The excellent siunitx package is there for you:

\documentclass{article}

\usepackage{siunitx}

\begin{document}

\si{\angstrom}

\SI{1}{\angstrom}

\end{document}
3
  • 4
    Unfortunately, \angstrom has been deprecated in siunitx from version 2 to 3 (as it is not an official SI unit), it has to be defined as a custom unit, examples: tex.stackexchange.com/questions/24255/angstrom-not-working Also, \SI has been replaced by \qty{} commands.
    – escalator
    Jun 7, 2021 at 6:59
  • 2
    \DeclareSIUnit{\angstrom}{\textup{\AA}}
    – user94293
    Dec 30, 2022 at 22:00
  • Note that whilst \angstrom is deprecated, the package tells you exactly what to add to your source (allowing for the engine, etc., you use); that will remove the warning. This is all there because the BIPM have removed ångstrom from the official list of units ...
    – Joseph Wright
    May 12 at 10:33
10

Actually, simply typing

\r{A}

works fine! Also, it seems that it does not need any package, not even the ams packages, which is a bit strange).

The command \r{A} in LaTeX is used to place a ring accent (a small circle) above the letter A. This diacritical mark is common in various Scandinavian languages, where it represents a separate vowel sound. The \r command is a standard LaTeX command for creating a ring accent above characters.

P.S.: I do not have the unitx package installed (I want to install it, but for the moment to do not know how to install it on miktex..)

5
  • 1
    \r{A} is invalid in math mode. In math mode, put it in \text{} as \(\text{\r{A}}\), or see some solutions at this question
    – ydhhat
    Jun 6, 2021 at 18:33
  • 2
    Doesn't work in MathJax for example. Jul 29, 2021 at 6:07
  • 1
    @user1271772 mathjax has notthing to do with LaTeX other than it knows a limited math syntax
    – daleif
    Aug 23, 2021 at 15:16
  • 1
    @daleif that is false. Not only does it know a limited math syntax, it also knows a limited LaTeX syntax. So it doesn't have "nothing" to do with LaTeX other than that. Aug 23, 2021 at 15:38
  • 1
    Not so good. does not typeset so well Oct 7, 2021 at 14:02
4

An alternative that works in both text and math mode is

\textup{~\AA}

This always sets the unit upright, but makes it bold if you use it in a header. It also avoids line breaking between a quantity and its unit. In practice, you’d end up defining a macro for this that’s no simpler than \qty from siunitx.

1
  • 2
    But the spacing is wrong, that is a word space it should be a small space: \,
    – daleif
    Aug 23, 2021 at 15:17
0

Those solutions didn't work for me. Insted there is the simple way : \mathring{A}

2
  • 1
    Welcome on TeX.SE. Please extend your poor answer.
    – Sebastiano
    May 12 at 15:35
  • 1
    Which solution doesn't work for you and why? Your claims is unjustified.
    – Zarko
    May 12 at 15:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .