From 9b771de18dcba108e57e43e4fd670158bbc78213 Mon Sep 17 00:00:00 2001 From: michaelpacer Date: Wed, 22 Mar 2017 12:01:40 -0700 Subject: [PATCH] Add latex button to dropdown --- notebook/static/notebook/js/menubar.js | 4 ++++ notebook/templates/notebook.html | 1 + 2 files changed, 5 insertions(+) diff --git a/notebook/static/notebook/js/menubar.js b/notebook/static/notebook/js/menubar.js index a6ab705f2..a49e7795c 100644 --- a/notebook/static/notebook/js/menubar.js +++ b/notebook/static/notebook/js/menubar.js @@ -204,6 +204,10 @@ define([ this.element.find('#download_pdf').click(function () { that._nbconvert('pdf', true); }); + + this.element.find('#download_latex').click(function () { + that._nbconvert('latex', true); + }); this.element.find('#download_script').click(function () { that._nbconvert('script', true); diff --git a/notebook/templates/notebook.html b/notebook/templates/notebook.html index e23554bf2..53e5ebbb4 100644 --- a/notebook/templates/notebook.html +++ b/notebook/templates/notebook.html @@ -109,6 +109,7 @@ data-notebook-path="{{notebook_path | urlencode}}"
  • HTML (.html)
  • Markdown (.md)
  • reST (.rst)
  • +
  • LaTeX (.tex)
  • PDF via LaTeX (.pdf)