TL;DR: tlt-tex-utils
is an Emacs package written in an effort to make file management, exporting your .org
documents and compiling your .tex
documents more convenient. In summary, tlt-tex-utils
adds the following interactive functions:
function name | functionality | mode(s) |
---|---|---|
tlt-org-run-biber | run biber from your .org file | org |
tlt-compile-beamer-frame | compile single beamer frames for preview | org-beamer |
tlt-precompile-preamble | precompile your document’s preamble | TeX , org |
tlt-remove-OCLCs-auto | remove your .bib files’ OCLCs | TeX , org , bibtex |
In addition, all auxiliary files needed for the LaTeX
compilation are stored in a subfolder after compiling and moved to the main folder right before compiling. This way, your folder stays nice and tidy while LaTeX
can still make use of (some of) the already existing aux files. For differences to org-latex-remove-logfiles
, see the section on Keeping your Folder Tidy.
Note that by default, no command provided by this package is bound to a key. This is because tlt-tex-utils
is neither a global nor a major-mode-specific package; it has functions for TeX-mode
and org-mode
alike. For instructions on how to adjust the keybindings to your liking, see Binding the functions.
The package can be installed using quelpa like this:
(quelpa '(tlt-tex-utils :fetcher github :repo "opensource-philosophy/tlt-tex-utils"))
To install tlt-tex-utils
manually, download/clone the repository to a directory of your choice and add this directory to your load-path
. Lastly, autoload the commands you want to use:
(add-to-list 'load-path "/path/to/tlt-tex-utils-dir")
(autoload 'tlt-tex-utils "tlt-tex-utils" nil t)
(autoload 'tlt-copy-region-unicode-to-LaTeX "tlt-tex-utils" nil t)
(autoload 'tlt-paste-region-unicode-to-LaTeX "tlt-tex-utils" nil t)
(autoload 'tlt-copy-region-LaTeX-to-unicode "tlt-tex-utils" nil t)
(autoload 'tlt-paste-region-LaTeX-to-unicode "tlt-tex-utils" nil t)
(use-package tlt-tex-utils
:hook ((org-mode . tlt-tex-utils-org-mode)
(TeX-mode . tlt-tex-utils-org-mode))
:config )
This configuration automatically enables tlt-tex-utils-org-mode
in .org
documents and tlt-tex-utils-TeX-mode
in .tex
documents. It also adds two custom colors: