Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望增加数学公式的解析 比如极限的符号无法正常显示 比如 Latex [Request] #485

Closed
laike opened this issue Nov 20, 2023 · 6 comments · Fixed by lobehub/lobe-ui#168
Labels
🌠 Feature Request New feature or request | 特性与建议

Comments

@laike
Copy link
Contributor

laike commented Nov 20, 2023

🥰 需求描述 | Feature Description

希望增加数学公式的解析 比如极限的符号无法正常显示 比如 Latex

🧐 解决方案 | Proposed Solution

加入 latex markdown 插件

📝 补充信息 | Additional Information

No response
LobeChat_自定义助手_2023-11-20

@laike laike added the 🌠 Feature Request New feature or request | 特性与建议 label Nov 20, 2023
@lobehubbot
Copy link
Member

👀 @laike

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@laike laike changed the title 希望增加数学公式的解析 比如 Latex [Request] 希望增加数学公式的解析 比如极限的符号无法正常显示 比如 Latex [Request] Nov 20, 2023
@canisminor1990
Copy link
Member

canisminor1990 commented Nov 20, 2023

Latex需要标记才能识别

Screenshot_2023-11-20-20-15-14-891_com.android.chrome.jpg

以下是一段Markdown格式的LaTeX数学公式:

我是一个行内公式:$E=mc^2$

我是一个独立公式:
$$
\sum_{i=1}^{n} x_i = x_1 + x_2 + \ldots + x_n
$$

我是一个带有分式的公式:
$$
\frac{{n!}}{{k!(n-k)!}} = \binom{n}{k}
$$

我是一个带有上下标的公式:
$$
x^{2} + y^{2} = r^{2}
$$

我是一个带有积分符号的公式:
$$
\int_{a}^{b} f(x) \, dx
$$

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Latex requires tags to be recognized

The following is a LaTeX mathematical formula in Markdown format:

I am an inline formula: $E=mc^2$

I am an independent formula:
$$
\sum_{i=1}^{n} x_i = x_1 + x_2 + \ldots + x_n
$$

I'm a formula with a fraction:
$$
\frac{{n!}}{{k!(n-k)!}} = \binom{n}{k}
$$

I is a formula with superscript and subscript:
$$
x^{2} + y^{2} = r^{2}
$$

i is a formula with integral sign:
$$
\int_{a}^{b} f(x) \, dx
$$

@canisminor1990
Copy link
Member

你可在 prompt 中约定格式

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


You can agree on the format in prompt

@lobehubbot
Copy link
Member

@laike

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
🌠 Feature Request New feature or request | 特性与建议
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants