Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

Examples of using latex in cocalc

Views: 1126
1
## -*- encoding: utf-8 -*-
2
## This file (simple.sagetex.sage) was *autogenerated* from simple.tex with sagetex.sty version 2015/08/26 v3.0-92d9f7a.
3
import sagetex
4
_st_ = sagetex.SageTeXProcessor('simple', version='2015/08/26 v3.0-92d9f7a', version_check=True)
5
try:
6
_st_.current_tex_line = 8
7
_st_.inline(0, latex(factor(201809234098)))
8
except:
9
_st_.goboom(8)
10
_st_.current_tex_line = 10
11
_st_.blockbegin()
12
try:
13
a = random()
14
b = 7
15
except:
16
_st_.goboom(13)
17
_st_.blockend()
18
try:
19
_st_.current_tex_line = 14
20
_st_.inline(1, latex(a))
21
except:
22
_st_.goboom(14)
23
try:
24
_st_.current_tex_line = 14
25
_st_.inline(2, latex(a+b))
26
except:
27
_st_.goboom(14)
28
_st_.endofdoc()
29
30