obsidian-calendar-plugin icon indicating copy to clipboard operation
obsidian-calendar-plugin copied to clipboard

Conflict with plugin Extended Mathjax

Open melsophos opened this issue 4 years ago • 4 comments

Describe the bug

There seems to be a conflict with the plugin Extended Mathjax: when both plugins are enabled, Latex commands defined in preamble.sty are not recognized. If I disable the Calendar plugin, then it works well again.

Steps to reproduce

  1. Write a user-defined command in a note.
  2. The command displays correctly in preview mode.
  3. Enable the Calendar plugin.
  4. Get an error in the preview mode, saying that the command is not defined.

Expected behavior

The command should be displayed correctly with and without Calendar plugin enabled.

Screenshots

Here are screenshots with and without the Calendar plugin enabled:

Environment

OS

Linux (Ubuntu 20.10)

Obsidian Version

v 0.11.1

Misc

I have also open an issue Extended Mathjax plugin bugtracker since I don't know from which side comes the problem.

melsophos avatar Feb 17 '21 20:02 melsophos

Hi @melsophos, this looks like a very strange issue. When it happens, are there any errors in the devtools console? You can check by pressing ctrl shift i and going to the Console tab in the window that shows up.

Any errors there will help us track down what's happening.

liamcain avatar Feb 22 '21 00:02 liamcain

There is no useful logs in the devtools console. In case, here they are: obsidians logs We started to discuss the problem on the Extended MathJax bugtracker, but did not find anything. Something weird is that the problem disapeared briefly after I defined the Latex command directly in the Obsidian notes, and then it came back. I wanted to create a test vault showing the problem but did not have time yet.

melsophos avatar Feb 23 '21 14:02 melsophos

A bit more information (also posted on xldenis/obsidian-latex#3):

I have understood a bit more how it appears: if, when the app starts (fresh or reload), there is a pane in preview mode for a note containing some Latex (with or without user-defined commands) which is opened, then user-defined commands don't work. If there is no such pane, then commands will work fine for the session. I checked again that if the the Calendar extension is disabled, then it works well even when a note preview with Latex is opened at the beginning.

Strangely, I could not reproduce the bug in a new vault with only two simple files (one with and one without Latex) and the same plugins.

melsophos avatar Mar 31 '21 01:03 melsophos

Just wanted to say that I am able to reproduce this bug.

oashour avatar Jun 28 '21 01:06 oashour