Code Monkey home page Code Monkey logo

calctex's Introduction

Calctex

An Obsidian plugin that automatically calculates the solution for your LaTeX formulas.

Usage

To calculate the solution for a formula, simply add a = sign after the formula and the solution will be automatically calculated and displayed. If you want to write the solution to the document, just click on the solution or press the Tab key.

Installation

Download it from the community plugins list OR

  1. Download the files from the latest release from the releases page.
  2. Put the files into <vault>/.obsidian/plugins/calctex.
  3. Reload Obsidian and enable the plugin in the settings.
  4. Enjoy!

calctex's People

Contributors

developer-mike avatar

Stargazers

 avatar Trócsányi Péter avatar a13ph avatar  avatar Eliot Hertenstein avatar  avatar  avatar

Watchers

 avatar

calctex's Issues

Suggestions for Enhancement

First of all i want to say that this is a greaat project which is exactly what i was looking for!
Obviously this is quite a young project so this may take a while. However here is my feedback:

  1. A demo video, or pictures or Markown text with examples on the Plugin Page of what this Plugin can calculate seems necessary.
  • Can it solve differential equations?
  • Can it solve for x?
  • Where are the limitations?
  1. The result is shown in Live Preview when i am inside the equation but its not shown outside nor in Outline Math Block. The Numerals Plugin can show this the whole time regardless whether or not your cursor is in the same line as the equation. Maybe this helps you solving this issue

  2. Changing the Color and Size of the Result would be great

  3. Some results are shown as a fraction. It would be good to insead show it as decimal or both at the same time separated with a differently colored symbol / for example.

  4. $(1+2*3)/6==$ gives the result "1.1\overline{6}"
    a) Only when i click on the result to add it to my document it renders it the right way "1,6periodic line". It would be good if the correct rendering would happen in the preview of the result.
    b) It would be good to have a setting which tells the calc to calculate till x decimal/ floating points. Otherwise it can use quite a lot which is generally better than to few.

Feature Request: Keyboard Shortcut to Insert Result

I mainly use Vim in Obsidian, so clicking on the equation to insert it into my LaTeX code isn't ideal. Would it be possible to add some sort of GitHub Copilot-style autocomplete, where the user can press tab (or some other key preferably) to insert the result of the calculation?

Documentation: Examples in Readme

Would be great to have some examples in the Readme! For example, where does the = sign go? In the latex or next to it? Does this work for double dollar $$ math environments? Does it work in editing mode, reading mode or both? I can't seem to get it to work right now unfortunately.

Plugin not installable

Hi @Developer-Mike

We have noticed that the latest version of your plugin cannot be installed currently.

This is due to the following reason:

  • The release name is not valid. Only numbers and dots are allowed.

We will remove this plugin from the community plugins directory if this issue is not fixed within 30 days.

  • The Obsidian Team

Feature Request: Evaluate fractions into decimal

First I just wanna say this plugin is absolutely amazing! Super lightweight, and exactly the workflow I wanted.

One feature request I have is to have the option for fractions to be evaluated into decimal, which I think would be more useful for physics or chemistry calculations. Example:

Doing 1770/135 = with the plugin right now would give 118/9. Instead, I think it could be cool to have the option for it to give 13.1

Maybe it could also have the option of choosing the number of significant figures. Another option is to have numbers greater than 100 or less than 0.01, for example, would be put in scientific notation)

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.