Questions about typesetting units with (All)TeX.

learn more… | top users | synonyms

9
votes
3answers
265 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 ...
5
votes
2answers
149 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 ...
3
votes
1answer
94 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 ...
1
vote
3answers
86 views

Space after comma in units package

I have a problem with using the units package. In my thesis I used it sometimes in math environment, sometimes not. Now I realized that there is an addition space after the comma in math mode. I think ...
3
votes
1answer
66 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
98 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
0answers
99 views

Using the correct amount of space around unit symbols

This is from an old package I developed back in 2003. The idea was to cover international system units (SI) and other type of units, roughly following guidelines from that document. Units should ...
15
votes
2answers
2k 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 ...
5
votes
1answer
96 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 ...
6
votes
1answer
120 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.
12
votes
2answers
1k 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 ...
9
votes
2answers
303 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 ...
5
votes
1answer
287 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
1answer
345 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
523 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 ...
14
votes
3answers
247 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} ...
2
votes
1answer
551 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 ...
1
vote
0answers
163 views

In SI units, use text font numerals or math font numerals? [closed]

I am using Palatino and Neo Euler. When typesetting SI units with siunitx package the font for the unit is changed to the text roman, but the numerals are still from the math alphabet. Euler has a ...
7
votes
1answer
372 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 ...
14
votes
1answer
787 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 ...
3
votes
1answer
128 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 ...
43
votes
5answers
3k 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, ...
7
votes
1answer
302 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 ...
4
votes
3answers
461 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 ...
10
votes
1answer
565 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?
5
votes
1answer
96 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 ...
7
votes
2answers
317 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 ...
4
votes
1answer
225 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
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, ...
4
votes
2answers
582 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 ...
17
votes
4answers
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 ...
11
votes
1answer
736 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 ...
4
votes
1answer
710 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 ...
1
vote
1answer
646 views

Use of math mode with SIstyle

When using the SIstyle package, I noticed that numbers inside \SI{}{} and \num{} appear in a slightly different style than inside $$. Do the \SI{}{} and \num{} commands come with math mode already? ...
21
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 ...
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, ...
8
votes
3answers
6k 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
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 ...
7
votes
3answers
420 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
23k 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 ...
9
votes
1answer
512 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} ...
2
votes
2answers
268 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 ...
0
votes
1answer
434 views

Why does my EPS header have % Produced by xpdf/pdftops 3.02pl4?

I have a simple input file contains PSTricks code as follows. % sample.tex \documentclass[cmyk]{minimal} \usepackage{pstricks} \usepackage[paperwidth=144bp,paperheight=108bp,margin=0bp]{geometry} ...
2
votes
1answer
391 views

How to improve accuracy when working with PSTricks?

I have tried this with TikZ that produces the same issue, you can try Leo's solution here. In other words, this issue is NOT specific to PSTricks. The hidden idea is to avoid cropping with pdfcrop ...
2
votes
1answer
485 views

dvips produces improperly-trimmed output for non-standard papersize

Note: Rather than creating a new question that has almost the same code base, I rewrote my previous question. Because this issue is not specific to PSTricks, I changed the code so everybody can play ...
18
votes
3answers
6k 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 ...
5
votes
1answer
233 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 ...
2
votes
1answer
2k views

usepgfplotslibrary - undefined control sequence

I have problem with following example code: %& --shell-escape --enable-write-18 \documentclass[a4paper,10pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{polski} ...
5
votes
1answer
445 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 ...
3
votes
2answers
308 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} ...