Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scribble-lib/scriblib/autobib.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
(define-struct auto-bib (author date title location url note is-book? doi key specific))
(define-struct bib-group (ht))

(define-struct (author-element element) (names cite))
(define-struct (author-element element) (names cite)) ;; NB: names should always be a string
(define-struct (other-author-element author-element) ())

(define (author-element-names* x)
Expand Down Expand Up @@ -693,7 +693,7 @@
(make-author-element
#f
(list org)
org
(content->string org)
org))

(define (other-authors)
Expand All @@ -705,7 +705,7 @@

(define (authors name . names*)
(define names (map parse-author (cons name names*)))
(define slash-names (string-join (map (compose1 content->string author-element-names) names) " / "))
(define slash-names (string-join (map author-element-names names) " / "))
(define cite
(case (length names)
[(1) (author-element-cite (car names))]
Expand Down
Loading