Questions tagged [units]

Questions about typesetting units with (All)TeX.

This tag is applied to questions about typesetting units with TeX. In LaTeX, this is frequently done with the package.

For questions about TeX's length units, use the tag.

176 questions
43
votes
2 answers

Is it possible in Latex to convert all numbers between imperial and metric?

This question led to a new package: smartunits I am currently writing a document that I would like to deploy to both European and American audiences. The problem is, as usual, the choice between imperial vs metric units. The text is not…
41
votes
4 answers

Angstrom not working

Using \AA for angstrom is not working for me. When I write 1 \AA all I get is 2 (r)A in the output. I have tried putting the curly brackets around it {\AA} but still no success. I do not know why. I have even tried changing the fonts I am using.…
Godey
  • 805
39
votes
2 answers

How do I typeset units like MB, GB (megabytes, gigabytes)?

Is there a simple way to typeset byte units like MB, GB, TB in latex in math mode? How do you typeset 1GB for example?
Rasto
  • 1,855
  • 2
  • 19
  • 21
23
votes
1 answer

How to typeset imperial/US customary units, especially in combination with SI/metric units

I am just working on a document (a series of exercises for one of my classes), which uses both the SI and US customary unit systems (different exercises use different systems). I am trying to typeset the units in a consistent way. I am using the…
Jan Hlavacek
  • 19,242
19
votes
1 answer

Wanting to write units properly

Could anyone explain how I write units properly in LaTeX? In the form kg.s^-1. They come out all slanted and squished together when i use math mode and \frac.
16
votes
3 answers

How to put Angstrom

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.
13
votes
2 answers

Is there a LaTeX package for units not included in siunits ?

I want to represent dBm in LaTeX. I have included the siunits package. But only dB is included. What is the best way to represent other units?
user123551
5
votes
1 answer

How to create fractional SI units (\SI{...}{\sqrt{s}})?

I want to express a variable that has "square root units", i.e. 0.8e-3 m/sec^1.5. I have tried to use the SI package: \SI{0.8e-3}{\radian\per\second\sqrt{\second}} However, this does not work. It only works in cases like this: \SI{42}{\second} Is…
Hagen
  • 53
4
votes
2 answers

Units in LaTeX without making an italic font

I wish to write a unit in LaTeX which should not be typeset in italics. My current code is Log Ejected Density $(\frac{g}{cm^{3}})$, which sets the unit italicized. Is there any package I can use to get a roman shape for the unit? I am using…
bhjghjh
  • 491
4
votes
2 answers

Proper way to write down a range with units

The task is to document that the r-coordinate lasts from 10 to 100 m. What would be a good way to write this down? I thought about the following examples r = 10 to 100 [m] r = [10 - 100 [m]] r = 10 - 100 [m] r = 10 [m] - 100 [m] r = [10 - 100]…
2
votes
2 answers

Use of currency symbols along with a thousand separator

I frequently use the eurosym package to typeset Euro values. \documentclass{article} \usepackage{eurosym} \begin{document} \EUR{100000} \end{document} This translates into '€ 100000'. It however misses the option for thousands separators. For…
E. Sommer
  • 199
2
votes
0 answers

px in pdflatex to xelatex

I have document with many figures as following: \begin{figure} \begin{subfigure}[b]{0.48\textwidth} \includegraphics[width=\textwidth, trim = 0px 200px 100px 30px,clip]{A.png} \end{subfigure} \begin{subfigure}[b]{0.48\textwidth} …
Radan
  • 51
0
votes
0 answers

Default units in LaTeX

Which length will LaTeX apply, for example in \node[xshift=240,yshift=100]{…}, if the unit (as xshift=1ex, 1em, 1in, 1pt, 1bp, 1dd, 1pc, etc.) is not specified explicitly? And does this unit apply allover throughout the document?
0
votes
0 answers

Using units in latex

I am preparing a document where I have to use SI units and US Customary units, Yet I have 2 issues: I can use siunitx package to insert SI units, but what package can I use to insert US Customary units in a similar manner? siunitx package insert…
Silva
  • 743
0
votes
1 answer

How to write physical units

I am writing my Master Thesis memory and I have come up with a doubt, how should I write 1 megahertz: 1MHz (without space) or 1 MHz (with space)? I searched on the internet, on papers and books, and I have found it written in both ways. Which should…