File: latexdoc

package info (click to toggle)
simrisc 16.06.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,568 kB
  • sloc: cpp: 6,889; fortran: 669; makefile: 112; ansic: 112; sh: 107
file content (29 lines) | stat: -rw-r--r-- 683 bytes parent folder | download | duplicates (2)
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);
}