Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latex editor & viewer feature #3014

Closed
1 task
Gintasz opened this issue Jun 7, 2023 · 10 comments
Closed
1 task

Latex editor & viewer feature #3014

Gintasz opened this issue Jun 7, 2023 · 10 comments
Labels
help wanted mod:rich-text Module: related to rich-text editing (including Virgo) story Features perceivable by end-users type:feat Non-bug feature improvements

Comments

@Gintasz
Copy link

Gintasz commented Jun 7, 2023

Description

Add a quick latex viewer & editor like in obsidian:
https://github.com/joeyuping/quick_latex_obsidian

Use case

taking notes while studying content with math involved

Anything else?

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@Gintasz Gintasz added type:feat Non-bug feature improvements story Features perceivable by end-users labels Jun 7, 2023
@himself65 himself65 transferred this issue from toeverything/AFFiNE Jun 7, 2023
@affine-bot
Copy link

Hello! Thank you for filing an issue.
If this is a bug report, please include relevant logs to help us debug the problem.

@houjoe0829
Copy link

Thank you very much for your feedback. This is in our future plans, but we have not started working on it yet. Please stay tuned for updates.

@DataDaoDe
Copy link
Contributor

This would be huge. Having some way to enter math equations is what's keeping me from being able to use blocksuite as of right now. I'd be glad to help out any way I could to get this implemented.

@JiantingFeng
Copy link

What is the status? Any update?

@houjoe0829
Copy link

JiantingFeng

We haven't started working on this requirement yet. It is not expected to be supported in the short term. Please continue to stay updated. Thank you again for your attention.

@mon-jai
Copy link

mon-jai commented Jul 23, 2023

Maybe MathQuill (desmosinc fork) could be integrated?


Edit: Maybe mathlive is more actively maintained.

@DataDaoDe
Copy link
Contributor

DataDaoDe commented Jul 23, 2023

Personally. I think pure Latex better. The autocompletion usually just makes it more difficult/time consuming. And most people writing math are going to be used to latex in my experience. TBH notion's math-block and math-inline elements are really good here IMHO. You get the speed of writing pure latex and its automatically rendered in real time so you also get to see the results.

@stefnotch
Copy link

I disagree about pure Latex being better. It's better for some, but IMO it most certainly is not better for everyone.
Latex has a learning curve, and many constructs are time consuming to enter and edit when using Latex. (\frac{}{} for a fraction?)

If anything, I'd vote for offering both options: Pure Latex, and a WYSIWYG variant.

@DataDaoDe
Copy link
Contributor

DataDaoDe commented Jul 25, 2023

I think that would be okay as long as you offer both. The thing is, If you don't allow for a pure latex editing mode, you end up with tons of tedious trial and error to get the function you want, or worse, you can't enter the function you want or you've enter 90% of the equation and then can't get the autocomplete to do what you want. This can be extremely frustrating. I will say though I'm speaking from the perspective of someone in mathematics. This is probably not the case for high school students or many other disciplines where equations remain relatively simple and straightforward.

@doodlewind
Copy link
Member

The inline latex is supported in #5909, try https://try-blocksuite.vercel.app/?mode=page&exampleSpec=latex to see the effect (typing $a + b$ then pressing space).

Note that this is only supported as an extension example based on the framework, require some more time to further land it in AFFiNE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted mod:rich-text Module: related to rich-text editing (including Virgo) story Features perceivable by end-users type:feat Non-bug feature improvements
Projects
Archived in project
Archived in project
Development

No branches or pull requests

8 participants