GithubHelp home page GithubHelp logo

Comments (5)

janwil123 avatar janwil123 commented on July 17, 2024 1

Sure. I stripped my file down to the following one-slide example:

beamertest.txt

(sorry I had to rename it to .txt since GitHub does not like uploading .tex files).

To reproduce the error do the following:

  • Open the file in Atom (with latexer enabled) as a .tex-file.
  • Find the display math formula in the itemize environment, place your cursor in the end of the formula and hit spacebar.
  • You will see erroneous [ and ] added in weird places.

What seems to be interesting is that when I delete the preceding block environment, the bug disappears. So probably its logic of traversing the environments after and through each other leaves the state machine in an incorrect state.

And you get extra 5 point credit for figuring out what language the example slide is written in :)

Best,
Jan

from latexer.

Focus avatar Focus commented on July 17, 2024

Hmm, yes that is quite annoying. Unfortunately I can't seem to replicate it. Could you possibly try the github version? Or wait until end of week for 0.3.1 and try it with that?

from latexer.

janwil123 avatar janwil123 commented on July 17, 2024

I can confirm the bug. I have a feeling that the occurrence of too many ]-s is more likely within another environment. For example I had this trouble when I needed to write display formulae within a block environment in beamer.

from latexer.

Focus avatar Focus commented on July 17, 2024

Could you possibly provide a small reproducible example?

from latexer.

kellertuer avatar kellertuer commented on July 17, 2024

Thanks for providing the example, I even forgot about the bug for a while (since I switched back to my old editor). Yes, that replicates the bug and occurs often in beamer slides. It also happens therein with the equation environment, but in a slightly different setting, i'll try to also boil that down to a minimal example and report back.

from latexer.

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.