diff --git a/README.org b/README.org index e419a47..35cd09d 100644 --- a/README.org +++ b/README.org @@ -12,8 +12,8 @@ - [[#features][Features]] - [[#pdf-export-from-latex-in-tufte-style][PDF export from latex, in tufte style]] - [[#how-to-test][How to test]] - - [[#installing-latex-on-macos][Installing latex on MacOS]] - - [[#installing-fonts][Installing fonts]] + - [[#instal-texlive-on-macos-or-ubuntu-for-pdf][Instal texlive on MacOS or Ubuntu for PDF]] + - [[#instal-fonts-for-tufte-style][Instal fonts for tufte style]] - [[#configuration][Configuration]] - [[#troubleshooting][Troubleshooting]] @@ -49,16 +49,39 @@ Doom Emacs installation *** How to test Render to pdf, and open preview : ~SPC m e l o~ (m e - export. l - latex, o - open in pdf viewer) -*** Installing latex on MacOS +*** Instal texlive on MacOS or Ubuntu for PDF +**** What is it +Texlive is a popular Latex distribution. +**** How to test +Expect ~which tex~ to return ~/opt/homebrew/bin/tex~ +**** MacOs +#+begin_src bash +brew install texlive +#+end_src -*** Installing fonts -putting https://so.nwalsh.com/2020/01/05-latex in my file:config.el on [[file:20201021093300-macos.org][MacOS]]. Looks like fonts need to go in ~$HOME/Library/Fonts~. And then one needs to run ~sudo texhash~ to actually add the fonts. (https://tex.stackexchange.com/questions/93983/xetex-use-otf-font-macports comment by Alan Munn). -Added fonts: -- ET Bembo: https://github.com/DavidBarts/ET_Bembo ([[file:20210510110643-edward_tufte.org][Tufte]] font) -- Raleway: google fonts had it: https://fonts.google.com/specimen/Raleway Readme included https://support.apple.com/en-us/HT201749 documentation on how to install fonts on mac os. -- Operator Mono Ssm - this is not a free font apparently. maybe try Fira code instead. - - replaced with Fira Mono from google fonts, made by mozilla apparently. +*** Instal fonts for tufte style +Source of inspiration: https://so.nwalsh.com/2020/01/05-latex . Put the code in file:config.el on [[file:20201021093300-macos.org][MacOS]]. Looks like fonts need to go in ~$HOME/Library/Fonts~. And then one needs to run ~sudo texhash~ to actually add the fonts. (https://tex.stackexchange.com/questions/93983/xetex-use-otf-font-macports comment by Alan Munn). + +**** Added fonts: +***** ET Bembo: + https://github.com/DavidBarts/ET_Bembo ([[file:20210510110643-edward_tufte.org][Tufte]] font) +***** Raleway: +google fonts had it: https://fonts.google.com/specimen/Raleway Readme included https://support.apple.com/en-us/HT201749 documentation on how to install fonts on mac os. +xetex does not seem to support variable size fonts (see README in Raleway folder), so in ~Downloads~ + +#+begin_src bash +open Raleway/static +#+end_src + +select all, and then right-click open. 'install' on the first should install all of them. + +***** Fira Code +Because Operator Mono Ssm is not a free font. + FYI : I initially replaced with Fira Mono from google fonts, made by mozilla apparently. Now Fira Code by mozilla works: + #+begin_src latex + \\setmonofont[Scale=MatchLowercase]{Fira Code} + #+end_src * Configuration diff --git a/config.el b/config.el index f56b52d..442ce74 100644 --- a/config.el +++ b/config.el @@ -89,7 +89,7 @@ \\usepackage{fontspec} \\setmainfont{ETBembo RomanOSF} \\setsansfont[Scale=MatchLowercase]{Raleway} -\\setmonofont[Scale=MatchLowercase]{Fira Mono} +\\setmonofont[Scale=MatchLowercase]{Fira Code} \\usepackage{sectsty} \\allsectionsfont{\\sffamily} \\usepackage{enumitem}