Questions tagged [units]

Questions about typesetting units with (All)TeX.

Filter by
Sorted by
Tagged with
0
votes
0answers
32 views

Numbers, signs and units in text

In the results section of my text I have to write sentences that more or less go like this: "(...) the values are in a range of -5 - -2 kcal/mol (...)" I wanted to: Make some visual ...
2
votes
1answer
24 views

How to align numbers with units in tables

How can I align numbers with units in a table? I tries with siunitx but it does not work: \begin{table} \centering \caption{Caption goes here.} \begin{tabular}[t]{lS} \toprule ...
0
votes
0answers
52 views

rm showing up in SI units

I have written a paper and used the units package for all of the units. There is no problem in my computer. But, when I sent it to the publisher (Elsevier) and they tried to compile the file, there is ...
2
votes
1answer
41 views

Use relative units in the preamble

I use relative units to redefine the subsection as follows: \documentclass[reqno,twoside]{svmult} \makeatletter \@addtoreset{chapter}{part}% reset chapter number when a new part starts \...
3
votes
0answers
48 views

SIUnitx Unit Grouping

Is there any siunitx options to manage grouping of units when per-mode=symbol is active? Or, is there a better way to handle this? Manually inserting parenthesis works fine (second line). But, when I ...
0
votes
1answer
90 views

How to make a custom list of symbols with separated greek and roman symbols?

I am using the glossaries package to make a list of acronyms and a list of symbols (separately). Following this approach, I tried to make a list of symbols that has that layout, but with a separated ...
0
votes
2answers
28 views

Symbol Glossarie: Showing the unit instead of the name

I am using a symbol glossaries looking like this: \newglossaryentry{Symb:V}{ name=\ensuremath{V}, description={Volume}, symbol=\si{\milli\metre\cubed}, sort=lat:V, type=Symb } ...
1
vote
1answer
87 views

Euro symbol in pgfplot unit

I want to create a chart with the Euro symbol as unit. But if I write \euro into the unit tag of tikz (with pgfplots) i only get an "e". Here is a basic example of my Code: \documentclass{scrbook} \...
0
votes
0answers
78 views

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 ...
5
votes
1answer
312 views

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 ...
0
votes
1answer
96 views

correct way of writing the units on a graph [closed]

What font should I use in Matlab for having the same one like in LATEX? What is the right way to have the units on a graph? use () or [] for unit of measurement? a or b? a. xlabel('$C (fF)$', '...
3
votes
2answers
799 views

Chemical standard state symbol with achemso article

I am completely new to LaTeX, but I know how to use the chemstyles package to generate the standard state plimsoll in a document that I am working on for, say, my students, etc. However, for ...
0
votes
1answer
205 views

How to write physical units [closed]

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 ...
0
votes
1answer
41 views

tikz picture: unit instead of penultimate number of the axis

Is there a way to insert the unit instead of the penultimate number of the axis like this? 0 1 2 3 m 5 Thats something my university wants to see in my Bachelor thesis... But after searching ...
5
votes
2answers
189 views

TikZ: Advantage of position values attached with a unit?

Regarding TikZ-images: When should I type positioning values attached with a unit (e.g. \draw (0cm, 0cm)...) and when should I type them without a unit (e.g. simply \draw (0, 0)...)? Minimum Working ...
0
votes
0answers
138 views

Units, units in fractions

I'm new to latex and trying to figure out the notation. I'm trying to type out conversions, like (for example) 5 lbf * (4.4482 N / 1 lbf)= etc etc. I'm not sure how to make the units show as units,...
2
votes
2answers
180 views

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 ...
0
votes
0answers
47 views

Why can \def\magyarOptions{defaults=hu-min} break the behavior of magyar babel?

I am writing a document in Hungarian which includes the circle symbol for temperature. Later I have to convert the document to docx so I can only use a small subset of latex, for example, without the ...
2
votes
1answer
50 views

Align units of equations and units of corresponding legends below each other

I am using this code to align equation units of right the equation and to create nice equation legends. Minimum Working Example: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs} \...
3
votes
0answers
157 views

Correct Typography: Should Parentheses have same Height as Exponent Numbers or not? [closed]

