Giter Club home page Giter Club logo

obsidian-mathpad's People

Contributors

canna71 avatar kemosalamy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

obsidian-mathpad's Issues

Suggestion: Setting for adjusting decimal precision

My suggestion is to add a setting which allows you to change the amount of decimal places that are given in a numerical answer. This could be taken a few steps further and include a scientific mode to force display all results in scientific notation regardless of their order of magnitude.

This is an incredibly useful plugin and I am very grateful that you have created it!

Mobile Support

I was wondering what the current blocker is to having mobile support. I'd love to be able to use this on Obsidian Mobile.

Min & Max Functions

Thanks for your work on this. It is the best CAS solution I've seen for Obsidian. If you're still actively working on it, I think I found an issue regarding the rendering of min and max functions.

Issue: the min and max functions are rendering differently, depending on if parentheses are placed within the expression. Also, the first argument in the min function doesn't appear when parentheses are used and the functions are "nested". It does evaluate correctly, however.

Examples:
Min & Max Functions.md

Thanks and take care!

Suggestion: use another symbol for Mathpad expressions

Mathpad uses the same symbols as the Markdown inline code and code blocks use (the backtick ` for inline and triple backticks ``` for code block) to identify expressions that should be evaluated.

The problem is: suppose I want to write an inline code like x+3==?, that is NOT a Mathpad expression, and should NOT be rendered to LaTeX or evaluated. I just want to show the code inline.

That's impossible, because Mathpad will automatically render it as:
$$x+3=x+3$$

Suggestion: use another symbol for Mathpad expressions instead of the backtick `.
For example: @x+3==?@ instead of `x+3==?` and

@@@
  a:=10
  f(x):=x+3
  f(a)==?
@@@

instead of using triple backticks ```

Use in a website?

Hi there, I am the developer of ObsidianHtml. A user would like to export their vault to html, and asked if I could make their mathpad codeblocks appear as they do in Obsidian.

I see in the main.ts file a lot of integrations with Obsidian specific code, so I don't think using the main.js from your release directly will work.

Is this something that you would want to support?
I envision having a

<code class="mathpad">
plot(sin(x))
</code>

block, or even a div, and have mathpad do its thing on the contents. Either on page load or as a precompile step would work for our project.

If this is out of scope for you, then I completely understand as well!
Cheers.

Incompatibility with Obsidian memos plugin

Obisdian just freezes when trying to open Obsidian Memos (v1.9.7) while Mathpad (v0.8.14) plugin is enabled. It even don't crash, just permafreeze.

I found a workaround opening memos's window while mathpad is disabled and then enable it. It works well unless you try to reopen the memos's window, but just have to restart obsidian, disable mathpad, open memos and reenable mathpad.

I want to help to port to mobile. Nerdamer works

Hello,

I really like this plugin and I want to use it on my tablet, so today I decided to try to port it.
I did some tests by making a plugin that uses Nerdamer, as far as I've seen, it works on mobile no problem.

That's the only dependency I've seen while browsing the code.
Why did you make the library only desktop? Am I missing something?

Here is the repo with the plugin I made using Nerdamer: https://github.com/FBarrca/Nerdamer-Test/releases/tag/0.0.5

Suggestions for Plot engine

It's currently impossible to plot a function that has more than one value for $Y$ for each value of $X$ (for example, the circle function $y^2+x^2=25$ (or, in another form, $y = \pm \sqrt {25 - x^2}$

It would also be good if we could plot points.

Maybe Mathpad could plot it like Desmos does it. Something like `plot(y^2 + x^2 = 25)` and `plot( (3,2) )`.
image

Like

Suggestion: Slider for Variables

I would love to have some sort of slider for variables, so that the value can be manipulated in read mode.

I have something like a:=slider(from, to, [stepsize], [default value]) in mind.
So as an example you could do:

a:=slider(1, 10)
plot(x^a)=?

To have a plot that changes when the slider is used.

Compound variable names render oddly

thttog6str95mm:=9 renders as "tht6str95mm := 9" but continues to function as a regular variable. So the function works as expected but the variable name renders as multiplication. I assume that is a tokenization quirk and might be non repairable.

Odd behavior, incorrect solution

So I have a complicated quoting formula set I am working on. It has a ceil() in a previous section. When I divide by 60 I get zero, if I evaluate without the division I get 86.

2023-05-24 19_54_20-Window
2023-05-24 19_53_35-Window
If I remove the ceil function earlier on it begins working as expected, obviously with decimals.

Quotation.md

Evaluation not working in tables

Hi,

First of all, thanks for your great plugin!

I have the following issue, let us take the following simple code as an example, where I want to print the value of a variable.

`x:= 7001`

| Results |   Value  | 
| ------- | --- |
| Value of X   |    `x=?` |

Using this code variable x is not evaluated/ rendered. Instead, it just says 'x'. I found the same issue when using it inside Obsdian Callout Blocks.

Thank you for your time :-)

Error in Nerdamer coming through in Mathpad

First of all I want to express my thanks for providing the Mathpad plugin. I use it extensively and find it very useful, really.

Some week ago I discovered an issue where a positive decimal raised to the power of another decimal resulted to zero. As I understand you are using the Nerdamer development, I tested it at http://nerdamer.com and ran into the same erroneous result. I created an issue with together-science/nerdamer-prime#39. At nerdamer-prime the functionality of Nerdamer is somehow continued, bugs solved, etc. Also this bug was quickly solved by https://github.com/gunnarmein-ts.

Perhaps you are interested in incorporating this nerdamer-prime development into Mathpad, as it resolves some important bugs, including the one I raised. The developer from nerdamer-prime wrote to me, you can take contact anytime at [email protected].

Can I ask you to assess the possibility? Thanks upfront.

Possible plugin compatability feature

Several plugins, including data-view, use front-matter yamel to introduce variable usage. It would be neat, if variables made in the front-matter would be usable as though already declared in a block. This add the complexity though that some plugins, again like data-view, include ways of altering the front-matter declarations later in the document. [variable::newvalue]] in the case of data-view. and that would require recognition of data-view usage and accessing its variables rather than parsing on the part of this plugin. Just a thought.

Supportive of your efforts

I don't have an issue, just wanted you to know I find this plugin useful and support your continued work to improve it. Thanks.

Suggestion: separate settings "Prefer Block LaTeX" for codeblocks and inline code

We could have 2 separate options in Mathpad's settings:

  • Codeblock: Prefer Block LaTeX (ON/OFF)
  • Inline: Prefer Block LaTeX (ON/OFF)

I, for example, want to use block LaTeX only when I'm typing in a codeblock, therefore I'd use the first option ON.
When I'm typing inline code, I would like to render inline LaTeX by default, therefore I'd use the second option OFF

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.