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

定义列表未加粗 #101

Closed
annProg opened this issue Jun 4, 2020 · 2 comments
Closed

定义列表未加粗 #101

annProg opened this issue Jun 4, 2020 · 2 comments

Comments

@annProg
Copy link

annProg commented Jun 4, 2020

自定义 mainfont 之后,定义列表没有加粗效果

\documentclass[cn]{elegantbook}
\setmainfont[]{Source Sans Pro}

\begin{document}
\begin{description}
\item[Linux]
Linux
\end{description}
\end{document}

image

去掉 \setmainfont[]{Source Sans Pro}之后,正常的效果:
image

@sikouhjw
Copy link
Contributor

sikouhjw commented Jun 5, 2020

用模板就不要改模板,如果要改,说明你可能需要的不是 ElegantBook

\documentclass{ctexart}
\usepackage{sourceserifpro}
\begin{document}
\begin{description}
\item[Linux]
Linux
\end{description}
\end{document}

还有,请分清什么叫无衬线,什么叫衬线,\setmainfont[]{Source Sans Pro} 完全没有起到作用,因为被 cls 的设置覆盖了,如果想用 \usepackage{sourcesanspro} 设置,除非你修改 description 的定义

@sikouhjw
Copy link
Contributor

sikouhjw commented Jun 5, 2020

注释

\RequirePackage{newtxtext}

然后按你的代码即可,后果自负

@annProg annProg closed this as completed Jun 5, 2020
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