scribble Latex: add \SNumberOfAuthors{} in output

original commit: 814c974d015b647e8482a46720f0728d3b318175
This commit is contained in:
Matthew Flatt 2012-07-01 10:00:58 -06:00
parent 607f02a331
commit 3d84458aa7
2 changed files with 5 additions and 0 deletions

View File

@ -120,6 +120,8 @@
(if (null? auths) "Empty" ""))
(render-content (part-title-content d) d ri)
(printf "}{~a}{" vers)
(unless (null? auths)
(printf "\\SNumberOfAuthors{~a}" (length auths)))
(for/fold ([first? #t]) ([auth (in-list auths)])
(unless first? (printf "\\SAuthorSep{}"))
(do-render-paragraph auth d ri #t #f)

View File

@ -146,6 +146,9 @@
\newcommand{\SAuthor}[1]{#1}
\newcommand{\SAuthorSep}[1]{\qquad}
% Useful for some styles, such as sigalternate:
\newcommand{\SNumberOfAuthors}[1]{}
% Used for parts with the 'hidden style variant:
\newcommand{\sectionhidden}[1]{\section{#1}}
\newcommand{\subsectionhidden}[1]{\subsection{#1}}