Which behavior has the correct typography: Should parentheses/brackets have the same height as exponent numbers or not? Example no. 1: [ \si{\square\meter} ] Example no. 2: \left[ \si{\square\...
3
votes
1answer
240 views

How to write an Equation with the Units aligned off right and adapted Bracket Heights around the Unit?

Assumed I have this MWE to align the units off right: \documentclass{article} \usepackage{amsmath} \usepackage{siunitx} \makeatletter \providecommand\add@text{} \newcommand\tagaddtext[1]{% \gdef\...
2
votes
1answer
32 views

How to correctly convert size passed as argument to an environment?

I am trying and failing to adapt diagrams-latex.sty to do what I want. It takes optional parameters width and height that are passed on to an external script, but wants them as a dimensionless value ...
1
vote
1answer
574 views

glossaries: How to add a column for the page of definition/first appearance of symbols in the list of symbols?

I'm trying to produce a list of symbols for my PhD thesis including a column with the units of the symbols. Therefore, I used the latex code provided in the following link: glossaries: add additional ...
1
vote
1answer
60 views

How to add an unit to a calculated value properly?

I have some trouble to understand how I ought to handle some values I calculated with fp to use them as length. It is obvious that I have to add an unit to the number to use it, but trying to do so, I ...
0
votes
1answer
201 views

A Single Command for Combining Text and Math?

I'm trying to add units to some quantities for my physics homework. Here's what I want: Normal Text Math Commands Allowed All Bold One command to accomplish the above For example, if I want to write ...
0
votes
1answer
341 views

How to add and change nomenclature entries with subheading like: symbol, description and unit?

I adapted the nomenclature from this post here: How to achieve nomenclature entries like: symbol, Description, Dimension and unit, etc? but I had diffulties to adapt it for my own purpose. This is ...
0
votes
1answer
363 views

multicolumn table in latex with non si units

]1 Hi.. Can someone help me with the code for this table along with packages for units like torr and sccm \usepackage {multirow, multicolumn} \usepackage {siunitx, mhchem} \begin{table}[htb] \...
1
vote
1answer
178 views

Set unit label on the secondlast tick on axes (DIN 461)

This is a follow-up question to Setting ticklabels in pgfplot The solution Stefan posted works very good. But when I use y dir=reverse the secondlast label is therefore near the origin (see example ...
2
votes
1answer
442 views

Automatic parameter definitions under equations

For my bachelor thesis, I am using a lot of equations in my document. I would like to use a list of symbols, including units and also add a parameter description under equations. I want to be ...
7
votes
2answers
841 views

Column Alignment for SI Error Range

I have a special problem concerning the column alignment of values which are an error range (separated by $\pm$ or ±). Since it usually does a great job at typesetting numbers and units, I'm using the ...
7
votes
1answer
24k views

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

Question about macro parameter expansion

This question is just for my own understanding of how expansion works. I'm using the siunitx package in a document. In order to make sure that I'm consistant with myself, I try to write results of ...
5
votes
2answers
576 views

How to use `MathJax mhchem \pu{}` command in LaTex?

As title says I would like to use MathJax mhchem \pu{} command in my LaTeX document. FYI it is widely used in chemistry stackexchange for putting units. But when used I get the error: Undefined ...
3
votes
1answer
90 views

Is there a preferred way to switch between units?

I'm working on a recipe book. Some of my recipes are in British Imperial units, some in American, some in metric. I want to avoid manual conversion as that can produce errors, but I want the book to ...
1
vote
1answer
72 views

I have an 'm' lonely in all slides of beamer

I have a problem, I don't know what causes it. Below are two slides of my presentation in Warsaw theme. In all my slides, there is a m appearing. Other problem, I have to write 100cmm instead of ...
8
votes
1answer
698 views

What's the default unit of length for lines draw with 3D coordinates in TikZ?

LaTeX code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0, 0) -- (1, 0) node [midway,below] {2D (1)}; \draw (0, -1) -- (1cm, -1) node [midway,below] {2D (1 ...
1
vote
0answers
546 views

Typesetting Imperial units

I'm writing a couple of documents that use Imperial units in them, and I'm curious as to whether there's a way to typeset the units when they are used in combination. Examples include: rendering 4 ...
1
vote
2answers
80 views

white space standard unit

Now, everytime I want to use hspace/vspace/... I always have to type "mm" behind my number and I often forget it. Is it possible to make sure that latex "knows" my units are in mm?
0
votes
1answer
895 views

y-axis units tikz

I have the following image in my file. How can I add units next to the numbers? I'd like the units to be in volts. I just added a part of the tikz code bellow. \definecolor{mycolor1}{rgb}{0.00000,0....
3
votes
0answers
184 views

Can one use the Potrzebie unit system in (La)TeX?

Inspired by a comment to this answer (and some wasted but entertaining time on the internet), I was wondering if somebody has implemented the use of the Potrzebie unit system in (La)TeX, as a tribute ...
2
votes
1answer
274 views

Units that contain special characters in SIunitx

What is the proper way to typeset an entity of number plus unit if the unit contains characters such as '.' or '-' ? Of course I could just type like 16\,Std. or 5\,Mol-\% but for consistency I put ...
7
votes
1answer
1k views

Simple explanations for \dimexpr and dimensions in general

I have read carefully the etex manual to understand the syntax of dimexpr and numexpr but my limited comprehension remains limited... The expression "\dimexpr" appears only 3 times in the mentioned ...
2
votes
0answers
611 views

Point to inch conversion different [duplicate]

I'm trying to plot a diagram with matplotlib and embed it in latex. I want the diagram to have the full textwidth so I printed the textwidth in points to my document with \the\textwidth. The value I'...
10
votes
1answer
3k views

Correct way to write degree north

When referring to different locations on the globe in longitude-latitude coordinates, what is the correct way to write, e.g., 10 degree north? Note that in this case I have to distinguish between ...
5
votes
2answers
1k views

SIunits package - separating value and unit

Can the space between the value and the unit be added automatically, when units are written using the SIunits package? The package gives the following two options to add units: $500\kelvin$ $\unit{...
3
votes
2answers
2k views

Use unit name instead of unit symbol with siunitx

Is it possible to ask siunitx to output the unit name instead of the symbol? For example, in certain places I want to have "123 nanoseconds" instead of "123 ns". Is that possible?
2
votes
1answer
686 views

pgfplot - Removing whitespace under x axis produced by 'units' library

I was wondering if anyone has had the same results which I'm having when using the library units from pgfplots. When the options change x base=true, x SI prefix=milli are used, pgfplots seems to put ...
4
votes
1answer
2k views

Rendering MeV/c² with siunitx

I'm trying to render the unit MeV/c² using siunitx. In the preamble I have defined \DeclareSIUnit\eVperc{\eV\per\clight} but \(m = \SI{5}{\mega\eVperc\squared}\) gives me "m = 5 MeVc₀⁻²" which is not ...
12
votes
1answer
3k views

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?
16
votes
2answers
328 views

Possible to define new unit, comparable to pt or em?

Pre-defined LaTeX units, such as pt or em, are used this way: \newlength\somelength \setlength\somelength{3.5em} That is, the multiplier goes directly in front of the units, without an intervening ...