CoCalc Shared Files10. Sagetex / sagetex-primjer.sagetex.sageOpen in CoCalc with one click!
Authors: Ivica Nakić, Vedran Čačić
1
## -*- encoding: utf-8 -*-
2
## This file (sagetex-primjer.sagetex.sage) was *autogenerated* from sagetex-primjer.tex with sagetex.sty version 2015/08/26 v3.0-92d9f7a.
3
import sagetex
4
_st_ = sagetex.SageTeXProcessor('sagetex-primjer', version='2015/08/26 v3.0-92d9f7a', version_check=True)
5
try:
6
_st_.current_tex_line = 5
7
_st_.inline(0, latex(1+2))
8
except:
9
_st_.goboom(5)
10
try:
11
_st_.current_tex_line = 7
12
_st_.commandline(0, r"""
13
sage: 1+2
14
""", globals(), locals(), True)
15
except:
16
_st_.goboom(9)
17
_st_.endofdoc()
18