Skip to content

Commit

Permalink
Merge pull request #867 from mpetroff/add-latex-author-support
Browse files Browse the repository at this point in the history
If set, use `nb.metadata.authors` for LaTeX author line
  • Loading branch information
blink1073 committed Aug 29, 2018
2 parents d084072 + 80a1740 commit 2f11f17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nbconvert/templates/latex/base.tplx
Expand Up @@ -152,7 +152,11 @@ This template does not define a docclass, the inheriting class must define this.
\title{((( nb_title | ascii_only | escape_latex )))}
((*- endblock title *))
((* block date *))((* endblock date *))
((* block author *))((* endblock author *))
((* block author *))
((* if 'authors' in nb.metadata *))
\author{((( nb.metadata.authors | join(', ', attribute='name') )))}
((* endif *))
((* endblock author *))
((* endblock definitions *))

((* block commands *))
Expand Down

0 comments on commit 2f11f17

Please sign in to comment.