raineszm / obsidian-latex-environments Goto Github PK
View Code? Open in Web Editor NEWQuickly insert and change latex environments within math blocks in Obsidian.
License: MIT License
Quickly insert and change latex environments within math blocks in Obsidian.
License: MIT License
If one starts with
$$
x^2
$$
$$
x + 2
\begin{array}
1&2&3\\
x&y&z
\end{array}
$$
with the cursor at the beginning of the line x+2
and executes the change environment action, the \\begin
command will be added to the beginning of the first math block and not the second.
Hi,
I have followed the instructions to install this plugin (both ways from Obsidian interface and by dezipping the plugin archive in the .plugin repository).
I have checked more than twice I had activated the plugin, but when I try to insert a LaTeX environment between $$ and $$ nothing happen. The defined shortkey won't prompt a menu and the three commands (insert, change, delete environment) are not in the commands list.
Have I make an error somewhere ?
My Obsidian version is v.0.13
Thank you for your help,
Regards
Damien
The community page wants the release name to be th same as the version in the package.json
We can't actually run unit tests against the full interactions, but perhaps we can at least get some useful testing by mocking the obsidian api.
Hi, friend, you make a useful plugin about math in obsidian. I love you. But I have a problem when I use it.
This is my latex.
$$\begin{aligned}
f(x) & =\lim\limits_{x \rightarrow 0^{+}}\left(\frac{2+\mathrm{e}^{\frac{1}{x}}}{1+\mathrm{e}^{\frac{4}{x}}}+\frac{\sin x}{|x|}\right)
& = \lim\limits_{x \rightarrow 0^{+}}\left[\frac{\mathrm{e}^{-\frac{1}{x}}\left(2+\mathrm{e}^{\frac{1}{x}}\right)}{\mathrm{e}^{-\frac{4}{x}}+1}+\frac{\sin x}{x}\right]
& = \lim\limits_{x \rightarrow 0^{+}} \frac{2 \mathrm{e}^{-\frac{4}{x}}+\mathrm{e}^{-\frac{3}{x}}}{\mathrm{e}^{-\frac{4}{x}}+1}+\lim\limits_{x \rightarrow 0^{+}} \frac{\sin x}{x} \text {, }
\end{aligned}
$$
And it doesn't work with live preview.
Look like this. Help me, I need you!
See the failing units test for the change action.
For some reason the selected text winds up outside the environment.
I am trying some environments from: https://latex.wikia.org/wiki/List_of_LaTeX_environments#:~:text=The%20paragraph%20environments%20are%20center,quote%2C%20verbatim%2C%20and%20verse and I do not think this plugin supports all (such as enumerate environment)? As such, what are the supported environments?
When deleting a surround environment, the user would expect the cursor to remain where it was relative to the contents of the environment, but instead the contents seem to shift with respect to the cursor.
Currently we detect if we're in a math block by inspected the codemirror mode at point to see if it's 'stex'. This only works if the 'stex' mode has been loaded.
The plugin is not working in the new update, the commands do not appear in the command pallete
I want to add some prooftree to the note. But it's not supported.
Is there any way to expand the environment? thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.