Skip to content
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

长表格表头的公式导出时会乱码 #129

Open
moolawooda opened this issue Dec 31, 2023 · 2 comments
Open

长表格表头的公式导出时会乱码 #129

moolawooda opened this issue Dec 31, 2023 · 2 comments
Labels
invalid This doesn't seem right

Comments

@moolawooda
Copy link

moolawooda commented Dec 31, 2023

如果输入的表格特别长(比如50行),导出为pdf,表头如果有latex格式的数学公式就会乱码

比如:

| 1    | 11$A_x-B_y$22 | $\omega_x$ |
| ---- | ------------- | ---------- |
| 2    | 1             | 0.1        |
| 0    | 2             | 0.2        |
| 3    | 3             | 0.1        |
| 2    | 4             | 0.1        |
| 2    | 5             | 0.1        |

导出的结果如下图所示,表头公式正常:
图片

但对于特别长的表格,比如下面的,它在typora中显示正常:

| 1    | 11$A_x-B_y$22 | $\omega_x$ |
| ---- | --------- | ---- |
| 2    | 1 | 0.1 |
| 0    | 2 | 0.2 |
| 3    | 3 | 0.1 |
| 2    | 4 | 0.1 |
| 2    | 5 | 0.1 |
| 2    | 8 | 0.1 |
| 2    | 1 | 0.1 |
| 0    | 2 | 0.2 |
| 3    | 3 | 0.1 |
| 2    | 4 | 0.1 |
| 2    | 5 | 0.1 |
| 2    | 8 | 0.1 |
| 2    | 8 | 0.1 |
| 2    | 1 | 0.1 |
| 0    | 2 | 0.2 |
| 3    | 3 | 0.1 |
| 2    | 4 | 0.1 |
| 2    | 5 | 0.1 |
| 2    | 8 | 0.1 |
| 2    | 8 | 0.1 |
| 2    | 1 | 0.1 |
| 0    | 2 | 0.2 |
| 3    | 3 | 0.1 |
| 2    | 4 | 0.1 |
| 2    | 5 | 0.1 |
| 2    | 8 | 0.1 |
| 2    | 8 | 0.1 |
| 2    | 1 | 0.1 |
| 0    | 2 | 0.2 |
| 3    | 3 | 0.1 |
| 2    | 4 | 0.1 |
| 2    | 5 | 0.1 |
| 2    | 8 | 0.1 |
| 2    | 8 | 0.1 |
| 2    | 1 | 0.1 |
| 0    | 2 | 0.2 |
| 3    | 3 | 0.1 |
| 2    | 4 | 0.1 |
| 2    | 5 | 0.1 |
| 2    | 8 | 0.1 |
| 2    | 8 | 0.1 |
| 2    | 1 | 0.1 |
| 0    | 2 | 0.2 |
| 3    | 3 | 0.1 |
| 2    | 4 | 0.1 |
| 2    | 5 | 0.1 |
| 2    | 8 | 0.1 |
| 2    | 8 | 0.1 |

但是导出为pdf以后就会这样,表头的公式都变成乱码了(导出和打印为pdf都会如此):
图片

typora版本:1.7.6
latex主题版本:0.3.0
操作系统版本:win11 23h2 version 22631.2861

@moolawooda moolawooda added the bug ISSUE: Something isn't working label Dec 31, 2023
@Keldos-Li
Copy link
Owner

啊,我在我的Windows和macOS上都试了一下你的这个表格,导出好像都是正常的qwq
image

我感觉这应该不是我们主题的问题,如果这样乱码了,大概和Typora自己或者pandoc或者win有关,我想我们也解决不了……?不过你可以试试导出html在浏览器中打开再打印什么的。

@Keldos-Li Keldos-Li added invalid This doesn't seem right and removed bug ISSUE: Something isn't working labels Dec 31, 2023
@moolawooda
Copy link
Author

我自己测试是,表格跨页以后,第一页上的表头公式就会乱码,表格不跨页就没事。不过似乎是typora的问题,我发现换成别的主题也会乱码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants