Comments (4)
我测了下用 chatgpt 的复制按钮复制出来的是上述形式:
因为语法标记符换成 \(
和 \[
了这个无法解析,否则会和转义符冲突。
稍后会改进对 chatgpt 网页复制粘贴公式的支持,直接复制粘贴就可以了:
from siyuan.
公式文本是从哪里来的,剪藏还是?
from siyuan.
之前群里看到的:
01
02
比如我复制出来是这样的:
# 新的聊天
## 用户:
给我几个数学公式
## 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.
我这里也没有相关的网页,不知道剪藏出来的有没有问题。但至少粘贴是不能直接变为公式的
from siyuan.
Related Issues (20)
- 以独立文件的形式储存代码片段的片段 HOT 7
- 移动端支持发布服务
- 在非聚焦状态下,块标菜单应该隐藏 `聚焦到上层` 选项
- 改进块标菜单
- 改进宽度菜单
- 希望点击文档树空白区域时能取消选中已选中的文档
- 文章图标能否支持base64编码以及外链图片? HOT 1
- 拖动多选块时不应选中文本
- 快捷键搜索问题
- Search with `search engine` in pdf reader
- 嵌入块更新不及时
- 希望思源笔记的笔记本展示效果能够做成和语雀app的知识库一样 HOT 1
- 相同文档分屏时,点击大纲标题会使左侧的文档跳转到开头
- 标签搜索条件能否支持保存设置 HOT 3
- Improve database date filed sorting HOT 2
- 导出预览发表微信公众号文章无法保留格式
- 代码块末尾多余的换行符
- 退出聚焦时,如果聚焦的块不存在,文档会被关闭
- Protyle支持按照多个id进行渲染 HOT 1
- 聚焦后分屏,内容块不同步
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from siyuan.