Skip to content

opensource-philosophy/tlt-utils

Repository files navigation

tlt-tex-utils

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 namefunctionalitymode(s)
tlt-org-run-biberrun biber from your .org fileorg
tlt-compile-beamer-framecompile single beamer frames for previeworg-beamer
tlt-precompile-preambleprecompile your document’s preambleTeX, org
tlt-remove-OCLCs-autoremove your .bib files’ OCLCsTeX, 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.

Installation

Automatic Installation (via quelpa)

The package can be installed using quelpa like this:

(quelpa '(tlt-tex-utils :fetcher github :repo "opensource-philosophy/tlt-tex-utils"))

Manual Installation

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)

Features

Keeping your Folder Tidy

https://github.com/opensource-philosophy/tlt-utils/blob/main/GIFs/tidy-directory.gif

Removing OCLCs

https://github.com/opensource-philosophy/tlt-utils/blob/main/GIFs/OCLCs.gif

Precompiling Preambles

Compiling Single beamer Frames

Running biber From Your .org File

An Example Configuration Using use-package

The Most Important Custom Variables

Configuration

Assigning Custom Keybindings

An Example use-package Configuration

(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:

About

Utilities to make a logician's life in emacs easier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published