Hallo,
So I have this Problem. I try to create a Tex-file in Ruby.
I have content which is saved within $doc. This content should be
written in a tex-file, which is meant to be created by pdflatex
My Code:
start = Document.new
start.chooseDocGeneralType
start.checkForFiles
@outfileName = “out.tex”
outfile = File.open(@outfileName, “w”)
$doc.createTitlePage
$doc.createContent
outfile.write $doc.text()
system “pdflatex #{@outfileName}”
#######################################################################
When I execute it, I get the exception:
Sorry, but pdflatex did not succeed.
The log-file hopefully contains the information.
When i look into the log file, it says:
pdflatex - Permission denied: .\out.tex
I dont get what the Problem is. out.tex is perfectly created. When I
open the file in TeXworks it creates the PDF without a problem. and even
when I make the command in cmd “pdflatex out.tex” it creates it
perfectly. But not within my Ruby Code.
Thank you very much,
Madita