obsidian-latex-suite
obsidian-latex-suite copied to clipboard
FR: suppose more LaTeX code in the conceal feature
Above the pic, suppose more latex code in the conceal feature
- \lim\limits-->lim
- \displaystyle{\frac{A}{B}}-->A/B
- \sum\limits_{}-->$\sum$
- \cdots -->...
Thank you for the suggestions!
Regarding \frac{A}{B}
, it might be misleading if you've written e.g. \frac{A}{B}C
which gets displayed as A/BC
.
I'll try to handle \limits
, \displaystyle
and dots.
@artisticat1 Maybe try to add ()
just like \frac{A}{B}C
-->(A/B)C
.
Converted to
((A+B/C+D)/(a+b/c+d))
I think that \lim_{a \to b}
may to convert to same like \sum
. Convert the a \tp b
to subscript
@artisticat1 Maybe try to add
()
just like\frac{A}{B}C
-->(A/B)C
.
Yeah, I thought of that too. I wasn't sure about it though since (A/B)C
implies there are brackets surrounding the fraction, like (\frac{A}{B})C
, when there are none.
Converted to
((A+B/C+D)/(a+b/c+d))
That looks nice, however! I'll definitely give this a shot.
I think that
\lim_{a \to b}
may to convert to same like\sum
. Convert thea \tp b
to subscript
A problem with converting a \to b
to subscript is that there is no unicode character for a subscript arrow. I can implement this by using e.g. <sub></sub>
html tags instead, maybe in a future release.
a
as subscript and b
as superscript. Can it work?
This style may be adjusted. It's just the aesthetic aspect, I don't care it. And I really appreciate your plugin.
a
as subscript andb
as superscript. Can it work?
Yep, is this what you mean?
This style may be adjusted. It's just the aesthetic aspect, I don't care it. And I really appreciate your plugin.
Yep, the style depends on which font you're using. Some fonts don't include characters for these symbols, so they fall back to Times New Roman. Consolas looks better, in that all the characters are aligned:
Correct! But I mean that make the a
as subscript and b
as superscript and a
,b
from \lim_{a \to b}
@artisticat1 Hi, I find displaystyle
still show on the new releases. Do you have other considerations?
Yes, I'll deal with \displaystyle
in a future release! :)
Fractions are now concealed in 1.4.5.
![](https://user-images.githubusercontent.com/100622574/190901611-10cc6c86-ab69-49bd-b15a-0b7c8ce9f6c2.png)