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

开启伪粗导致嵌入 PDF 图片的字体显示异常 #192

Closed
zepinglee opened this issue May 12, 2018 · 1 comment
Closed

开启伪粗导致嵌入 PDF 图片的字体显示异常 #192

zepinglee opened this issue May 12, 2018 · 1 comment

Comments

@zepinglee
Copy link
Member

zepinglee commented May 12, 2018

《撰写手册》规定摘要的“关键词”三字、图表的标题要使用粗体宋体,然而 windows 的中易宋体没有粗体。从 3.0.9 版本开始,模板会启用伪粗字体,但是这会导致 pdf 插图的嵌入字体显示异常:

\begin{figure}[htbp]
  \begin{minipage}[t]{0.45\linewidth}
    \centering
    \includegraphics[width=6.5cm]{Chap3_R0amount}
    \caption{参数}
  \end{minipage}
  \hspace{1cm}
  \begin{minipage}[t]{0.45\linewidth}
    \centering
    \includegraphics[width=6.5cm]{Chap3_R0amount}
    \caption{参数}
  \end{minipage}
\end{figure}

编译的结果是:screen shot 2018-05-13 at 1 30 39 am

感谢张磊同学反馈,该问题已经反馈给 ctex/xeCJK 的开发者。(CTeX-org/ctex-kit#362

@zepinglee
Copy link
Member Author

根据 tex.stackexchange,这是 xetex 长久以来的一个 bug,只要一段使用伪粗字体的内容紧接着 \includegraphics 就会产生上述问题。暂时的解决方法是在中间插入一个白色的字符:

\begin{figure}[htbp]
  \centering
  {\color{white}.}
  \includegraphics{xxx}
  \caption{abc}
\end{figure}

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

1 participant