Skip to content

Commit

Permalink
refactor(blog): change invocation for Fira fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed May 30, 2024
1 parent b0e0521 commit 8d8601e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions blog/2024-05-30-moloch/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -190,19 +190,24 @@ use XeTeX or LuaTeX and set your font options according to the following example


```latex
\usepackage{mathspec}
\usepackage{fontspec}
\setsansfont[
ItalicFont={Fira Sans Light Italic},
BoldFont={Fira Sans},
BoldItalicFont={Fira Sans Italic}
]{Fira Sans Light}
\setmonofont[BoldFont={Fira Mono Medium}]{Fira Mono}
\setmathfont{Fira Math Light}
\AtBeginEnvironment{tabular}{%
\addfontfeature{Numbers={Monospaced}}
}
```

If you want to have `\operatorname`, `\mathrm`, and company in the Fira font as well, then you'll need to set `\setmainfont` as well.

Note that there is only a beta version of the Fira Math Light font available and that it is not at all complete, so unfortunately there is no good way to get a matching math font for Fira Sans Light at the moment. (Otherwise we could use **unicode-maths** and `Fira Math Light`). This I think is another good argument for why Fira should not be set as the default font for the theme.

### No More Automatic Paragraph Spacing

Unlike standard Beamer, in which `\parskip` (paragraph spacing, roughly speaking) is set to zero, Metropolis instead sets it to 0.5 em units. This means that in Metropolis, you don't need to sprinkle `\medskip` (or whatever you use for paragraph spacing) in your slides to have them neatly separated.
Expand Down

0 comments on commit 8d8601e

Please sign in to comment.