Set relative line numbers
and work on readme while installing texlive
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
/README.tex
|
||||||
+7
-1
@@ -11,6 +11,9 @@
|
|||||||
- [[#prerequisites][Prerequisites]]
|
- [[#prerequisites][Prerequisites]]
|
||||||
- [[#features][Features]]
|
- [[#features][Features]]
|
||||||
- [[#pdf-export-from-latex-in-tufte-style][PDF export from latex, in tufte style]]
|
- [[#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]]
|
- [[#configuration][Configuration]]
|
||||||
- [[#troubleshooting][Troubleshooting]]
|
- [[#troubleshooting][Troubleshooting]]
|
||||||
|
|
||||||
@@ -44,9 +47,12 @@ Doom Emacs installation
|
|||||||
|
|
||||||
** PDF export from latex, in tufte style
|
** 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)
|
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:
|
Added fonts:
|
||||||
- ET Bembo: https://github.com/DavidBarts/ET_Bembo ([[file:20210510110643-edward_tufte.org][Tufte]] font)
|
- ET Bembo: https://github.com/DavidBarts/ET_Bembo ([[file:20210510110643-edward_tufte.org][Tufte]] font)
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
(setq org-html-preamble `nil)
|
(setq org-html-preamble `nil)
|
||||||
(setq org-html-postamble `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
|
;; source: https://so.nwalsh.com/2020/01/05-latex
|
||||||
;; utf-8 supported by the following lines
|
;; utf-8 supported by the following lines
|
||||||
(setq org-latex-compiler "xelatex")
|
(setq org-latex-compiler "xelatex")
|
||||||
@@ -184,7 +184,7 @@
|
|||||||
|
|
||||||
;; This determines the style of line numbers in effect. If set to `nil', line
|
;; 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'.
|
;; 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:
|
;; Here are some additional functions/macros that could help you configure Doom:
|
||||||
|
|||||||
Reference in New Issue
Block a user