Git Product home page Git Product logo

Comments (5)

James-Yu avatar James-Yu commented on June 21, 2024

You can add "-y=defaultIndent: '%INDENT%'" to your arguments. latexindent sometimes ignores that setting in yaml.

from latex-workshop.

Mikachu2333 avatar Mikachu2333 commented on June 21, 2024

You can add "-y=defaultIndent: '%INDENT%'" to your arguments. latexindent sometimes ignores that setting in yaml.

Sorry for bother, but I mean that whether I set -y=defaultIndent: '%INDENT%' or not, LaTeX Workshop did not respond and made no change to my tex file.
Although it displayed success, it did not actually modify any of the lines as what I want it to do.

latexindent sometimes ignores that setting in yaml.

If it ignores the setting of default indent spaces, at least it should have corrected lines 9 to 10 in my tex file which were indented incorrectly, but it did not complete the task.

from latex-workshop.

James-Yu avatar James-Yu commented on June 21, 2024

I tried your example and it works well on my side, except for the tab indentation. So I figure it should be a local problem. The log message also did not indicate anything wrong.

from latex-workshop.

Mikachu2333 avatar Mikachu2333 commented on June 21, 2024

I tried your example and it works well on my side, except for the tab indentation. So I figure it should be a local problem. The log message also did not indicate anything wrong.

Thanks for timely anster, I'd re-try it with my friends to check it out if it is a local problem.

from latex-workshop.

Mikachu2333 avatar Mikachu2333 commented on June 21, 2024

latexindent sometimes ignores that setting in yaml.

Thank you for your tip!

At your prompt, I found that although the yaml file was specified and LaTeX Workshop did not report any error, indeed, the yaml file was not used for not found error, this issue is reffering to the error file locate (It seems that Latex Workshop did not check the file in workfolder path and just ignore the arg.).

The correct setting in the json file should be -l=%DIR%/latexindent.yaml ...

from latex-workshop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.