annProg / PanBook

Pandoc LaTeX,Epub模板,用于生成书籍,幻灯片(beamer),简历,论文等(cv, thesis, ebook,beamer)
BSD 3-Clause "New" or "Revised" License
263 stars 28 forks source link

Elegantbook定义列表(description list)未加粗 #38

Closed annProg closed 3 years ago

annProg commented 3 years ago

mainfont 字体问题

\setmainfont[]{Source Serif Pro}

删去,或者设置为其他字体

annProg commented 3 years ago

ctexbook 无此问题

annProg commented 3 years ago

不使用 Source serif pro,默认的字体不支持 Unicode 字符,商标 ® 符号乱码 image

annProg commented 3 years ago

定义列表未加粗是 newtxtext 导致的,换成 ctexbook 测试,可以复现

\documentclass[]{ctexbook}
\usepackage{newtxtext}
\setmainfont[]{Source Serif Pro}
\begin{document}
\begin{description}
\item[Linux]
Operation System
\end{description}
\end{document}
annProg commented 3 years ago

newtxtext 在前,定义列表不能加粗

\usepackage{newtxtext}
\setmainfont[]{Source Serif Pro}

newtxtext 在后,商标符号 ® 乱码

\setmainfont[]{Source Serif Pro}
\usepackage{newtxtext}
annProg commented 3 years ago

解决方案

\makeatletter
\@namedef{ver@newtxtext.sty}{9999/99/99}
\makeatother
\documentclass[cn]{elegantbook}
\setmainfont{Source Serif Pro}
\begin{document}
\begin{description}
\item[Linux®]
Operation System
\end{description}
\end{document}

参考:https://tex.stackexchange.com/questions/39415/unload-a-latex-package