Questions tagged [units]
Questions about typesetting units with (All)TeX.
158
questions
0
votes
2
answers
24
views
pgfplots fails to display greek prefix when using unicode-math in LuaLaTeX/XeLaTeX
I'm experiencing difficulties trying to use the "Units in Labels" feature of pgfplots (pages 525-528 of the v1.17 manual). It works well in most circumstances except when the prefix is the ...
1
vote
1
answer
55
views
What is the unit of width and height in circuitikz?
\ctikzset{quadpoles/transformer core/inner=1,quadpoles/transformer core/height=2, quadpoles/transformer core/width=0.6}
What are the units of the 2 and 0.6 here?
10
votes
4
answers
816
views
Re-define "mu" in "$\mu$m" for units (upright \mu instead of italic \mu)
I have a 300+ page thesis and I constantly used $\mu$, which showcases mu in italic format. Now my supervisor wants me to correct this to non-italic. I do not want to change each one-by-one, therefore ...
1
vote
1
answer
22
views
Multiplying length values
I am trying to make a macro \scalelen that scales an existing length value \len by the input value. However, \len is actually a string containing a unit. I made a code:
\documentclass{article}
\begin{...
1
vote
1
answer
76
views
siunitx : How to align \qty value numbers in tables
I would like to make a table with values followed by its units, in which the numbers of the values are aligned according to the "rules" of the siunitx-package. I can do this with two columns ...
4
votes
3
answers
197
views
Spacing problem with \usepackage{siunitx}
im currently working on my Master's Thesis and i need siunitx for my SI units. The problem hereby is, that somehow my code doesnt generate the normally installed spaces between the number and the unit....
1
vote
1
answer
203
views
Why I can't use \unit command in siunitx?
Most of the time I work with siunitx package I need to specify only units like: "give the answer in psia".
For achieving this every time I try with \unit{\watt} (W for example) but it ...
2
votes
1
answer
173
views
Creating nomenclature with Symbol, Description Unit and different seperations
Hi fellows from the StackExchange Community,
I am currently writing my bachelor thesis in Latex (Overleaf) and got into some trouble while creating my nomenclature.
Since I found that one of my ...
4
votes
1
answer
764
views
\unit macro not working on the siunitx package
I am trying to make use of the \unit macro that is described on page 6 of the siunitx user manual and the compiler tells me that I have an undefined control sequence.
\unit{\kilo\gram\metre\per\square\...
2
votes
1
answer
51
views
Center Hyphen in Square Brackets
In plots in my thesis I am indicating the depicted quantity's units in square brackets.
In the case of a dimensionless quantity, I want to use [-] to explicitly indicate that.
However, I am struggling ...
7
votes
2
answers
2k
views
Write units like micro gram (µg) in LaTeX
How can I add a microgram mark in LaTeX?
Because I want to add microgram in my work as a description of a specific unit.
2
votes
2
answers
351
views
Strange error when I use \AA
I want to use \AA in my PhD presentation to insert Angstrom units and I am using the siunitx package. But when I compile my tex I get the error
LaTeX Error: Command \AA unavailable in encoding T1.
I ...
1
vote
1
answer
119
views
Mix pt and cm units in Tikz?
I have a plot with two horizontal lines. Both lines should have ticks, but only the lower line should have labels below the x-axis.
Unfortunately, I don't know how to add ticks to the upper line, ...
1
vote
1
answer
53
views
Store values in their SI units
So I have to do a bunch of calculations with both imperial and metric units. What I am looking for is a way to store values in their SI form
Just an idea was to define \storeval{name}{quantity}{unit} ...
3
votes
2
answers
121
views
Aligning and setting the spacing of unit with their parameter in table
I want to align and set the spacing between the unit(with their parameter) of 1st-row entry:
\begin{tabular}{|m{1.5cm} | m{1cm}| m{1.4cm} | m{1.4cm} | m{1.4cm} | m{1.75cm}| m{1.5 cm}| m{1.2cm}| }
...
0
votes
0
answers
40
views
How to make numbers superscript? [duplicate]
Hello guys,
How to make numbers superscript? Just like in the picture below
0
votes
0
answers
78
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
1
answer
121
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
0
answers
118
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
1
answer
51
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
\...
4
votes
0
answers
142
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
1
answer
513
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
2
answers
53
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
1
answer
211
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
0
answers
190
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
1
answer
680
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
1
answer
281
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)$', '...
6
votes
2
answers
3k
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
1
answer
530
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
1
answer
42
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 ...
6
votes
2
answers
417
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
1
answer
685
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
2
answers
348
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
0
answers
62
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
1
answer
76
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
0
answers
174
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
1
answer
482
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
1
answer
40
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 ...
3
votes
1
answer
1k
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
1
answer
94
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
1
answer
330
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
1
answer
495
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
1
answer
627
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
1
answer
212
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
1
answer
598
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
2
answers
1k
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 ...
12
votes
3
answers
47k
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
2
answers
240
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
2
answers
1k
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
1
answer
95
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 ...