commit c4b4e4c92951cc5f827c718467dbe119839004dc
parent cf7f7f32b72a9ec828dd028304b549ba0697773f
Author: Ben Greenman <benjaminlgreenman@gmail.com>
Date: Sat, 17 Jun 2017 17:52:14 -0400
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.
Diffstat:
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/scribble-doc/scribblings/scribble/acmart.scrbl b/scribble-doc/scribblings/scribble/acmart.scrbl
@@ -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"]
-\ No newline at end of file
+@history[#:added "1.20"]
diff --git a/scribble-lib/scribble/acmart.rkt b/scribble-lib/scribble/acmart.rkt
@@ -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:
diff --git a/scribble-lib/scribble/acmart/lang.rkt b/scribble-lib/scribble/acmart/lang.rkt
@@ -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))]))