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

resizebox 导致表格后的字体变粗 #158

Closed
6 of 19 tasks
ZedongPeng opened this issue Apr 13, 2021 · 4 comments
Closed
6 of 19 tasks

resizebox 导致表格后的字体变粗 #158

ZedongPeng opened this issue Apr 13, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@ZedongPeng
Copy link

ZedongPeng commented Apr 13, 2021

所有如下信息都是必填项,包括截图和编译日志(有 LaTeX 经验的开发者可忽略此要求)。
缺失必要信息会导致本模板的开发者无法帮你定位问题。
任何缺失信息都有可能导致此问题被关闭且得不到任何解答。

系统信息

操作系统

  • Windows
  • MacOS
  • Linux/Docker
  • Overleaf

TeX套件

  • TeXLive 2020 或更新的版本
  • TeXLive 2019
  • TeXLive 2018 或更早的版本
  • MikTex

TeX Compiler

  • XeTeX
  • LuaTeX

zjuthesis

版本号:Commit ID: v6.4.3-7-gae48e26

Degree:

  • graduate
    • master
    • doctor
  • undergraduate

Major:

  • general
  • cs
  • isee
  • math
  • physics

编译日志

遇到的问题

使用resizebox导致表格之后的字体变粗,可见截图
相关Issue:#24 #134

我使用#24 中的解决方法加入

\AtBeginEnvironment{table}{\special{pdf:code q}}
\AtEndEnvironment{table}{\special{pdf:code Q}}

然后就会出现表格单独一页,且有部分问题内容缺失的情况,可见截图。

复现的例子可见

https://www.overleaf.com/read/rypfvnxgpfxj

截图

image

image

其他信息

@ZedongPeng ZedongPeng added the bug Something isn't working label Apr 13, 2021
@TheNetAdmin
Copy link
Owner

我本地编译无法复现,但使用 Overleaf 确实出现了你提到的这个问题,让我研究下具体怎么解决

@TheNetAdmin
Copy link
Owner

TheNetAdmin commented Apr 13, 2021

简单测试了一下,如果不使用 #24 指出的 \AtBeginEnvironment\AtEndEnvironment,直接插入 \special 到表格环境内的话应该就没有问题,我再测试一下如何修复

@TheNetAdmin
Copy link
Owner

TheNetAdmin commented Apr 13, 2021

我更新了一下代码,改用 \appto\preto 来插入 \special 到浮动体的头尾,可以尝试一下新代码还有没有这个问题

image

@ZedongPeng
Copy link
Author

嗯嗯,解决了,谢谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants