diff --git a/doc/build.scm b/doc/build.scm index 1367fac6280026009e6ae941ceed6c66d0a6e303..fb7d2a0e71cec4b0b51780b4ae71a64484ead0cb 100644 --- a/doc/build.scm +++ b/doc/build.scm @@ -126,6 +126,12 @@ directory containing LaTeX files." (skribilo module) (ice-9 match)) + ;;; Update and/or replace the names. + (define %editors + ;; TODO: Automatically sort the list + (list "Konrad Hinsen" + "Simon Tournier")) + (define commonmark-reader (make-reader 'commonmark)) @@ -261,7 +267,15 @@ directory containing LaTeX files." (map (lambda (author) (markup-option author #:name)) (markup-option document #:author)) - ", "))) + ", ")) + (editors (match %editors + ((one) one) + ((one two) (string-append one " and " two)) + ((one two rest ...) + (fold (lambda (name res) + (string-append name ", " res)) + (string-append two " and " one) + rest))))) (engine-custom-set! latex-engine 'postdocument (string-append " \\includepdf[fitpaper=true, pages=-]{front.pdf} @@ -277,7 +291,7 @@ directory containing LaTeX files." \\vspace{1cm} \\begin{flushleft} \\noindent -Edited by Konrad Hinsen and Simon Tournier. +Edited by " editors ". \\par \\vspace{5mm} \\noindent