I'm looking for a good way to create 3D diagrams of frustums etc. on a Mac. So far the best tool I've found is Sketch. The .sk package looks like a possibility but the figures are fairly large so running the interpreter on separate .sk files seems reasonable to avoid overhead. Currently I've built sketch from scratch. It creates the correct PDF if I run it like this.
Code: Select all
sketch -T sample.sk -o sample.tex
pdflatex sample.tex
Code: Select all
add_cus_dep('sk', 'tex', 0, 'makesketch');
sub makesketch {
system("sketch -T '$_[0]'.sk -o '$_[0]'.tex");
system("pdflatex '$_[0]'.tex");
}
Code: Select all
Subroutine makesketch redefined at (eval 16) line 2, <GEN1> chunk 1.
Latexmk: This is Latexmk, John Collins, 11 Nov. 2012, version: 4.35.
**** Report bugs etc to John Collins <collins at phys.psu.edu>. ****
Latexmk: No file name specified, and I couldn't find any
thanks!