diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2019-03-31 03:13:58 +0200 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2019-03-31 03:13:58 +0200 |
| commit | 29539d25c1bc60db1f0745b969c8a9692eee27a7 (patch) | |
| tree | 4502a040ef11618f57036f204848c8354ce215a1 /texify.go | |
| parent | 0b97a731b9f38f7d98bd9331453aae918953b26d (diff) | |
Prefix of Invoice Files
Diffstat (limited to 'texify.go')
| -rw-r--r-- | texify.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -139,7 +139,7 @@ func billTemplate(billdata bill, cust Customer) Filenames { } func runLatex(inputfilename, outputfilename string) error { - fmt.Printf("Rendering: %s -> Output File: %soutpdf/Rechnung%s.pdf\n", inputfilename, config.Folder,cleanString(outputfilename)) + fmt.Printf("Rendering: %s -> Output File: %soutpdf/%s%s.pdf\n", inputfilename, config.Folder,config.Prefix,cleanString(outputfilename)) pref := strings.TrimSuffix(inputfilename, "_main.tex") //cmdArgs := []string{"-synctex=1", "-interaction=nonstopmode", filename} @@ -148,7 +148,7 @@ func runLatex(inputfilename, outputfilename string) error { //env := os.Environ() mainpdf := strings.Replace(inputfilename, ".tex", ".pdf", 1) - cmd := fmt.Sprintf("cd %souttex; %v -interaction=nonstopmode -output-directory='../outpdf' %s; cd ../outpdf; cp %s 'Rechnung%s.pdf'; rm %s_*", config.Folder,binary, inputfilename, mainpdf, cleanString(outputfilename), pref) + cmd := fmt.Sprintf("cd %souttex; %v -interaction=nonstopmode -output-directory='../outpdf' %s; cd ../outpdf; cp %s '%s%s.pdf'; rm %s_*", config.Folder,binary, inputfilename, mainpdf, config.Prefix, cleanString(outputfilename), pref) //fmt.Println(cmd) //docmd := exec.Command(binary,cmdArgs[0], cmdArgs[1],cmdArgs[2]) docmd := exec.Command("bash", "-c", cmd) |
