in the custom commands it is possible to use custom commands and selectors as ?ame.
it is possible to use serval commands in one command line by seperating them with |.
Some commands do not work globaly, they need to start in the orking directory where the files are.
Some commands create theyr own output folders (i.e. lilypond).
Following commands in the build chain are maybe not able to handle stuff correctly if they are applied globaly vrom outside of the working dir (i.e. pdflatex).
Such commands should start in the working dir where they should do theyr work.
To do so TexStudio needs a additional change working directory command which can be appyed in the build process.
here is a working example of a bat file i use
d:
cd %3
"C:\Program Files (x86)\LilyPond\usr\bin\python-windows.exe" "C:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py" --output=out --pdf %2.%1
cd out
"C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe" %2.%1
This works, but how do i get this into TexStudio?
dere is no CD command or similar, so PdfLatex starts in the tex file folder of the project and not in the lilypond output folder there the lilypond generated tex file is and where the lilypond generated subfolders are.
So PdfLatex cant find the dynamic (random name) created lilypond subfolder and fails.
a command to change the folder on build time (in the build process) may would solve the problem as it works so from commandline on windows 8.1.
Thanks any way its a nice tool :D
Anonymous
You can use your existing batch script as build command.