Questions about typesetting units with (All)TeX.

learn more… | top users | synonyms

44
votes
5answers
4k views

Why use a package to typeset units?

I've seen a lot of posts about different packages for typesetting units and their relative strengths and weaknesses. Most posts seem to agree that the siunitx package is the most up to date package, ...
30
votes
2answers
16k views

Best way to typeset micrometers?

It seems to be generally well accepted that the correct way to typeset a value with units is to separate the number from the units by a space, and write the units in an upright font. For example, ...
27
votes
1answer
4k views

What are the possible dimensions / sizes / units LaTeX understands?

I know there are different ways of expressing sizes or dimensions in LaTeX such as points (pt), inches (in) and ex. As some commands, such as \hspace understand all of them, I would like to have a ...
23
votes
3answers
6k views

What package should I use to typeset units?

I know there are a few packages related to typesetting units: unitsdef units, which can be seen as a "base package" used by unitsdef SIunits siunitx, which is the successor to SIunits maybe others? ...
18
votes
3answers
7k views

Should I put a space between a number and its unit?

No too much more to say. \( 2.63\si\ohm \) looks odd. But it might be the correct way. \( 2.64\,\si\ohm \) looks much better IMO. What about the \,? Sould it be bigger, smaller or there is no really ...
18
votes
5answers
5k views

Typesetting with Inch Symbols and Sizes in Inches

I'd be much obliged if somebody could tell me how to do the following. How does one typeset the symbol for inches in LaTeX? Is it "?. Neither Lamport nor Knuth seem to mention it. Assuming ...
17
votes
2answers
3k views

Non italic math mode symbols?

I would like to insert a \mu command to form $\mu$ m (micro meters) i.e. as a unit, not a variable. This means I do not want \mu to be italic. However, LaTeX only accepts the \mu command in math-mode ...
15
votes
1answer
1k views

How to achieve nomenclature entries like: symbol, Description, Dimension and unit, etc?

The title is pretty much I want to ask. More detail, the nomenclature entries should be sorted in groups like: Nomenclature Acronyms Symbol Description % no Dimensions and Units ...
14
votes
3answers
256 views

How to print a length accurately and with user-controlled rounding?

Tried the printlen package, but it seems to not understand what 2.5in means: \documentclass{minimal} \usepackage{printlen} \uselengthunit{in} \begin{document} \newlength{\advertwidth} ...
13
votes
2answers
1k views

Conventions for formatting scientific units?

I would appreciate some guidance on how to format units that incorporate SI, molecules, and text. Right now I am formatting the letters in chemicals or names as 'text' and the SI units, sub/super ...
13
votes
2answers
2k views

How much space between number and unit?

Javier Bezos (famous of titlsec, tensind, spanish ... packages; and now maintainer of babel) wrote a nice book on typography and scientific notation in spanish. He says (pag. 82) that the space ...
12
votes
1answer
814 views

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 ...
10
votes
1answer
678 views

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?
9
votes
3answers
348 views

Writing an equation with the units positioned off right

Okay so I have a have a lot of equations in the document I am writing and I am trying to display the units of an equation off to the right. I was wondering how I can achieve this? Right now, all I ...
9
votes
1answer
537 views

How does PDF or PDF Viewer define a rounding rule for stroke thickness?

I defined a sequence of line segments of different thickness each as follows. \documentclass{article} \usepackage{multido} \parindent=0sp \begin{document} ...
9
votes
2answers
358 views

Customizing unit display position

How can I adjust the placement of y unit with pgfplots? I'm trying to put it near the top-left corner of the graph box. However, there may (but does not have to) be a scientific multiplier. As shown ...
8
votes
2answers
27k views

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 ...
8
votes
3answers
8k views

siunitx: µ doesn't work

I'm using TeXnicCenter for Windows (7) and I'm a bloody beginner in everything that concerns LaTeX. I'm using the siunitx package for mathematical formulas and it works just fine... with one ...
8
votes
1answer
4k views

siunitx: scientific notation

I want to use scientific notation with the siunitx package. However, when I try to do it I am getting an error: The width of a human hair is \SI{1 \times 10^{-4}}{m}. This has always given me a ...
8
votes
2answers
1k views

Circuitikz doesn't recognize units

For example when I use \ohm or \micro it throws an error. For example, in the MWE: \documentclass{article} \usepackage{circuitikz} \begin{document} \begin{circuitikz} \draw (0,0) to ...
8
votes
1answer
103 views

mathtools with mu = Illegal unit?

I'm trying to change medmuskip while using mathtools: \documentclass{article} \usepackage{mathtools} \setlength{\medmuskip}{0mu} \begin{document} \end{document} But this results in an error: ! ...
7
votes
3answers
451 views

How to switch large document from units-package to siunitx?

For historical reasons, I've been using the units package in my thesis to typeset numbers with units or units with \usepackage[tight]{units} For formatting numbers in table columns I'm already using ...
7
votes
2answers
341 views

Oldstyle numerals or lining numerals with units of measurement?

What is considered proper typography regarding which set of numerals to use with units of measurement? A real-life example: In the experiment, shown schematically in figure 2.2, we illuminate an ...
7
votes
1answer
322 views

Wrapper for siunitx' \SI macro to automatically split number and unit

Problem I use the siunitx-package to typeset numbers and units with correct spacing etc. There is a command \SI{<number>}{<unit>} for that. However, it would be much easier to write ...
7
votes
1answer
449 views

Polar Plot x and y ticks and units

I'm having some trouble with polar plots. I generate the plot coordinates using Scilab and then plot them in Latex. I can't figure out how to remove the points (mark = \empty does nothing, but ...
6
votes
2answers
360 views

Recommended font for math symbols?

I need to show unit symbols of micro, nano, kilo, mega .. Is there a recommend front for this usage? ex: 10µ Ω
6
votes
1answer
130 views

Wanting to write units properly [duplicate]

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.
6
votes
1answer
3k views

Helvetica font and ohm symbol

I am writing an industrial laboratory report, where I need to use Helvetica. My preamble contains: \usepackage[T1]{fontenc} \renewcommand{\familydefault}{phv}\selectfont \usepackage[margin=10pt, ...
6
votes
1answer
407 views

Change font for units with \unit (In LyX, \unittwo)

Using the command (defined in units.sty) \unit[value]{dimensions}, the dimensions are set using \mathrm. I am working on a presentation that uses the standard Beamer sans serif font (can't remember ...
5
votes
2answers
309 views

Unit spacing with siunitx in an equation

I'm just starting to get to grips with the siunitx package, but I've noticed that there seems to be some issues with regards to unit notation spacing in an equation. With siunitx it is possible to ...
5
votes
1answer
440 views

How do I set units in pgfplots without square brackets?

This MWE: \documentclass{article} % translate with >> pdflatex -shell-escape <file> % This file is an extract of the PGFPLOTS manual, copyright by Christian Feuersaenger. % % Feel free ...
5
votes
1answer
112 views

fancyunits VS siunitx

I am wondering which of the two packages (fancyunits or siunitx) is the best one to use ? is one of them depreciated ? is one if them more complete or easier to use or even more pretty ? which one is ...
5
votes
1answer
246 views

Unit-free ratios in \path let

I want to compute pure ratios of distances in a \path let construction; for example, in the document fragment \path let \p1 = (1cm, 2cm), \n1 = {\y1 / \x1} in ... I would like \n1 to be the number ...
5
votes
1answer
2k views

nomencl with units, nomgroups and longtable

I use nomencl with nomgroups and nomunit. The only way I achieved to properly align it is given in the picture. It was produced using the methods of the documentation. The file.ist is standard, ...
5
votes
1answer
464 views

How to typeset dimensional tolerances (mechanical engineering) with LaTeX?

Is there a package which allows to typeset dimensional tolerances as used in mechanical engineering like: ? I have to use them in the text and wonder how to do that best. So I'm searching for a ...
5
votes
1answer
708 views

Exponent notation in siunitx

I would like to use numbers in siunitx where the main number and uncertainty have exponents like: \num{1.1e-2\pm0.1e-2} However this gives a Misplaced sign token error and I have to first find a ...
5
votes
1answer
97 views

Handle currencies correctly depending on language conventions

Is there a standard way of handling currencies? Example: in American, you'd say "$2 a piece" in French, you'd say "2$ pièce" I'd like to be able to write \somecommand{dollars}{2}, that would ...
4
votes
2answers
629 views

Problem with \makebox and the unit in the dimensions

I want to superpose a text to some other object (in this aces a picture). My idea is to store the picture in \mabox, to display it with in a \makebox with 0 width and height, then to display the text ...
4
votes
3answers
506 views

Subscripts and superscripts for Physiology paper

I'm writing a medicine/physiology article. I was writing the manuscript in Microsoft Word, but have recently discovered LaTeX for rendering math equations, which it does superbly; and wanted to learn ...
4
votes
1answer
843 views

Typesetting unit-less numbers and number-less units

I am using the siunitx package to typeset my numbers, but sometimes I find situations in which I have numbers without units (when the units are not nearby) and units without numbers. E.g.: The bird ...
4
votes
1answer
245 views

canonical units for defining white space in a beamer presentation?

When using \hspace and \vspace, I often run into a decision of which units to use. In many examples I see the use of ex, cm, mm, pt, in, and so on. I also use .1\textwidth or .1\textheight. I wonder ...
4
votes
2answers
2k views

How to make pgfplots vertical labels have proper hyperref erence box?

PGFPlots and hyperref don't seem to play well together for vertical text. For example, the ylabel (which is vertical) shows its hyperref box in the middle of nowhere instead of at the position and ...
4
votes
1answer
141 views

Abbreviations and acronyms

I need to make lists of acronyms, abbreviations and units. How do I do this in the easiest possible way? I tried looking into the glossaries package but it did not really seem like an easy solution to ...
3
votes
1answer
83 views

Siunitx Won't Display Reciprocal Powers

I have several SI units in my document which I would like to typeset using the siunitx package. According to the documentation the default mode for the \per command is 'reciprocal' meaning \si{m\per ...
3
votes
1answer
142 views

How to automatically switch unit systems?

The question Why use a package to typeset units? made me think about something else: In non-scientific context one may have to provide data for persons using ... imperial units (shiver). But there may ...
3
votes
2answers
46 views

Proper way to write down a range with units [closed]

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 ...
3
votes
2answers
322 views

Problem with slanted numerals when combining siunitx and arev

There is a strange interaction between the siunitx and arev packages, whereby all the numerals appear slanted when using commands such as \num or \SI. \documentclass{article} \usepackage{siunitx} ...
3
votes
1answer
152 views

Units, in brackets, right aligned in align environment

I need to supply the unit of the formulas I use, in square brackets, right aligned. I use the align environment. I have tried several things, like manually changing the style of the equation numbering ...
2
votes
2answers
275 views

What unit should we use when working with (La)TeX and PSTricks to minimize conversion error?

I want to minimize conversion error when working with PSTricks and (La)TeX. The conversion error really affects the accuracy of bounding box, the thickness of LaTeX's \fbox and the thickness of ...
2
votes
1answer
745 views

Degrees, as numbers or units in SI system

When typesetting degrees the correct way is to make the degrees symbol part of the number (without the space between the degree symbol and the number.) Technically in the SI system then degrees C or ...