Skip to content

Instantly share code, notes, and snippets.

@yarwelp
Last active October 30, 2023 14:24
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yarwelp/392aa0daf6448eb6b05e to your computer and use it in GitHub Desktop.
Save yarwelp/392aa0daf6448eb6b05e to your computer and use it in GitHub Desktop.
Using Computer Modern Unicode LaTeX fonts with LibreOffice Writer on Fedora 23

Using Computer Modern Unicode LaTeX fonts with LibreOffice Writer on Fedora 23

First quit LibreOffice Writer if you have it running. Next, perform the following commands.

sudo dnf install texlive-cm-unicode
mkdir -p ~/.fonts/
dnf repoquery -l texlive-cm-unicode | egrep '\.otf$' \
  | xargs -I{} ln -s {} ~/.fonts/
fc-cache -f ~/.fonts/

Now start LibreOffice Writer and you'll find the Computer Modern Unicode LaTeX fonts in the font list of LibreOffice Writer. Note that they will be named like "CMU", not "Computer Modern" or anything like that.

Here's the current list of all the Computer Modern Unicode LaTeX fonts which will have been installed and made available by the above commands:

  • CMU Classical Serif
  • CMU Sans Serif
  • CMU Bright
  • CMU Bright
  • CMU Sans Serif Demi Condensed
  • CMU Typewriter Text
  • CMU Typewriter Text
  • CMU Typewriter Text Variable Width
  • CMU Typewriter Text
  • CMU Serif
  • CMU Bright
  • CMU Concrete
  • CMU Serif Extra
  • CMU Serif Extra
  • CMU Bright
  • CMU Serif
  • CMU Sans Serif
  • CMU Concrete
  • CMU Typewriter Text
  • CMU Sans Serif
  • CMU Serif
  • CMU Serif Extra
  • CMU Typewriter Text
  • CMU Bright
  • CMU Typewriter Text
  • CMU Serif Upright Italic
  • CMU Serif
  • CMU Concrete
  • CMU Typewriter Text
  • CMU Typewriter Text Variable Width
  • CMU Sans Serif
  • CMU Bright
  • CMU Concrete

Personally I'm a fan of CMU Serif for most of the text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment