Skip to content

Commit ab92722

Browse files
authored
Merge pull request #2329 from mpacer/latex_export
Add latex button to dropdown
2 parents 2b2d321 + 9b771de commit ab92722

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

notebook/static/notebook/js/menubar.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ define([
204204
this.element.find('#download_pdf').click(function () {
205205
that._nbconvert('pdf', true);
206206
});
207+
208+
this.element.find('#download_latex').click(function () {
209+
that._nbconvert('latex', true);
210+
});
207211

208212
this.element.find('#download_script').click(function () {
209213
that._nbconvert('script', true);

notebook/templates/notebook.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
<li id="download_html"><a href="#">HTML (.html)</a></li>
110110
<li id="download_markdown"><a href="#">Markdown (.md)</a></li>
111111
<li id="download_rst"><a href="#">reST (.rst)</a></li>
112+
<li id="download_latex"><a href="#">LaTeX (.tex)</a></li>
112113
<li id="download_pdf"><a href="#">PDF via LaTeX (.pdf)</a></li>
113114
</ul>
114115
</li>

0 commit comments

Comments
 (0)