From 88785e92e6edbdbc48ef04eb3bcaa54ca7ec666f Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Wed, 5 Jan 2022 14:53:43 -0700 Subject: [PATCH] update latex notes --- content/post/20210418-latex/index.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/post/20210418-latex/index.md b/content/post/20210418-latex/index.md index 1da6d52..8170307 100644 --- a/content/post/20210418-latex/index.md +++ b/content/post/20210418-latex/index.md @@ -1,7 +1,7 @@ +++ title = "Tips for Technical Writing in Latex" date = 2021-04-18T00:00:00 -lastmod = 2021-04-18T00:00:00 +lastmod = 2022-01-05T00:00:00 draft = false # Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`. @@ -90,9 +90,10 @@ The ## SI units Use the `siunit` package to automatically format numbers with SI units. +(`[binary-units]` may not be necessary depending on your version.) ```latex -\usepackage[binary-units, group-separator={,}]{siunitx} +\usepackage[binary-units]{siunitx} \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. ```latex +\usepackage[group-separator={,}]{siunitx} \num{242000} ```