Skip to content

Commit 6086623

Browse files
committed
more on latex, longer minimal example
1 parent 3eb3250 commit 6086623

File tree

6 files changed

+24
-4
lines changed

6 files changed

+24
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.sage-backup
2+
*.synctex.gz
23
.bashrc
34
.bup/
45
.cache/
@@ -9,3 +10,4 @@
910
.ssh/
1011
*.term
1112
*~
13+
\.*

d3/d3-tutorial.sagews

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ def d3(s=None,obj=None,css=None):
2020
return f
2121
else:
2222
f(s)
23-
5a27027b-13d8-4c5f-8a02-6fc44be59273︡{"auto":true}︡
23+
59cd75c2-4cb2-437d-a61f-c3c5386c3304︡{"auto":true}︡
2424
40e660af-ef64-4f8e-a7f7-7eb876abf0dca︠
2525
%auto
2626
%default_mode d3
27-
bd285cdd-7264-43bb-8372-f7621f99339d︡{"auto":true}︡
27+
fa0c0d8c-1839-41e6-a205-22d720e8fd78︡{"auto":true}︡
2828
f2e20154-2c81-487c-94b9-e8e11c2d6f2e︠
2929
d.append("p")
3030
.text("hello there, world")

latex/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ Sage + LaTeX = SageTeX
33

44
This demos how Sage and LaTeX can be combined.
55

6+
Automatic Mode
7+
--------------
8+
9+
Just click on the `*.tex` files and the two-pane editor should show up.
10+
SageTex and BibTex is run automatically, too!
11+
12+
Manual Mode
13+
-----------
14+
615
Edit the `.tex` file, compile it via `pdflatex sagetex.tex` in the Terminal.
716

817
If you change some Sage commands, you have to re-run `sage sagetex.sagetex.sage`

latex/sagetex.tex renamed to latex/minimal/minimal.tex

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77

88
\section{This is a test}
99

10+
Testing $\frac{1}{178} = \sage{n(1/178)}$.
11+
12+
\section{plotting}
13+
14+
is always fun ...
15+
16+
\sageplot[width=.8\textwidth]{plot(sin(x), (x,-10,10))}
17+
18+
\section{This is a test}
19+
1020
Testing $(1-x-x^2)^3 = \sage{((1-x-x^2)^2).expand()}$.
1121

1222
Using Sage\TeX, one can use Sage to compute things and put them into
@@ -32,4 +42,4 @@ \section{This is a test}
3242

3343
\sageplot[width=.8\textwidth]{plot(f, -1, 1)}
3444

35-
\end{document}
45+
\end{document}

latex/sagetex.pdf

-77.7 KB
Binary file not shown.

latex/terminal.term

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)