anki-search-inside-add-card icon indicating copy to clipboard operation
anki-search-inside-add-card copied to clipboard

Latex

Open UseYourFrubbles opened this issue 3 years ago • 6 comments

Latex auto-completing

To Reproduce Steps to reproduce the behavior (with add-on enabled):

  1. Go to 'add'
  2. In any text field, type a latex equation (e.g. ( a^{2} = \frac{b}{c} )
  3. For seconds, it will turn into an uneditable equation

Expected behavior After enclosing latex i.e. seconds after typing ")" it will not be edited. In review, latex equations won't show.

Screenshots

image image Now, I can't edit it and it won't show when reviewing image

Environment (please complete the following information):

  • OS: Windows 10
  • 2.1.4

UseYourFrubbles avatar Mar 29 '21 05:03 UseYourFrubbles

Hi thanks for the report, that is weird, I never experienced any problems typing mathjax.

  1. Does the problem occur with other add-ons disabled?
  2. What do you mean with the version 2.1.4? I assume it is not your Anki version, because the add-on only works for 2.1.22+, you shouldn't even be able to download it for 2.1.4

fonol avatar Mar 30 '21 17:03 fonol

Mathjax error

I am also facing this issue with MathJax on Anki v2.1.40 (even with all other add-ons disabled). This issue only occurs when "Search on typing" is enabled. Therefore, I assume that the issue is caused by the rendering of MathJax for the preview of the other cards that are being searched is also leaking over into the card currently being edited, causing the MathJax in the current card to be rendered into an immutable state.

milan-tom avatar Apr 01 '21 10:04 milan-tom

Any error in the console (if you start Anki in console mode)? The add-on loads MathJax into the editor window, but restricts it to the add-on's result "cards". It looks to me like MathJax didn't pick up that restriction for you, and goes over the whole page instead of just the cards. Can't really reproduce the error, but I'll include change with the next update that might fix the issue (although I am sceptical :p).

fonol avatar Apr 02 '21 06:04 fonol

I can't see any errors when opening Anki from command prompt.

milan-tom avatar Apr 05 '21 17:04 milan-tom

This issue seems to have been resolved after updating Anki to v2.1.43. Thanks for the help anyway.

milan-tom avatar Apr 08 '21 12:04 milan-tom

@UseYourFrubbles Would it be possible to close this issue. It seems to be resolved with the latest updates.

OcileCollection avatar Aug 15 '22 18:08 OcileCollection