diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..34ddf86 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/README.tex diff --git a/README.org b/README.org index 02bec1d..e419a47 100644 --- a/README.org +++ b/README.org @@ -11,6 +11,9 @@ - [[#prerequisites][Prerequisites]] - [[#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]] - [[#configuration][Configuration]] - [[#troubleshooting][Troubleshooting]] @@ -44,9 +47,12 @@ Doom Emacs installation ** PDF export from latex, in tufte style +*** 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 -putting https://so.nwalsh.com/2020/01/05-latex in my 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). +*** 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) diff --git a/config.el b/config.el index f901326..f56b52d 100644 --- a/config.el +++ b/config.el @@ -54,7 +54,7 @@ (setq org-html-preamble `nil) (setq org-html-postamble `nil) -;; latex export that does not look like an academic paper +;; LaTEX export that does not look like an academic paper ;; source: https://so.nwalsh.com/2020/01/05-latex ;; utf-8 supported by the following lines (setq org-latex-compiler "xelatex") @@ -184,7 +184,7 @@ ;; This determines the style of line numbers in effect. If set to `nil', line ;; numbers are disabled. For relative line numbers, set this to `relative'. -(setq display-line-numbers-type t) +(setq display-line-numbers-type `relative) ;; Here are some additional functions/macros that could help you configure Doom: