1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
void latexdoc()
{
string basename;
string latexname;
string yodldefine;
md("tmp/latex");
// cp necessary files for LaTeX
if (!exists("tmp/latex/cplusplus.sty"))
system("cp -r documentation/manual/latex tmp");
// assign file name variables
basename = "simrisc";
latexname = basename + ".latex";
chdir("documentation/manual");
system("yodl2latex --no-warnings -l3 "
"-o ../../tmp/latex/simrisc.latex simrisc.yo");
chdir("../../tmp/latex");
system("latex " + latexname);
system("latex " + latexname);
system("latex " + latexname);
}
|