Skip to main content

Questions tagged [units]

Questions about typesetting units with (All)TeX.

Filter by
Sorted by
Tagged with
1 vote
1 answer
31 views

Units of "minimum size" when drawing a named rectangle in TikZ

When drawing a rectangle using \node and minimum width/height, the size of the resulting rectangle is different from one drawn with \draw … rectangle …. I need the \node so I can refer to it by name. ...
Peter Frings's user avatar
3 votes
0 answers
81 views

TeXstudio and highlighting of units syntax (ex, em, mm, cm, pt, ...)

I am moving from TeXnicCenter to the TeXstudio and wondering, if there is a way, how to make a custom syntax color for units like (pt, in, mm, cm, ex, em) in TexStudio. TexnicCenter has option for ...
Joseph Hallenbeck's user avatar
0 votes
0 answers
34 views

How to use non-italic units in Nomenclature?

I tried using the siunitx package and converting the units to non-italic for the units that appear in the Nomenclature section as below: \nomenclature[a-av]{$a^v$}{Active specific surface area\nomunit{...
BuV8's user avatar
  • 1
0 votes
0 answers
44 views

Default unit for x,y components of `tikzmath` coordinate is in `pt`

Lets say I want to draw a line on a grid given two points A,B: \documentclass[tikz]{standalone} %mixing defs and coordinates is a bad idea \usetikzlibrary{fit,shapes,calc,matrix,math,positioning,...
Ted Black's user avatar
  • 453
2 votes
1 answer
127 views

Shortcut for a counts-per-time unit with siunitx

I am writing first-aid related texts, where I have a lot of expressions like "/min" (like "she has an heart rate of 60/min") and so on. I would like to write this kind of numbers ...
Michael Marx's user avatar
0 votes
0 answers
109 views

Default units in LaTeX

Which length will LaTeX apply, for example in \node[xshift=240,yshift=100]{…}, if the unit (as xshift=1ex, 1em, 1in, 1pt, 1bp, 1dd, 1pc, etc.) is not specified explicitly? And does this unit apply ...
Alois Pichler's user avatar
1 vote
1 answer
501 views

How to resolve Debian incompatibility between siunitx and units packages

I have some legacy LaTeX files that use the siunitx and units package. A minum working example is below: \documentclass{article} \usepackage{siunitx} \usepackage{units} % Line 3 \begin{document} $...
Eric Stdlib's user avatar
3 votes
1 answer
306 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}{\...
3dSpatialUser's user avatar
1 vote
0 answers
65 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?
Wallflower's user avatar
2 votes
1 answer
130 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{...
Superman's user avatar
  • 1,625
1 vote
2 answers
98 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{...
fuj36840's user avatar
  • 550
0 votes
1 answer
46 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 ...
Antisimplistic's user avatar
1 vote
1 answer
268 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. \...
FoxyFellow's user avatar
1 vote
2 answers
100 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[...
fermionic's user avatar
1 vote
1 answer
180 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}{...
User23456234's user avatar
  • 1,866
0 votes
0 answers
53 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 ...
user14434383's user avatar
4 votes
1 answer
132 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 ...
user avatar
2 votes
0 answers
35 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 ...
LucasTrever's user avatar
2 votes
1 answer
116 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 ...
Aviroum's user avatar
  • 1,514
0 votes
2 answers
103 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 ...
Orestes Mas's user avatar
1 vote
1 answer
272 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?
Ulysses Zhan's user avatar
10 votes
4 answers
3k 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 ...
lay lay's user avatar
  • 131
1 vote
1 answer
132 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{...
Hermis14's user avatar
  • 423
1 vote
1 answer
705 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 ...
Elise's user avatar
  • 197
5 votes
3 answers
523 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....
Jannis Schey's user avatar
1 vote
1 answer
1k 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 ...
Eduardo Jiménez's user avatar
2 votes
1 answer
1k 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 ...
Malte Grube's user avatar
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\...
finlay morrison's user avatar
2 votes
1 answer
143 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 ...
J. Hund's user avatar
  • 47
8 votes
2 answers
17k 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.
Israa's user avatar
  • 89
2 votes
3 answers
1k 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 ...
Jonny_92's user avatar
1 vote
1 answer
677 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, ...
John Doe's user avatar
1 vote
1 answer
107 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} ...
N3buchadnezzar's user avatar
3 votes
2 answers
157 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}| } ...
Gopal Verma's user avatar
0 votes
0 answers
43 views

How to make numbers superscript? [duplicate]

Hello guys, How to make numbers superscript? Just like in the picture below
pan xia's user avatar
  • 91
0 votes
0 answers
493 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 ...
Anavae's user avatar
  • 111
2 votes
1 answer
255 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 ...
Nico's user avatar
  • 21
0 votes
0 answers
206 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 ...
Cicilio's user avatar
  • 171
2 votes
1 answer
60 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 \...
X Leo's user avatar
  • 145
4 votes
0 answers
295 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 ...
Peter Grill's user avatar
0 votes
1 answer
1k 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 ...
Sam's user avatar
  • 115
0 votes
2 answers
101 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 } ...
Mash's user avatar
  • 201
1 vote
1 answer
348 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} \...
manni's user avatar
  • 13
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 ...
Silva's user avatar
  • 743
5 votes
2 answers
1k 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 ...
Hagen's user avatar
  • 53
0 votes
1 answer
476 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)$', '...
tairit's user avatar
  • 83
7 votes
2 answers
5k 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 ...
J. Spencer's user avatar
0 votes
1 answer
2k 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 ...
DaDSPGuy's user avatar
0 votes
1 answer
44 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 ...
Parzeekarz's user avatar
6 votes
2 answers
679 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 ...
Dave's user avatar
  • 3,768