acmart: a little better for empty documents
1. Change `add-acmart-styles` to add an element WITHOUT the `pretitle` style for the collects phase. With this, an empty `#lang scribble/acmart` document builds an empty PDF. 2. Add documentation for a "minimal" `scribble/acmart` document.
This commit is contained in:
parent
cf7f7f32b7
commit
c4b4e4c929
|
@ -13,6 +13,17 @@ LaTeX style defaults to use the @hyperlink[acmart-url]{@tt{acmart}}
|
||||||
class for typesetting publications for the Association of Computing
|
class for typesetting publications for the Association of Computing
|
||||||
Machinery.}
|
Machinery.}
|
||||||
|
|
||||||
|
@bold{Note:} a @racketmodname[scribble/acmart] document must include a
|
||||||
|
@racket[title] and @racket[author].
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
@verbatim[#:indent 2]|{
|
||||||
|
#lang scribble/acmart
|
||||||
|
@title{Surreal Numbers}
|
||||||
|
@author{Ursula N. Owens}
|
||||||
|
}|
|
||||||
|
|
||||||
@deftogether[(
|
@deftogether[(
|
||||||
@defidform[manuscript]
|
@defidform[manuscript]
|
||||||
@defidform[acmsmall]
|
@defidform[acmsmall]
|
||||||
|
|
|
@ -80,6 +80,8 @@
|
||||||
[CCSXML
|
[CCSXML
|
||||||
(->* () () #:rest (listof pre-content?)
|
(->* () () #:rest (listof pre-content?)
|
||||||
any/c)])
|
any/c)])
|
||||||
|
(provide
|
||||||
|
invisible-element-to-collect-for-acmart-extras)
|
||||||
|
|
||||||
(define-syntax-rule (defopts name ...)
|
(define-syntax-rule (defopts name ...)
|
||||||
(begin (define-syntax (name stx)
|
(begin (define-syntax (name stx)
|
||||||
|
@ -136,6 +138,9 @@
|
||||||
(make-css-addition (abs "acmart.css"))
|
(make-css-addition (abs "acmart.css"))
|
||||||
(make-tex-addition (abs "acmart.tex")))))
|
(make-tex-addition (abs "acmart.tex")))))
|
||||||
|
|
||||||
|
(define invisible-element-to-collect-for-acmart-extras
|
||||||
|
(make-element (make-style "invisible-element-to-collect-for-acmart-extras" acmart-extras) '()))
|
||||||
|
|
||||||
;; ----------------------------------------
|
;; ----------------------------------------
|
||||||
;; Abstracts:
|
;; Abstracts:
|
||||||
|
|
||||||
|
|
|
@ -145,5 +145,5 @@
|
||||||
;; Ensure that "acmart.tex" is used, since "style.tex"
|
;; Ensure that "acmart.tex" is used, since "style.tex"
|
||||||
;; re-defines commands.
|
;; re-defines commands.
|
||||||
(struct-copy part doc [to-collect
|
(struct-copy part doc [to-collect
|
||||||
(cons (terms) ; FIXME
|
(cons invisible-element-to-collect-for-acmart-extras
|
||||||
(part-to-collect doc))]))
|
(part-to-collect doc))]))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user