Open yonatanmgr opened 1 year ago
Personal opinion: I like how Notion has a few options about how math is input, both inline and as a block. One way is: enter a command to open a math popup, (all of its commands start with /
and then you type which command you want) and inside of that you can enter LaTeX (or KaTeX or whatever it is, I'm not sure).
Another way is: just type $$
then keep typing the TeX, and when you close it with $$
, it grabs everything between the pair of double-dollars and renders it. I usually use this way because it keeps my fingers on the keyboard, is very fast, etc. But if you ever need to edit what you already wrote then you click on the rendered TeX and it pops up that editor tool, which is the same thing you get by entering the /
command.
Anyway, that seems like a good system to me, although I'm sure tastes vary!
Another idea that I kinda like is various non-Tex shortcuts that enter Unicode symbols -- this can be nicer because they render one-at-a-time, so you don't have to wait to see what you've written, and can sometimes be easier to edit, copy-paste, etc. Maybe if these sorts of symbols had shortcuts started by their own command like :
, and maybe the same command can enter emojis ... just brainstorming ideas faster than a team can implement them! :)
But figured you might want to hear some ideas, pick any that sound good to you. Thank you for building this project!
Thank you for building this project!
Thank you for your involvement! 😀
I was thinking about something like your first idea, maybe that's what I'll go with, About the second idea - it is already kind of implemented in the math block! Although users currently can't see them directly in a help menu (that's a future feature) - for now, you can view the shortcuts file along with the keybindings file to see which shortcuts you can use.
I'm thinking of something like this:
$
followed by a space, an editable MathLive component will be created as an inline slate element with a dynamic width (long shot but maybe?). Another option is to have a popup for the math input, then pressing Enter will insert an inline slate element (that is not directly editable).$$
followed by a space, an editable MathLive component will be created as an block level slate element.