forked from UCL/rsd-engineeringcourse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
latex.tplx
60 lines (49 loc) · 1.86 KB
/
latex.tplx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
%=====================================
% Solution about utf8x problem
% https://github.com/jupyter/nbconvert/issues/530#issuecomment-303034557
%=====================================
% Default to the notebook output style
((* if not cell_style is defined *))
((* set cell_style = 'style_ipython.tplx' *))
((* endif *))
% Inherit from the specified cell style.
((* extends cell_style *))
((* block packages *))
% Hide [utf8x]{inputenc} as it should not be used with xetex.
% Also hide ucs which conflicts with a bunch of stuff.
% http://tex.stackexchange.com/a/39418
\makeatletter
\newcommand{\dontusepackage}[2][]{%
\@namedef{ver@#2.sty}{9999/12/31}%
\@namedef{opt@#2.sty}{#1}}
\makeatother
\dontusepackage[utf8x]{inputenc}
\dontusepackage[mathletters]{ucs}
((( super() )))
\usepackage{unicode-math}
\usepackage{fontspec}
\usepackage[Latin,Greek]{ucharclasses}
\newfontfamily\substitutefont{CMU Serif}
\setTransitionsForGreek{\begingroup\substitutefont}{\endgroup}
((* endblock packages *))
((* block title *))
\title{An introduction to Python Programming for Research}
((* endblock title *))
((* block author *))
\author{James Hetherington}
((* endblock author *))
%===============================================================================
% Latex Book
%===============================================================================
((* block predoc *))
((( super() )))
((* block tableofcontents *))\tableofcontents((* endblock tableofcontents *))
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
((* endblock predoc *))
((* block docclass *))
\documentclass{report}
((* endblock docclass *))
((* block markdowncell scoped *))
((( cell.source | citation2latex | strip_files_prefix | markdown2latex(extra_args=["--top-level-division=chapter"]) )))
((* endblock markdowncell *))