Skip to content

Generate an image from a LaTeX code and display it in the terminal.

Notifications You must be signed in to change notification settings

nathanlct/latex-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Display LaTeX in terminal

Generate an image from a LaTeX code and display it in the terminal.

Example

Example usage

Dependencies

  • pdflatex
  • imagemagick
  • imgcat

Note

The imgcat package works with iTerm2 (macOS) or with tmux. Could look into the tycat package to display images on Linux.

In iTerm2, I had to do export PATH=/Users/username/.iterm2:$PATH after installing imgcat.

The size and quality of the generated images can be adjusted in the code via the parameters density, quality and resize.

Todo

  • Add an option to just generate the image without displaying it
  • Add an argument parser to play with the parameters for generating the image
  • Add an option to include LaTeX packages (eg. to generate tables, plots, figures...)
  • Add Linux support for image display
  • Options to reuse previous command or correct it
  • Support for new commands (\R, \f ...)

About

Generate an image from a LaTeX code and display it in the terminal.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages