Skip to content

smasher164/svglatex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svglatex

svglatex takes a given latex document and produces an SVG image.

Usage:

go get -u github.com/smasher164/svglatex

svglatex [-inline] < foo.tex

It is a wrapper over latex, dvisvgm, and svgo and makes the following assumptions and promises:

  • latex is already installed and has an "-output-directory" flag (used to store temporary files).
  • dvisvgm is already installed.
  • svgo is already installed.
  • The latex document is input through Stdin.
  • When successful, it will output the SVG markup to Stdout (everything else is diverted to Stderr).

The -inline flag causes svglatex to assume the input is an inline equation, and wraps it in the following

\documentclass{standalone}
\begin{document}

%THE INPUT GOES HERE%

\end{document}

About

svglatex takes a given latex document and produces an SVG image.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages