New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If set, use `nb.metadata.authors` for LaTeX author line #867

merged 1 commit into from Aug 29, 2018


None yet
3 participants
Copy link

mpetroff commented Aug 28, 2018

There's an authors metadata field that's part of the Notebook spec. If it's set, this pull request uses it to set the author line for LaTeX export.

@blink1073 blink1073 added this to the 5.4 milestone Aug 29, 2018


This comment has been minimized.

Copy link

blink1073 commented Aug 29, 2018


@blink1073 blink1073 merged commit 2f11f17 into jupyter:master Aug 29, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed

@mpetroff mpetroff deleted the mpetroff:add-latex-author-support branch Aug 29, 2018


This comment has been minimized.

Copy link

ashwinvis commented Jan 25, 2019

@mpetroff How does this work? Can you share an example?

I tried to edit the notebook metadata towards the end of the file:

 "metadata": {
  "authors": ["Mr. A", "Mr. B"],
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.2"
  "title": "Example"

When I export as Latex, I only get this

    % Document parameters
    % Document title
    \author{, }

I wonder what is the need of the attribute='name' is in this line:


This comment has been minimized.

Copy link
Contributor Author

mpetroff commented Jan 26, 2019

Per the Notebook spec, the authors metadata is a list of dictionaries, not strings:

"metadata": {
  "authors": [
      "name": "Fernando Perez"
      "name": "Brian Granger"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment