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后,表格后的文字全部变为加粗 #251

Closed
ustcjerry opened this issue Apr 11, 2020 · 7 comments
Closed

Comments

@ustcjerry
Copy link

ustcjerry commented Apr 11, 2020

编译环境

  • 编译的系统:Windows 10
  • TeX 发行版:TeX Live 2019
  • 模板类型:doctor
  • 模板版本:最新master版本

描述问题

因为表格过长,因此想利用\resizebox自动缩放表格,表格可以正常缩放,但是缩放后表格之后的正常文本全部变为粗体。

截图

捕获

复现上述问题的代码:

\documentclass[degree=doctor]{ustcthesis}
\begin{document}

\begin{table}[htb]
  \centering\small
  \caption{表号和表题在表的正上方}
  \label{tab:exampletable}
  	\resizebox{\textwidth}{!}{  %%%%%%
  \begin{tabular}{cl}
    \toprule
    类型   & 描述                                       \\
    \midrule
    挂线表 & 挂线表也称系统表、组织表,用于表现系统结构 \\
    无线表 & 无线表一般用于设备配置单、技术参数列表等   \\
    卡线表 & 卡线表有完全表,不完全表和三线表三种       \\
    \bottomrule
  \end{tabular}
}   %%%%%%%%
  \note{注:表注分两种,第一种是对全表的注释,用不加阿拉伯数字排在表的下边,
    前面加“注:”;第二种是和表内的某处文字或数字相呼应的注,
    在表里面用带圈的阿拉伯数字在右上角标出,然后在表下面用同样的圈码注出来}
\end{table}

编制表格应简单明了,表达一致,明晰易懂,表文呼应、内容一致。
排版时表格字号略小,或变换字体,尽量不分页,尽量不跨节。
表格太大需要转页时,需要在续表上方注明“续表”,表头页应重复排出。

\end{document}
@zepinglee
Copy link
Member

在 mac 下设置 fontset = windows 并未复现该问题(TeX Live 2020)。

感觉是 xdvipdfmx 的 bug,建议升级再 xetex、dvipdfmx 试试。或者换带粗体的字体。

@ustcjerry
Copy link
Author

全新安装texlive2020 后还是同样问题,但是如果在缩放后的表格后,再放一个未缩放的表格,那么后续的文字就正常

\begin{table}[htb]
  \centering\small
  \caption{表号和表题在表的正上方}
  \label{tab:exampletable}
  	\resizebox{\textwidth}{!}{  %%%%%%
  \begin{tabular}{cl}
    \toprule
    类型   & 描述                                       \\
    \midrule
    挂线表 & 挂线表也称系统表、组织表,用于表现系统结构 \\
    无线表 & 无线表一般用于设备配置单、技术参数列表等   \\
    卡线表 & 卡线表有完全表,不完全表和三线表三种       \\
    \bottomrule
  \end{tabular}
}   %%%%%%%%
  \note{注:表注分两种,第一种是对全表的注释,用不加阿拉伯数字排在表的下边,
    前面加“注:”;第二种是和表内的某处文字或数字相呼应的注,
    在表里面用带圈的阿拉伯数字在右上角标出,然后在表下面用同样的圈码注出来}
\end{table}

\begin{table}[htb]
	\centering\small
	\caption{表号和表题在表的正上方}
	\label{tab:exampletable2}

		\begin{tabular}{cl}
			\toprule
			类型   & 描述                                       \\
			\midrule
			挂线表 & 挂线表也称系统表、组织表,用于表现系统结构 \\
			无线表 & 无线表一般用于设备配置单、技术参数列表等   \\
			卡线表 & 卡线表有完全表,不完全表和三线表三种       \\
			\bottomrule
		\end{tabular}

	\note{注:表注分两种,第一种是对全表的注释,用不加阿拉伯数字排在表的下边,
		前面加“注:”;第二种是和表内的某处文字或数字相呼应的注,
		在表里面用带圈的阿拉伯数字在右上角标出,然后在表下面用同样的圈码注出来}
\end{table}

编制表格应简单明了,表达一致,明晰易懂,表文呼应、内容一致。
排版时表格字号略小,或变换字体,尽量不分页,尽量不跨节。
表格太大需要转页时,需要在续表上方注明“续表”,表头页应重复排出。


捕获2

@ustcjerry
Copy link
Author

ustcjerry commented Apr 12, 2020

表格caption加粗设置和resizebox冲突?
另外,这个问题在其他模板中没有发生,比如IEEE,ELSEVIER提供的论文模板

@zepinglee
Copy link
Member

IEEE 模板的字体有粗体,不像 Windows 下的中易宋体必须用伪粗。

@zepinglee
Copy link
Member

类似的 issue #192

@ustcjerry
Copy link
Author

在caption最后插入白块{\color{white}.} 问题解决

@zepinglee
Copy link
Member

参考 CTeX-org/ctex-kit#509

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants