nixnote2 icon indicating copy to clipboard operation
nixnote2 copied to clipboard

Improve/fix LaTeX formula integration

Open robert7 opened this issue 7 years ago • 8 comments

The LaTeX integration is unstable/broken Info: https://github.com/robert7/nixnote2/issues/43#issuecomment-430233402 It seems the "gif rendering" of the formula doesn't get synced to Evernote (message BAD_DATA_FORMAT parameter=ResourceAttributes.sourceURL)

In the v2.0 the functionality wan't very stable either (upload worked, but e.g. edit not). As I don't use LaTeX .. this is kind of low prio for me.. ... if anyone want to have it ... pull request is welcome.

robert7 avatar Oct 16 '18 16:10 robert7

hm the latex thing seems unstable indeed! What I can say is that editing worked with the baumgarr version. And only some latex code seems to cause a sync error. Will try to figure it out in more detail!

jotech avatar Oct 17 '18 10:10 jotech

Thanks @jotech. I use LaTeX a fair bit for AI which requires non-trivial formulae. Appreciated.

HaleTom avatar Nov 22 '18 13:11 HaleTom

I plan to fix it in the near future.

robert7 avatar Nov 26 '18 19:11 robert7

@jotech @HaleTom I fixed the LaTeX integration as far I could. It seems to work now. screen_20181216_01

Pls check. It works from version 2.1.2-f. The formula is internally rendered by "mimetex", so you need to have it installed and NixNote accepts the formulas which mimetex can understand.

robert7 avatar Dec 16 '18 10:12 robert7

wiki page https://github.com/robert7/nixnote2/wiki/LaTeX-integration-(math-expressions)

robert7 avatar Dec 16 '18 10:12 robert7

@robert7 sorry I just updated to >2.1.2-f ! As far as I can see right now, it is working. I'm quite happy to have it back :o) Thank you very much!

jotech avatar Feb 12 '19 14:02 jotech

Is it worth to think about something else than mimetex because its output has lower quality? Maybe textogif or tex2im are alternatives with higher quality formulas?

jotech avatar Feb 12 '19 14:02 jotech

@jotech maybe; so I let the issue open

robert7 avatar Feb 19 '19 22:02 robert7