Menu

#1535 lilypond and pdflatex does not work

None
duplicate
nobody
1
2015-10-22
2015-10-22
Anonymous
No

I have problems with Lilypond and PdfLatex
I have a Tex file with lilypond content
when i pusch it through lilipond it will create a output folder and in it a Tex file, the pictures and a random subfolder with needed content,
to do this i have a command in TexStudio as folowing
"C:\Program Files (x86)\LilyPond\usr\bin\python-windows.exe" "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py" --output=out --pdf ?ame"
This works well.
the files in the out folder exist and are vital.
Now i have to push the so generated Tex file through PdfLatex to create a PDF with the Lilipond content.
i try this with this command:
"C:\Program Files (x86)\LilyPond\usr\bin\python-windows.exe" "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py" --output=out --pdf ?ame" | "C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe" "?a)out\?m).?e)"
now PdfLatex seems to catch the file and is doing its part.
But in the out folder is a generated random named subfolder with some content.
PdfLatex cant find this content or subfolder and fails

If i try this on the CMD manualy, Lilypond works, and creates a out folder with a Tex file and a subfolder, then i change the folder to this lilypond created out folder, then i run pdfLatex with the full path and the Pdf gets created.

The problem is in TexStudio (as i guess) because i cant change the working directory in the compiling process
i did try with CD or CMD /C CD ... the first version fails because its not such a command and the second version opens a own shell and changes to the path and then closes it self so the next command (pdfLatex) keeps still in the old folder.

It would be a great favor it TexStudio would know a command to change the directory in a process

some thing like
"C:\Program Files (x86)\LilyPond\usr\bin\python-windows.exe" "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py" --output=out --pdf ?ame" | CD out | "C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe" "?a)out\?m).?e)"

may so pdfLatex would find the needed subfolder as it does from the CMD when used manually.

Discussion

  • Tim Hoffmann

    Tim Hoffmann - 2015-10-22
     

    Related

    Feature Requests: #930

  • Tim Hoffmann

    Tim Hoffmann - 2015-10-22
    • status: open --> duplicate
    • Group: -->
     

Log in to post a comment.

MongoDB Logo MongoDB