Code Monkey home page Code Monkey logo

Comments (10)

amake avatar amake commented on May 26, 2024

I think it's going to be quite hard to get this to work with all possible layout scenarios:

  • LaTeX blocks that are too wide should be allowed to scroll horizontally; in that case, where should the tag go?
  • For LaTeX blocks that are narrower than the window, must the tag hug the right side?

Prior to v1.18.0 the equation environment was simply dropped, so this was not an issue (the tag was suppressed). Suppressing the tag through some mechanism could be the best solution if people aren't wedded to the tag being shown.

from orgro.

amake avatar amake commented on May 26, 2024

Things that are easy to do:

  • Remove tags entirely
  • Show tags at a fixed offset from the right edge of the main content (not aligned to the right of the screen)

from orgro.

amake avatar amake commented on May 26, 2024

@fountainer Can you comment on what you expect in terms of how tags should be presented?

from orgro.

fountainer avatar fountainer commented on May 26, 2024

@fountainer Can you comment on what you expect in terms of how tags should be presented?

I personally don't care much about the tags. I prefer the solution that tags are removed. However, I also accept other solutions as long as they don't overlap with the formulas.

from orgro.

fountainer avatar fountainer commented on May 26, 2024

Another option is to put tags on the left side of the formulas.

from orgro.

amake avatar amake commented on May 26, 2024

I think I will go with

Show tags at a fixed offset from the right edge of the main content (not aligned to the right of the screen)

and if you don't want tags shown at all then you can use equation* instead of equation.

from orgro.

amake avatar amake commented on May 26, 2024

This is addressed in v1.18.1, which is now available in Test Flight.

from orgro.

fountainer avatar fountainer commented on May 26, 2024

The equation numbers are always one. Is it a bug?
IMG_C2645E4E9BD0-1

from orgro.

amake avatar amake commented on May 26, 2024

It's a limitation of the current implementation. Each block has its own context, and I don't know how to share the context such that the numbering could continue.

from orgro.

amake avatar amake commented on May 26, 2024

Actually it seems that it's a limitation of the rendering engine itself. If you want meaningful tags you need to specify the contents manually like \tag{foo}.

This is wrong; KaTeX can correctly auto-number equations. I've opened amake/flutter_tex_js#9 to track this, but I don't think I'm going to be able to solve this any time soon.

from orgro.

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.