Questions tagged [units]

Questions about typesetting units with (All)TeX.

Filter by
Sorted by
Tagged with
1
vote
0answers
36 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
60 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
39 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
106 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
52 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
104 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
37 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
34 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
119 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
84 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
24 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
132 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
41 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
93 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
183 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
173 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
97 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
284 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
495 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 ...
4
votes
1answer
8k 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
154 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
335 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
88 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
70 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
441 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
360 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
56 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
539 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
151 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
176 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 ...
6
votes
1answer
949 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
318 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
2k 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
845 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{...
2
votes
2answers
1k 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
503 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
983 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 ...
11
votes
1answer
2k 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?
15
votes
2answers
262 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 ...
4
votes
1answer
2k views

Format percent by weight (wt.%) with siunitx

When expressing a value such as 90 percent by weight, I have seen papers use all of these formats: 90 wt% 90 wt.% 90-wt % 90 wt.-% 90 wt. percent 90 weight percent There are probably still more. How ...
3
votes
2answers
263 views

Changing the units of the geometry package's log output

The geometry package outputs to the log file a summary of the dimensions it has calculated (in points). It would be convenient when dealing with a client specification in centimeters (or any other ...
2
votes
0answers
228 views

px in pdflatex to xelatex

I have document with many figures as following: \begin{figure} \begin{subfigure}[b]{0.48\textwidth} \includegraphics[width=\textwidth, trim = 0px 200px 100px 30px,clip]{A.png} \end{...
1
vote
2answers
2k views

How can siunitx be used with mathematics environment notation?

How can mathematics environment notation be used with units provided by siunitx? Let's way I want to have some code like the following: \SI{10^{-28}}{m^{2}} Is it possible to use this mathematics ...
1
vote
1answer
773 views

Perfect Equation Parameters Description (incl. units!)

I have been trying to use a parameter description provided by @egreg. (see How to write a perfect equation parameters description? ). \newlength{\conditionwd} \newenvironment{variables}[1][where\quad]...
4
votes
2answers
3k views

Units in LaTeX without making an italic font [duplicate]

I wish to write a unit in LaTeX which should not be typeset in italics. My current code is Log Ejected Density $(\frac{g}{cm^{3}})$, which sets the unit italicized. Is there any package I can use to ...
2
votes
1answer
55 views

Extending maples latex function to support siunitx

In maple there is a function called latex which can convert a maple expression to an equivalent latex expression. Unfortunately I cannot seem to properly use units with the conversion function: > ...
4
votes
1answer
5k views

How to set the radius of rounded corners relatively to default unit

Background: When I draw a tikzpicture, I use only the default units (i.e. I do not specify any unit, as in \draw (0,0) -- (1,1);). Issue: When no unit is given in the [rounded corners = <value>]...
3
votes
1answer
1k views

How to typeset sampling rate using siunitx package? [duplicate]

I want to show 1 GS/s (one giga sample per second) in my article. How to make use of siunitx package to produce the rate correctly? I assume there to be something better, than \SI{1}{GS/s}. I would ...
12
votes
1answer
717 views

How can I write the unit Einstein in LaTeX (siunitx)? [duplicate]

I am currently writing my master's thesis with LaTeX and most things really go super good and a lot better than in Word, but I can't seem to get this one working. What I want: 60 yE/m2s (I hope you ...
6
votes
1answer
2k views

Per mille symbol in SIunitx

There was a previous question on the per mille symbol in latex. I was wondering if it is available in the SIunitx package.