From 33183755a0dd145848dc4349228ba20481e24b0b Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Thu, 10 Mar 2022 12:07:42 -0700 Subject: [PATCH] more latex hints --- content/post/20210418-latex/index.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/content/post/20210418-latex/index.md b/content/post/20210418-latex/index.md index 8170307..832da9f 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 = 2022-01-05T00:00:00 +lastmod = 2022-03-10T00:00:00 draft = false # Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`. @@ -97,6 +97,14 @@ Use the `siunit` package to automatically format numbers with SI units. \SI{512}{\byte} ``` +## Algorithm + +Algorithm statements are often written in math mode, which treats consecutive letters as the product of variables and can lead to strange kerning. +You can fix with `\mathit{}` + +```latex +\State $\mathit{word} \gets ...$ +``` ## Digit grouping and separators.