GithubHelp home page GithubHelp logo

Indenting on `$` and `$$` about vimtex HOT 3 CLOSED

lervag avatar lervag commented on May 18, 2024
Indenting on `$` and `$$`

from vimtex.

Comments (3)

lervag avatar lervag commented on May 18, 2024

Hi. This is actually not as easy as it might seem, since we must decide whether the $ or $$ is opening or closing an indent block. Further, it is not clear HOW this should be indented. Even further, it is difficult to see exactly how people use $Β and $$. That is, personally I use $ inline, which means I think it should not really be indented since it is part of the text. In the very few cases I have used $$ I put it at the beginning of a line similar to \[.

I could consinder implementing some indentation, but we must first agree how these constructs are/should be used, and how they should be indented. I personally think we should not care about indenting $s, but perhaps $$s should be indented.

from vimtex.

Konfekt avatar Konfekt commented on May 18, 2024

As a side note, to get an impression of the scope of this problem, perhaps the following quote I stumbled upon at http://tex.stackexchange.com/questions/510/are-and-preferable-to-dollar-signs-for-math-mode is of interest:

... I remember hearing knuth say that if he were creating tex all over again, he wouldn't use a "toggle" approach for math mode, but would use a clean begin/end notation.

from vimtex.

lervag avatar lervag commented on May 18, 2024

Thanks, that's an interesting thread, and it seems to better explain the problems I mentioned.

from vimtex.

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.