aboutsummaryrefslogtreecommitdiff
path: root/emacs/init.org
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2018-01-19 15:39:08 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2018-01-19 15:39:08 +0100
commit56ef05b6589b4e466c2dd387195a60ffc81f4278 (patch)
treec518ab767f2ca6200175e407e7eefba7be46b26a /emacs/init.org
parentc8e99c64d6491afe74c74a1eeb3a55159d5b0689 (diff)
downloaddotfiles-56ef05b6589b4e466c2dd387195a60ffc81f4278.tar.gz
dotfiles-56ef05b6589b4e466c2dd387195a60ffc81f4278.zip
emacs: added LaTeX support
Support has been added through Auctex, and through org-mode export. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/init.org')
-rw-r--r--emacs/init.org32
1 files changed, 32 insertions, 0 deletions
diff --git a/emacs/init.org b/emacs/init.org
index b493798..908457d 100644
--- a/emacs/init.org
+++ b/emacs/init.org
@@ -1426,6 +1426,25 @@ And now let's set all the related settings.
org-export-htmlize-output-type 'css)
#+END_SRC
+Sometimes it's useful to export to LaTeX. That is, when you are simply writing a
+quick document that will end up being converted into LaTeX and finally into PDF:
+
+#+BEGIN_SRC elisp
+(require 'ox-latex)
+
+(unless (boundp 'org-latex-classes)
+ (setq org-latex-classes nil))
+
+(add-to-list 'org-latex-classes
+ '("article"
+ "\\documentclass{article}"
+ ("\\section{%s}" . "\\section*{%s}")
+ ("\\subsection{%s}" . "\\subsection*{%s}")
+ ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
+ ("\\paragraph{%s}" . "\\paragraph*{%s}")
+ ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
+#+END_SRC
+
You can also export org documents to man pages. In order to do so, you have to
perform this first:
@@ -2014,6 +2033,19 @@ criteria really).
(add-hook lang-hook 'soria-purple-identifiers))
#+END_SRC
+* LaTeX
+
+Let's use [Auctex](https://www.gnu.org/software/auctex/) for LaTeX files.
+
+#+BEGIN_SRC elisp
+(use-package tex
+ :ensure auctex
+ :config
+ (setq TeX-auto-save t)
+ (setq TeX-parse-self t)
+ (setq-default TeX-master nil))
+#+END_SRC
+
* WoMan
=WoMan= is a package that is included inside of GNU Emacs by default, and that