hyper-literate/scribble-lib/scribble/pdf-render.rkt
2017-03-03 07:26:25 -07:00

24 lines
652 B
Racket

#lang scheme/base
(require "private/indirect-renderer.rkt" "private/run-pdflatex.rkt"
(prefix-in latex: "latex-render.rkt"))
(provide render-mixin
dvi-render-mixin
xelatex-render-mixin)
(define render-mixin
(make-indirect-renderer-mixin
(λ (%) (latex:render-mixin % #:image-mode 'pdf)) #".tex" #".pdf"
run-pdflatex))
(define dvi-render-mixin
(make-indirect-renderer-mixin
(λ (%) (latex:render-mixin % #:image-mode 'ps)) #".tex" #".pdf"
run-dvipdf-latex))
(define xelatex-render-mixin
(make-indirect-renderer-mixin
(λ (%) (latex:render-mixin % #:image-mode 'pdf)) #".tex" #".pdf"
run-xelatex))