Closed Zeqiang-Lai closed 1 year ago
抱歉,查重的原理我并不清楚,也没有能力和时间进行调试。不少友校的模板也会遇到这个问题。显然,这并不是我们作为模板开发者能直接解决的。
确实是知乎说的这个问题,参考文献复制出来是乱码。
https://github.com/BIT-thesis/LaTeX-template 旧模板没有这个问题。
渲染正常,复制是乱码的话,可能是无意中替换为了非通用的字体。
那么可以尝试安装 windows 字体后,通过切换 \documentclass[..., ctex={fontset={windows}}]
来切换字体。
https://github.com/BITNP/BIThesis/discussions/317 目前感觉 macOS 遇到这个问题挺多的。
考虑到老的模板不知道因为那种原因,可能能绕过这个问题。我估计会尝试从老的模板再对比迁移一下标题部分的代码(但是显然这两天不太可能了)。
可否帮忙通过 PDF 阅读器看一下,字体有没有嵌入子集?
请问要怎么看呢. 这是我编译出来的参考文献 ref.pdf
确实是知乎说的这个问题,参考文献复制出来是乱码。
我确认一下,你是用 wps 复制出来发现是乱码?如果不是的话还请告知一下复现步骤
我没有adobe pdf,wps。我用的macos上的预览和pdf expert复制出来是乱码。
那看起来并不是人人都会遇到这个问题,我这边(我自己编译的)用「预览」复制出来是正常的。你的 mac 相关信息,texlive 版本信息可以提供一下吗?
或许可以尝试一下更新 TexLive
可能还是字体的问题吧?你的电脑是不是装了windows字体
macOS 13.3.1
TeX 3.141592653 (TeX Live 2022) kpathsea version 6.3.4 Copyright 2022 D.E. Knuth. There is NO warranty. Redistribution of this software is covered by the terms of both the TeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the TeX source. Primary author of TeX: D.E. Knuth.
我没有额外安装过任何字体。我这边现在走的应该是[宋体-黑]。看了一下你的应该也是。
和你 mac 版本一样,TeXLive 我是新装的。
建议首先升级到 2023。
然后尝试 \documentclass[..., ctex={fontset={macnew}}]
(感觉关系不大)
可以,2023 能正常复制了,建议在readme写个提示
可以,2023 能正常复制了,建议在readme写个提示
如果你有时间的话,能否麻烦你帮忙完成这个事情?GitHub 可以通过网站嵌入的 editor 直接编辑文本的。
可以的,发PR了
Fixed by: #331
发生了什么?
目前怀疑是 macos 系统编译下导致的,有同学用同样模板,使用windows编译暂无问题。可以帮忙确认一下问题吗?
你期望的结果
No response
问题复现的步骤
无
最小可复现用例或者截图
No response
操作系统或平台
macOS
LaTeX 发行版以及发行年份
No response
BIThesis 模板
No response
日志信息
No response