Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Project: math480-2016
Views: 2158
1
\documentclass{beamer}
2
\usepackage{graphicx}
3
\usepackage{url}
4
5
\mode<presentation> {
6
\usetheme{Madrid}
7
}
8
9
\title[LaTeX day 1]{Using \LaTeX{} in SageMathCloud (day 1 of 3)}
10
\author{William Stein}
11
\institute[UW]{University of Washington}
12
\date{April 18, 2016}
13
14
\begin{document}
15
16
\begin{frame}
17
\titlepage
18
\end{frame}
19
20
21
22
\begin{frame}
23
\frametitle{Today's Plan}
24
\begin{block}{What we will do today}
25
\begin{enumerate}
26
\item Remind me to turn on the screencast; also, peer grading and new homework!
27
\item DDoS of SageMathCloud on Friday.
28
\item SageMathCloud \LaTeX{} Tutorial
29
\end{enumerate}
30
\end{block}
31
\end{frame}
32
33
\begin{frame}[fragile]
34
\frametitle{Distributed Denial of Service Attack on Friday}
35
\begin{block}{DDoS}
36
\begin{enumerate}
37
\item Wordpress pingback attack. Wrecked our class. Wrecked my weekend.
38
\item Now SMC uses \url{https://www.cloudflare.com/}.
39
\end{enumerate}
40
\end{block}
41
\begin{center}
42
\includegraphics[width=.5\textwidth]{chart-NETWORK-542068901}
43
\end{center}
44
\end{frame}
45
46
\begin{frame}
47
\frametitle{General Remarks about \LaTeX{}}
48
\begin{block}{\LaTeX{}...}
49
\begin{enumerate}
50
\item Create professional quality documents involving mathematics.
51
\item Completely open source and free. You can install it anywhere.
52
\item SageMathCloud is one (of many) ways to use it.
53
\end{enumerate}
54
\end{block}
55
\end{frame}
56
57
\begin{frame}
58
\frametitle{\LaTeX{} Tutorial: first steps}
59
\begin{block}{Do the following}
60
\begin{enumerate}
61
\item Create a new blank latex document.
62
\item Edit it, changing the title and your name, and seeing the result to the right.
63
\item Find a random math-related wikipedia article, and copy/paste a paragraph of text into your document (this shouldn't work too well, but gives you some math to play with).
64
\item Try out forward and inverse search.
65
\item Make errors and see them listed under issues.
66
\item Download the PDF.
67
\item Click build, then latex to see the output.
68
\item Change preview zoom and resolution.
69
\end{enumerate}
70
\end{block}
71
72
\end{frame}
73
74
\begin{frame}[fragile]
75
\frametitle{\LaTeX{} Tutorial: next steps}
76
\begin{block}{Do the following}
77
\begin{enumerate}
78
\item In your document, type some formulas surrounded by dollar signs. Try each of the following and some variations on them:
79
\item \verb|$x^3$|
80
\item \verb|$\sin(x^\pi)$|
81
\item \verb|$e^{2\pi i}$|
82
\item \verb|$\frac{2}{3 + x}$|
83
\item \verb|$1 + 2 + \cdots + n$|
84
\item \verb|$\sum_{i=1}^{n} i$|
85
\item \verb|$\int_{0}^{\pi} \sin(x)$|
86
\item \verb|$\sqrt{x^3 + 2}$|
87
\end{enumerate}
88
\end{block}
89
\end{frame}
90
91
92
\begin{frame}[fragile]
93
\frametitle{\LaTeX{} Tutorial: sagetex}
94
\begin{block}{Do the following}
95
\begin{enumerate}
96
\item Put \verb|\usepackage{sagetex}| in the {\bf preamble} of your
97
latex document. This means put it after \verb|\documentclass...| and before \verb|\begin{document}|.
98
99
\item Try typing this formula in: \verb|$2018 = \sage{factor(2018)}$|.
100
101
\item Once that works, try
102
some things from \url{http://mirrors.ibiblio.org/CTAN/macros/latex/contrib/sagetex/sagetexpackage.pdf}
103
104
\item \verb|\sageplot[width=.7\textwidth]{plot(sin,0,1)}|
105
106
\end{enumerate}
107
\end{block}
108
\end{frame}
109
110
111
\end{document}
112
113
114