doomemacs/modules/lang/latex
Henrik Lissner 09cb4f6716
Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
..
+fontification.el Sneak in some more nice-to-have LaTeX fontifications. 2018-04-11 13:03:59 +02:00
autoload.el Latex module revamped 2018-01-08 19:18:37 +01:00
config.el Major refactor & optimization of how modules load their packages 2018-05-25 00:46:16 +02:00
packages.el Latex module revamped 2018-01-08 19:18:37 +01:00
README.org Make PDF tools and LaTeX work better together. 2018-04-11 13:02:58 +02:00

:lang latex

Module Description

Provide a helping hand when working with LaTeX documents.

Feature:

  • Sane defaults
  • Fontification of many popular commands
  • Pretty indentation of wrapped lines using the adaptive-wrap package
  • Spell checking with flyschek
  • Change PDF viewer to Okular or latex-preview-pane
  • Bibtex editor
  • Autocompletion using company-mode
  • Ivy or Helm for selecting bibliography
  • Compile your .tex code only once using LatexMk

Customization

Custom Variables

Two custom variables state where AUCTeX will search for bibliography files and their corresponding PDFs. Set these variables in your private configuration with:

(set! :latex-bibtex-file "./your/bib/file.bib")
(set! :latex-bibtex-pdfs-dir "./dir/with/bib/pdfs/")

If the variables are not set, they are ignored.

Choose View Program

You have four options to choose from for the viewer of your PDF rendered files.

Okular

Use Okular as default PDF viewer.

Activate with the flag '+okular' of the latex module in your private init.el.

(latex +okular)

Skim

For Mac users. Use Skim to preview your PDFs.

Activate with the flag '+skim' of the latex module in your private init.el.

(latex +skim)

PDF Tools

Use the PDF Tools package to preview your PDFs. Requires the tools module pdf enabled in your configuration.

(:tools pdf)

Activate with the flag '+pdf-tools' of the latex module in your private init.el.

(latex +pdf-tools=)

Preview Pane

You may wish to use the old school package latex-preview-pane instead of the other alternatives. latex-preview-pane uses a DocView instead.

Activate with the flag '+preview-pane' of the latex module in your private init.el.

(latex +preview-pane)

LatexMk

Use LatexMk instead of normal LaTeX to compile documents. LatexMk only needs to run once to get all references, bibliography and other things right.

Activate with the flag '+latexmk' of the latex module in init.el.

(latex +latexmk)

You can enable both a custom view program and LatexMk with a call such as:

(latex +latexmk +okular)