Ask Your Question

crucalculus's profile - activity

2020-06-12 11:57:49 -0500 received badge  Notable Question (source)
2018-07-12 19:23:00 -0500 received badge  Popular Question (source)
2016-08-10 08:14:09 -0500 commented question how can I speed up latexmk (sagetex) on a Mac?

I apologize for the reference to "too long"

In reality, it really isn't that big of a deal. I'm just a little confused about why sage can take such varied amounts of time to do essentially the same task. I've done some research, but can't figure out exactly what's happening.

2016-08-10 08:12:36 -0500 commented question how can I speed up latexmk (sagetex) on a Mac?

My workflow comes in two cases:

FIRST: I use Sublime text editor on my Mac to write LaTeX code with embedded sage (\sage, \sagesilent, \sageplot, etc.) The build system in Sublime allows me to run the following latexmk command: "command": ["latexmk", "-cd", "-e", "$pdflatex = '%E -shell-escape -interaction=nonstopmode -synctex=1 %S %O'", "-f", "-pdf"]

I also have a latexmkrc file with this: add_cus_dep('sage', 'sout', 0, 'makesout'); $hash_calc_ignore_pattern{'sage'} = '^( _st_.goboom|print .SageT)'; sub makesout { system("/Applications/sage_72/sage '$_[0].sage'"); }

SECOND: I have a Mongo database with many individual latex snippets that are sorted by keyword. I have a python script that pulls each of these snippets out, builds a small tex file, then runs latexmk.

2016-08-07 04:51:03 -0500 asked a question how can I speed up latexmk (sagetex) on a Mac?

I'm running latexmk on a Mac with sage 7.2 installed.

I'm confused about why the compilation process with tex files that use sagetex seem to take either 15-20 seconds or less than a second. I understand that there may be previously-generated files (plots, etc), but I have controlled for that by removing those files before each compilation.

Is there any way I can get consistent (and hopefully fast) compile times for my sagetex documents?