forked from jackolney/travis-ci-latex-pdf
-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
main.tex
93 lines (72 loc) · 3 KB
/
main.tex
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
%%
%% Author: Thomas Schouten
%% 21-10-2017
%%
% Preamble
\documentclass{article}
% Test requiring some non-standard packages
\usepackage[dutch]{babel} % May be necessary to delete auxiliary files after changing.
\usepackage[fleqn]{amsmath} % left align equations option
\usepackage{amsthm} % proof environments
\usepackage{amssymb} % some symbols like probability P, or real number R
\usepackage{mathtools} % improvement over amsmath, like \coloneqq
\usepackage{enumerate} % numbered list
\usepackage{enumitem} % Provides [resume] option for enumerate
\usepackage{thmtools} % define custom to prove environments
\usepackage{stmaryrd} % \lightning
\usepackage{xcolor} % colors
\usepackage{pdfpages} % to include external pdfs
\usepackage{centernot} % \centernot \implies looks correct
\usepackage{tikz} % Used for drawings
\usepackage{imakeidx} % Used for index
\usepackage[makeroom]{cancel} % to draw a diagonal line through formulas
\usepackage{hyperref} % should make index clickable
\usepackage{bookmark} % Used for pdf bookmarks, needs to be loaded AFTER hyperref
\usepackage{pgfplots} % Drawings!
\usepackage{bm} % bold math, \bm{}
\usepackage{listings} % to include code with env. lstlisting
\usepackage{graphicx} % to use \includegraphics
\usepackage{booktabs} % Better spacing for tables
\usepackage{polynom} % Polynomial long division
\usepackage{multirow} % Improvements to table layout
\usepackage{marvosym} % Extra math symbols
\usepackage{amsfonts} % An extended set of math fonts
%\usepackage{fancyhdr} % Nicer page headers/footers. WARNING clashes with exam class!
\usepackage{ulem} % Provides an \ul (underline) command which will break over line ends
\usepackage{iflang}
\usepackage[margin=8em]{geometry} % Adjust page margins
\usepackage[default]{opensans} % Open Sans typeface
\usepackage{algorithm} % Algorithm environment
\usepackage[noend]{algpseudocode} % Layout for algorithmicx package
\usepackage{chngcntr} % Customise table/figure counters
% Copy of local file C:/Program Files/SageMath 8.1/runtime/opt/sagemath-8.1/local/share/texmf/tex/latex/sagetex/sagetex.sty
% Not per se machine-independent.
\usepackage{sagetex}
% Use: run LaTeX, run 'sage myfile.sagetex.sage' in Sage shell, run LaTeX again.
% To typeset output in latex for sagecommandline environment
\renewcommand{\sagecommandlinetextoutput}{False}
\makeindex
% Document
\begin{document}
Hello!
This is a new release $\lightning$. \index{lightning}
\input{chapter1}
They said~\cite{book1}.
\begin{sagecommandline}
sage: r,B = var('r,B')
sage: f = (x*r*B)/((1-x)^2 * (1-x*r))
sage: f.partial_fraction(x)
\end{sagecommandline}
Sage can compute $1+1=\sage{1+1}$.
\begin{sagesilent}
q = 1000000000001209
p = 4*q+1
sk_b = 32395235; pk_a = 423570969118299
h = mod(sk_b * pk_a, p)
cipher = 3752138087151167
\end{sagesilent}
Hidden message in $\sage{mod(h^-1 * cipher, p)}$.
\bibliography{somebooks}
\bibliographystyle{plain}
\printindex
\end{document}