Latex-workshop: Index style file -o .nls not found.

Created on 25 May 2019  Â·  3Comments  Â·  Source: James-Yu/LaTeX-Workshop

Steps to reproduce the behavior:

  1. Running makeindex thesis.nlo -s nomencl.ist -o thesis.nls via commandline works perfectly fine without any errors. Running pdflatex afterwards creates an index as expected.
  1. Add the following step to your build toolchain
 {
            "name": "makeindex",
            "command": "makeindex",
            "args": [
                  "%DOCFILE%.nlo",
                  "-s nomencl.ist",
                  "-o %DOCFILE%.nls"
            ]
}

to have makeindex working (I followed #384).

  1. Run a recipe containing this step
{
            "name": "pdflatex âžž bibtex âžž makeindex âžž pdflatex âžž pdflatex",
            "tools": [
              "pdflatex",
              "bibtex",
              "makeindex",
              "pdflatex",
              "pdflatex"
            ]
}
  1. Result
Index style file -o thesis.nls not found.
Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]

Expected behavior
I get no error and the building proceeds.

Desktop [Required]:

  • OS: Arch Linux
  • VS Code version:
    1.34.0
    a622c65b2c713c890fcf4fbf07cf34049d5fe758
    x64
  • Extension version: 7.0.0

Most helpful comment

I think you need to split "-s nomencl.ist" into two arguments, the same for -o %DOCFILE%.nls. If it does not help, please post the complete logs of the extension.

All 3 comments

I think you need to split "-s nomencl.ist" into two arguments, the same for -o %DOCFILE%.nls. If it does not help, please post the complete logs of the extension.

@jlelong Ahhh...
That's kind of unintuitive but works perfectly.

This is because every entry inside args is automatically surrounded by an extra pair of quotes when passed to the spawn function.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LordScree picture LordScree  Â·  5Comments

drdebmath picture drdebmath  Â·  4Comments

fsonntag picture fsonntag  Â·  4Comments

domenicozambella picture domenicozambella  Â·  4Comments

tillahoffmann picture tillahoffmann  Â·  6Comments