Giter Site home page Giter Site logo

Improve HTML math clipping about siyuan HOT 4 CLOSED

TCOTC avatar TCOTC commented on July 30, 2024 1
Improve HTML math clipping

from siyuan.

Comments (4)

88250 avatar 88250 commented on July 30, 2024 1

我测了下用 chatgpt 的复制按钮复制出来的是上述形式:

image

因为语法标记符换成 \(\[ 了这个无法解析,否则会和转义符冲突。

稍后会改进对 chatgpt 网页复制粘贴公式的支持,直接复制粘贴就可以了:

image

from siyuan.

88250 avatar 88250 commented on July 30, 2024

公式文本是从哪里来的,剪藏还是?

from siyuan.

TCOTC avatar TCOTC commented on July 30, 2024

之前群里看到的:

01

image

e2ca656f260c5afc469eaf7197ff1fa6

02

d55392b51a95985c41be01a885baf232

比如我复制出来是这样的:

# 新的聊天

## 用户:
给我几个数学公式

## ChatGPT:
当然可以。以下是几个不同数学领域的基本公式:

1. 代数:
   - 二次方程求根公式:对于方程 \(ax^2 + bx + c = 0\),其解为 \(x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\)。

2. 几何:
   - 圆的面积公式:\(A = \pi r^2\),其中 \(A\) 是面积,\(r\) 是半径。
   - 三角形面积公式:\(A = \frac{1}{2}bh\),其中 \(b\) 是底边长,\(h\) 是高。

3. 微积分:
   - 导数定义:\(f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}\)。
   - 积分定义:\(\int_a^b f(x) \, dx = \lim_{n \to \infty} \sum_{i=1}^n f(x_i^*) \Delta x\),其中 \(x_i^*\) 是区间 \([x_{i-1}, x_i]\) 中的任意一点,\(\Delta x = \frac{b-a}{n}\)。

4. 概率统计:
   - 正态分布的概率密度函数:\(f(x) = \frac{1}{\sqrt{2\pi}\sigma} e^{-\frac{(x-\mu)^2}{2\sigma^2}}\),其中 \(\mu\) 是均值,\(\sigma\) 是标准差。
   - 二项分布的概率质量函数:\(P(X=k) = \binom{n}{k} p^k (1-p)^{n-k}\),其中 \(n\) 是试验次数,\(k\) 是成功的次数,\(p\) 是每次试验成功的概率。

5. 线性代数:
   - 矩阵乘法:如果 \(A\) 是一个 \(m \times n\) 矩阵,\(B\) 是一个 \(n \times p\) 矩阵,那么它们的乘积 \(C = AB\) 是一个 \(m \times p\) 矩阵,其中 \(C_{ij} = \sum_{k=1}^n A_{ik} B_{kj}\)。

这些公式覆盖了数学的一些基础领域,从代数到微积分,再到概率统计和线性代数。数学是一个广泛的领域,还有许多其他类型的公式和定理。

from siyuan.

TCOTC avatar TCOTC commented on July 30, 2024

我这里也没有相关的网页,不知道剪藏出来的有没有问题。但至少粘贴是不能直接变为公式的

from siyuan.

Related Issues (20)

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.