Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can follow the strategy given in my answer to this question you made later. For the sake of completeness, I adapt it here.

Write a tex file with all the code you need to config SageTeX:

   latex.matrix_delimiters(left='[', right=']')
   latex.vector_delimiters(left='<', right='>')

Call it, for example, STconfig.tex. Then write a small package mysagetex.sty with the following content:

\ProvidesPackage{mysagetex}[2019/02/20 v.0.1]

Put both files together where TeX can find them. In the source tex file, it suffices to load mysagetex instead of sagetex, e.g., add \usepackage{mysagetex} to the preamble.