Examples of using latex in cocalc
## -*- encoding: utf-8 -*-12# This file was *autogenerated* from the file simple.sagetex.sage3from sage.all_cmdline import * # import sage library45_sage_const_2 = Integer(2); _sage_const_1 = Integer(1); _sage_const_0 = Integer(0); _sage_const_7 = Integer(7); _sage_const_8 = Integer(8); _sage_const_13 = Integer(13); _sage_const_10 = Integer(10); _sage_const_14 = Integer(14); _sage_const_201809234098 = Integer(201809234098)## This file (simple.sagetex.sage) was *autogenerated* from simple.tex with sagetex.sty version 2015/08/26 v3.0-92d9f7a.6import sagetex7_st_ = sagetex.SageTeXProcessor('simple', version='2015/08/26 v3.0-92d9f7a', version_check=True)8try:9_st_.current_tex_line = _sage_const_810_st_.inline(_sage_const_0 , latex(factor(_sage_const_201809234098 )))11except:12_st_.goboom(_sage_const_8 )13_st_.current_tex_line = _sage_const_1014_st_.blockbegin()15try:16a = random()17b = _sage_const_718except:19_st_.goboom(_sage_const_13 )20_st_.blockend()21try:22_st_.current_tex_line = _sage_const_1423_st_.inline(_sage_const_1 , latex(a))24except:25_st_.goboom(_sage_const_14 )26try:27_st_.current_tex_line = _sage_const_1428_st_.inline(_sage_const_2 , latex(a+b))29except:30_st_.goboom(_sage_const_14 )31_st_.endofdoc()32333435