I am trying to print symbol and their description in LaTeX. On sage console things appear to work fine, but whan processed through sagetex, it reports error.
//////////////////////////////////////////////////////////////////////// ! Undefined control sequence. <argument> \text {breadth of beam} l.16 ...0][0]}$ standa for $\sage{varOutput[0][1]} $ ? ////////////////////////////////////////////////////////////////////// The data file and complete .tex file is appended below signature. How I can print in LaTeX, symbol and their description. -- H.S.Rai ================================================== /////////////////////////// example01Data.txt ////////////////////////// b // breadth of beam // 300 d // effective depth of beam // 550 D // overall depth of beam // 600 A_st // area of reinforcement // 0 phi_b // diameter of reinforcing steel bar // 12 //////////////// support.tex /////////////// \documentclass{article} \title{Analysis and Design through SAGE in \LaTeX} \author{H.S.Rai} \usepackage{sagetex} \begin{document} \maketitle \begin{sageblock} f = open('example01Data.txt') varList = [x.split(' // ') for x in f.readlines()] [var(x[0]) for x in varList] varOutput = [[latex(eval(x[0])),x[1]] for x in varList] \end{sageblock} \section{Symbol used} The symbol $\sage{varOutput[0][0]}$ standa for $\sage{varOutput[0][1]}$ \end{document} --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---