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