Questions tagged [units]
Questions about typesetting units with (All)TeX.
170
questions
3
votes
1
answer
125
views
Latex siunitx declare unit
I would like to declare the following unit:
dB re 1 $\mu$Pa
I found this answer:
Define new unit in siunitx with angles and spaces
And got this working:
\DeclareSIUnit[number-unit-product={}]{\dBpa}{\...
1
vote
0
answers
46
views
Write units in TexText Inkscape
I am trying to write few equations but with their units included in Inkscape and I get this error
How can I include the siunits package here please?
2
votes
1
answer
45
views
SI Units power messing up fraction display
I realized that when I put the power on the unit, the m/s^2 is displayed inline instead of in a \frac format.
MWE:
\documentclass[12pt]{article}
\usepackage{units}
\usepackage{siunitx}
\usepackage{...
1
vote
2
answers
85
views
Add unit as single tick label
I want to use the second to last tick label as the place for my unit, as shown below.
Is there a way to replace it?
MWE:
\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\begin{...
0
votes
1
answer
36
views
vspace*{1in} + geometry with 1in margin = 2-5/32" margin
For the first page in my document (book class) I need to set the title 2" from the top margin.
Using Overleaf with XeLaTeX, the following MWE produces output that is 2-5/32" from the top ...
1
vote
1
answer
82
views
Redefine greek character outside of math mode
I am working with a publisher to write a book. The \mu command is used throughout the book. To prevent all uses from being italic, the publisher used \gdef to make all uses of \mu as \upmu.
\...
1
vote
2
answers
75
views
Point-perfect outline and font size in standalone tikzpicture
I try to create a PDF which is 156 pt x 85 pt large, with text at sizes 9 pt and 11 pt, using the following .tex file:
%!TEX TS-program = xelatex
\documentclass[border=0pt]{standalone}
\usepackage[...
1
vote
1
answer
71
views
Change Units in Calculation
Quick question. I'm looking for a way to change the units of a length while performing a calculation. I'm currently using the ragged2e package and trying to adjust \setlength{\RaggedRightRightskip}{...
0
votes
0
answers
41
views
Math in text when using definitions based on intervals and limits
Should intervals/limits that are part of a definition in a text section be written using inline math mode? And in that case, how should it be written, and should the marker (BMI) and unit (kg/m^2) be ...
4
votes
1
answer
109
views
ConTeXt: how to use multiple units simultaneously
The goal is to print something like 1 h 20 m 56 s using units module and more specifically the \unit{ } command.
I know it is possible to use unit macros like this:
1 \Hour 20 \Minute 50 \Second
but ...
2
votes
0
answers
31
views
How do you properly print a fraction number with unit in siunitx? [duplicate]
I was basically trying to replicate the answer to this question: Print \frac{4}{3} m/s using the SI unit package
In doing so, I hope to achieve a proper output of minus one third (as a fraction) the ...
2
votes
1
answer
83
views
ConTeXt failed with units module
I update ConTeXt regularly. unfortunately units module does not work.
\usemodule[units]
\starttext
50 \Milli \Meter.
\stoptext
log file :
resolvers | formats | executing runner 'run luametatex ...
0
votes
2
answers
63
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
151
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
1k
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
46
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
411
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
392
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
657
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
566
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 ...
6
votes
1
answer
2k
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
98
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 ...
8
votes
2
answers
9k
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
766
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
440
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
92
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
134
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
198
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
215
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
177
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
56
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
232
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
810
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
81
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
285
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
1k
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
927
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
408
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
4k
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
1k
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
43
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
567
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
1k
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
528
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
74
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
163
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
198
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
632
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
44
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 ...