21 lines
690 B
Racket
21 lines
690 B
Racket
#lang racket/base
|
|
(require scribble/doclang
|
|
scribble/base
|
|
"../private/defaults.rkt"
|
|
scribble/latex-prefix)
|
|
|
|
(provide (except-out (all-from-out scribble/doclang) #%module-begin)
|
|
(all-from-out scribble/base)
|
|
(rename-out [module-begin #%module-begin]))
|
|
|
|
(define-syntax-rule (module-begin id . body)
|
|
(#%module-begin id (post-process) () . body))
|
|
|
|
(define ((post-process) doc)
|
|
(add-defaults doc
|
|
(string->bytes/utf-8 (string-append "\\documentclass{report}\n"
|
|
unicode-encoding-packages))
|
|
(scribble-file "book/style.tex")
|
|
null
|
|
#f))
|