ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 18 May 2017 17:38:15 +0200Sage syntax highligh for LaTeXhttps://ask.sagemath.org/question/37613/sage-syntax-highligh-for-latex/I want to include some Sage code snippets to my LaTeX paper, but I don't know what's the best way to achieve Sage syntax highlight in LaTeX. I mean one can always use Python syntax highlight, but then again Sage comes with a plenty of unique functions, and some syntax differences compared with Python. What's a good way to achieve Sage syntax highlight in LaTeX document?Thu, 18 May 2017 13:53:30 +0200https://ask.sagemath.org/question/37613/sage-syntax-highligh-for-latex/Answer by dazedANDconfused for <p>I want to include some Sage code snippets to my LaTeX paper, but I don't know what's the best way to achieve Sage syntax highlight in LaTeX. I mean one can always use Python syntax highlight, but then again Sage comes with a plenty of unique functions, and some syntax differences compared with Python. What's a good way to achieve Sage syntax highlight in LaTeX document?</p>
https://ask.sagemath.org/question/37613/sage-syntax-highligh-for-latex/?answer=37615#post-id-37615Dr William Stein, one of the developers of Sage, has a LaTeX source file online where he uses Sage code. The location of the file and basic instructions are found on the TeX StackExchange site, [here](https://tex.stackexchange.com/questions/283108/questions-about-including-source-code-in-a-tex-file/283301#283301).Thu, 18 May 2017 17:38:15 +0200https://ask.sagemath.org/question/37613/sage-syntax-highligh-for-latex/?answer=37615#post-id-37615