# 数学公式～基本可用

**URL:** <https://forum.freemdict.com/t/topic/21317>\
**Category:** 软件经验交流展望\
**Tags:** 数学\
**Created:** [2023 年5 月 19 日 09:35 UTC](https://forum.freemdict.com/t/topic/21317 "2023-05-19T09:35:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

作者： ![ylxdxx](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/y/b2d939/32.png) [@ylxdxx](https://forum.freemdict.com/u/ylxdxx)\
发布日期： [2023 年5 月 19 日 09:35 UTC](https://forum.freemdict.com/t/topic/21317/1 "2023-05-19T09:35:36Z")

</div>

在理科的日常使用中，离不开各式各样的数学公式，利用[此库](https://github.com/ronkok/Temml)，基本实现了各种数学公式的支持「LaTeX」

下面是效果演示：

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/7/3/732d4add1796272dc32ac6f89b92b2bdf94d16f4.png)

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/3/9/3954d501d4946b7458fb22e31dd253b17b031d41.png)

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/8/1/81d392bd9be18e95e046afc9b373b8479f81b387.png)

---

<div class="post-metadata">

作者： ![slbtty](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/slbtty/32/19175_2.png) [@slbtty](https://forum.freemdict.com/u/slbtty)\
发布日期： [2023 年5 月 19 日 14:34 UTC](https://forum.freemdict.com/t/topic/21317/2 "2023-05-19T14:34:50Z")

</div>

mathml 是 chromium 109 的功能，之前的版本支持不了复杂一点的公式 layout，下一个 qt 版本 6.6 包含 chromium \> 109 的时候会显示地更好看一些。

不过 anyway，pandoc 有 webtex，从一个网站上转换 latex 成图片，

```bash
bash -c "pandoc <(echo '%GDWORD%') -f markdown --webtex"

```

可以简易地预览公式 `:)`

* * *

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/d/f/df50fb9f5eca0c71ce6501d8bc84316058444f0c.png)

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/2/2/2277e6fa30d5fed35b2c42fa96c374c36e93bfbc.png)

---

<div class="post-metadata">

作者： ![ylxdxx](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/y/b2d939/32.png) [@ylxdxx](https://forum.freemdict.com/u/ylxdxx)\
发布日期： [2023 年5 月 20 日 07:06 UTC](https://forum.freemdict.com/t/topic/21317/3 "2023-05-20T07:06:00Z")

</div>

有时需有在离线环境下使用，之前考虑过在本地转换成图片再插入，但感觉图片始终欠了点意思，试过MathJax，但3点几的版本从某个版本后调用就出问题，初期的版本有一些bug。

Qt 5.15.8对mathml的支持还行「已知一些上标的间距有问题，火狐对mathml支持最好」

![image](https://forumcdn.freemdict.com/uploads/default/original/3X/1/7/173dacc9616f8959ff4023d97220acdb079bdd56.png)

![image](https://forumcdn.freemdict.com/uploads/default/original/3X/7/8/781e7bf3be6dd41d1d27074d58d7189a5c1f8893.png)

---

<div class="post-metadata">

作者： ![shiruxue](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@shiruxue](https://forum.freemdict.com/u/shiruxue)\
发布日期： [2023 年5 月 20 日 11:09 UTC](https://forum.freemdict.com/t/topic/21317/4 "2023-05-20T11:09:02Z")

</div>

请问在欧路词典里怎么用？

---

<div class="post-metadata">

作者： ![ylxdxx](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/y/b2d939/32.png) [@ylxdxx](https://forum.freemdict.com/u/ylxdxx)\
发布日期： [2023 年5 月 21 日 10:10 UTC](https://forum.freemdict.com/t/topic/21317/5 "2023-05-21T10:10:40Z")

</div>

在词典的制作中，利用前面提到的工具，将LaTeX公式转换为MathML公式后，再插入到词典的内容中。  
至于欧路词典的显示效果如何，未知
