Hi,
I’ve recently discovered the more than awesome latex package. The built-in build process actually works great, but I need to execute another command whilst building. I’m not very familiar with the build enviroment and I couldn’t get this working on my own. Is this actually possible to do this?
The original build file looks like this:
{
"target": "make_pdf",
"selector": "text.tex.latex",
"windows":
{
"cmd":
"texify",
"-b", "-p",
"--engine=xetex",
"--tex-option=\"--synctex=1\""
],
"path": "",
"file_regex": "^((?:.:)?^:\n\r]*):([0-9]+):?([0-9]+)?:? (.*)$"
},
}
The thing I tried was simply seperate both commands with a semicolon “;”, so the makeindex command would run first, the texify command afterwars:
{
"target": "make_pdf",
"selector": "text.tex.latex",
"windows":
{
"cmd":
"makeindex",
"$file_base_name.nlo",
"-s nomencl.ist",
"-t $file_base_name.nlg",
"-o $file_base_name.nls",
";",
"texify",
"-b", "-p",
"--engine=xetex",
"--tex-option=\"--synctex=1\""
],
"path": "",
"file_regex": "^((?:.:)?^:\n\r]*):([0-9]+):?([0-9]+)?:? (.*)$"
},
}
Any ideas? A wild guess would be that the specified (non-default) target is an issue, but I really don’t know.
If this can’t be done, I would like to make this a feature reqiest.