update latex notes
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
+++
|
+++
|
||||||
title = "Tips for Technical Writing in Latex"
|
title = "Tips for Technical Writing in Latex"
|
||||||
date = 2021-04-18T00:00:00
|
date = 2021-04-18T00:00:00
|
||||||
lastmod = 2021-04-18T00:00:00
|
lastmod = 2022-01-05T00:00:00
|
||||||
draft = false
|
draft = false
|
||||||
|
|
||||||
# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`.
|
# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`.
|
||||||
@@ -90,9 +90,10 @@ The
|
|||||||
## SI units
|
## SI units
|
||||||
|
|
||||||
Use the `siunit` package to automatically format numbers with SI units.
|
Use the `siunit` package to automatically format numbers with SI units.
|
||||||
|
(`[binary-units]` may not be necessary depending on your version.)
|
||||||
|
|
||||||
```latex
|
```latex
|
||||||
\usepackage[binary-units, group-separator={,}]{siunitx}
|
\usepackage[binary-units]{siunitx}
|
||||||
\SI{512}{\byte}
|
\SI{512}{\byte}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -103,6 +104,7 @@ Latex can make it hard to manually format digit grouping and separators in numbe
|
|||||||
The `number` package makes this easy.
|
The `number` package makes this easy.
|
||||||
|
|
||||||
```latex
|
```latex
|
||||||
|
\usepackage[group-separator={,}]{siunitx}
|
||||||
\num{242000}
|
\num{242000}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user