Note: this is an experimental tool.
Important: this repository uses submodules. Clone using git clone --recurse-submodules.
TeXpresso has been tested on Linux and macOS and should work with both AMD64 and Apple Silicon architectures. Here is a sample recording of me editing and browsing @fabiensanglard Game Engine Black Book: Doom in TeXpresso (using my emacs theme):
compress.mp4
It is made of two components:
- this repository which implements the
texpressobinary - the tectonic/ git-submodule which implements a patched version of Tectonic that produces the
texpresso-tonichelper binary
At the moment, it requires a functional installation of Tectonic. Install it first and make it compile simple TeX file to generate initial LaTeX format. For instance, run "tectonic test/simple.tex" at the root of this repository.
If all dependencies are installed and out-of-the-box configuration works, make all should be sufficient to build both texpresso and texpresso-tonic in build/ directory.
For Arch Linux users, a PKGBUILD is available in the AUR that builds from the latest Git HEAD on installation.
Otherwise, read below.
First make sure the dependencies are available: pkg-config, re2c, SDL2, mupdf (and its own dependencies: libjpeg, libpng, freetype2, gumbo, ...).
Under macOS, brew is also used to find local files.
If it succeeds, make texpresso produces build/texpresso.
Other targets are:
configto generate configuration inMakefile.config(automatically called during building)devproducesbuild/texpresso-devwhich supports hot-reloading to ease developmentdebugproduces debugging tools inbuild/cleanto remove intermediate build filesdistcleanto remove all build files (build/andMakefile.config)
If build fails, try tweaking the configuration flags in Makefile.config.
First you need an environment that is able to build Tectonic: a functional rust and cargo installation, etc. Check tectonic documentation.
Then make sure that the git submodules were initialized:
git submodule update --init --recursiveThen make texpresso-tonic should work.
If both commands built successfully, you can try TeXpresso using:
build/texpresso test/simple.texThis is just a minimal test to make sure that TeXpresso is installed correctly. If TeXpresso window does not display the document, please report an issue. Recommended use is with Emacs, see below. Vim support will come later.
TeXpresso comes with an Emacs mode. The source can be found in
emacs/texpresso.el. Load this file in Emacs (using M-X load-file; it is also compatible with require).
Start TeXpresso with M-x texpresso. The prompt will let you select the master/root TeX file.
It will try to start texpresso command. If it is not possible, it will open
(customize-variable 'texpresso-binary) to let you set the path to texpresso
binary.
To work correctly, texpresso needs texpresso-tonic helper; when copying them, make sure they are both in the same directory.
M-x texpresso-display-output will open a small window listing TeX warnings and errors on the current page.
Use M-x texpresso-next-page and M-x texpresso-previous-page to move between pages without leaving Emacs.
Keyboard controls:
←,→: change pagep(for "page"): switch between "fit-to-page" and "fit-to-width" zoom modesc("crop"): crop bordersq("quit"): quiti("invert"): dark modeI: use Emacs themet("top"): toggle stay-on-top (above Emacs window)b("border"): toggle window bordersF5: start fullscreen presentation (leave withESC)
Mouse controls:
- click: select text in window (TODO: move Emacs buffer with SyncTeX)
- control+click: pan page
- wheel: scroll page
- control+wheel: zoom