Skip to content

Commit

Permalink
Merge pull request #1064 from KrokodileDandy/KrokodileDandy-patch-1
Browse files Browse the repository at this point in the history
Update base.tplx
  • Loading branch information
t-makaro authored Aug 1, 2019
2 parents ed505f4 + 5ab842c commit 8ed20ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ addons:
- cm-super # more fonts
- texlive-xetex # latex to pdf converter
- inkscape # for svgs in pdf output
- lmodern # latex package
- texlive-generic-extra
install:
- wget https://github.com/jgm/pandoc/releases/download/2.7/pandoc-2.7-1-amd64.deb && sudo dpkg -i pandoc-2.7-1-amd64.deb
- pip install --upgrade setuptools pip pytest
Expand Down
11 changes: 7 additions & 4 deletions nbconvert/templates/latex/base.tplx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ This template does not define a docclass, the inheriting class must define this.
((* block docclass *))((* endblock docclass *))

((* block packages *))
\usepackage[T1]{fontenc}
% Nicer default font (+ math font) than Computer Modern for most use cases
\usepackage{mathpazo}
\usepackage{iftex}
\ifPDFTeX
\usepackage[T1]{fontenc}
\usepackage{mathpazo}
\else
\usepackage{fontspec}
\fi

% Basic figure setup, for now with no caption control since it's done
% automatically by Pandoc (which extracts ![](path) syntax from Markdown).
Expand Down Expand Up @@ -46,7 +50,6 @@ This template does not define a docclass, the inheriting class must define this.
\usepackage{upquote} % Upright quotes for verbatim code
\usepackage{eurosym} % defines \euro
\usepackage[mathletters]{ucs} % Extended unicode (utf-8) support
\usepackage[utf8x]{inputenc} % Allow utf-8 characters in the tex document
\usepackage{fancyvrb} % verbatim replacement that allows latex
\usepackage{grffile} % extends the file name processing of package graphics
% to support a larger range
Expand Down

0 comments on commit 8ed20ca

Please sign in to comment.