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
|
||||
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[(
|
||||
@defidform[manuscript]
|
||||
@defidform[acmsmall]
|
||||
|
@ -277,4 +288,4 @@ sponsors, @racket[name] is the name of the sponsor. The
|
|||
grant No.: @grantnum["NSF7000"]{867-5309}.}
|
||||
}|}
|
||||
|
||||
@history[#:added "1.20"]
|
||||
@history[#:added "1.20"]
|
||||
|
|
|
@ -80,6 +80,8 @@
|
|||
[CCSXML
|
||||
(->* () () #:rest (listof pre-content?)
|
||||
any/c)])
|
||||
(provide
|
||||
invisible-element-to-collect-for-acmart-extras)
|
||||
|
||||
(define-syntax-rule (defopts name ...)
|
||||
(begin (define-syntax (name stx)
|
||||
|
@ -136,6 +138,9 @@
|
|||
(make-css-addition (abs "acmart.css"))
|
||||
(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:
|
||||
|
||||
|
|
|
@ -145,5 +145,5 @@
|
|||
;; Ensure that "acmart.tex" is used, since "style.tex"
|
||||
;; re-defines commands.
|
||||
(struct-copy part doc [to-collect
|
||||
(cons (terms) ; FIXME
|
||||
(cons invisible-element-to-collect-for-acmart-extras
|
||||
(part-to-collect doc))]))
|
||||
|
|
Loading…
Reference in New Issue
Block a user