1 Requirements
2 How to Use
tex
tex-remove-all-cached-files

LaTeX for Slideshow

Stephen Chang <stchang@racket-lang.org>

This package provides a way to use LaTeX code directly in Slideshow.

 (require (planet stchang/slideshow-tex))

1 Requirements

This package requires the following to be installed:

2 How to Use

(tex str ...)  pict?
  str : string?
Converts input LaTeX code into pict for use in Slideshow.

Conversion steps:

1) Input strings inserted into LaTeX document (in math mode) and compiled to pdf.

(Temporary files are created in the directory <tmpdir>/slideshow-texfiles/ where <tmpdir> is the result of (find-system-path temp-dir). Temporary files are named texfile<#>.<ext> where <#> is the equal-hash-code of the input string and <ext> is the appropriate extension (ie, tex, aux, etc.).)

2) pdf file converted to png file using ImageMagick.

(All temporary files, except png files, are deleted after the conversion is done.)

3) Slideshow pict returned using bitmap.

Results of compilation (ie, the png files) are cached. This function first checks for an existing png file (identified with the equal-hash-code hash) and uses instead of recompiling every time.

Example:

> (tex "\\lambda x.x")

(tex-remove-all-cached-files)  boolean?
Removes all cached files in <tmpdir>/slideshow-texfiles/ where <tmpdir> is equal to (find-system-path temp-dir).