forked from danehkar/latex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.tex
More file actions
54 lines (42 loc) · 1.13 KB
/
sample.tex
File metadata and controls
54 lines (42 loc) · 1.13 KB
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
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\title{JupyterLab \LaTeX}
\date{}
\maketitle
\section{Introduction}
This is a sample document demonstrating the ability live-edit
\LaTeX documents in JupyterLab.
\\
\\
Right-click on this document, and select "Show LaTeX Preview".
A new panel should open up on the right with the PDF that is generated
by this document. If there are any errors in the document, an
error panel should open below.
\\
\\
We can write equations:
\begin{equation}
\rho \left( \frac{\partial \mathbf{u}}{\partial t} + \mathbf{u} \cdot \nabla \mathbf{u} \right) =
-\nabla P + \eta \nabla^2 \mathbf{u} + \rho \mathbf{g}.
\end{equation}
\\
\\
And we can write tables:
\begin{center}
\begin{tabular}{ | l | c | r| }
\hline
1 & 2 & 3 \\
4 & 5 & 6 \\
7 & 8 & 9 \\
\hline
\end{tabular}
\end{center}
\subsection{We can add new subsections}
And we can include images, such as the Jupyter logo:
\begin{center}
\includegraphics[width=0.65\textwidth]{images/jupyter_logo.png}
\end{center}
\pagebreak
You can also use SyncTeX by typing ⌘(CMD)/CTRL+⇧(SHIFT)+X.
\end{document}