Skip to content

Commit

Permalink
doc: font shape warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
YDX-2147483647 committed Apr 3, 2024
1 parent 2d300f1 commit 773c27c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/reading-report/chapters/1_chapter1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ \section{字体效果表格}
楷体 & {\kaishu{}楷书} & \textbf{\kaishu{}楷书粗体} & \textit{\kaishu{}斜体楷体} & \colorbox{gray}{\textbf{\textit{\kaishu{}楷书粗斜体}}} \\
Serif(Roman/Normal) & Regular & \textbf{Bold} & \textit{Italic} & \textbf{\textit{Bold Italic}} \\
Sans Serif & \textsf{Regular} & \textbf{\textsf{Bold}} & \textit{\textsf{Bold}} & \textbf{\textit{\textsf{Bold}}} \\
% 有些字体缺少特定变体,LaTeX会抛出警告,同时尽量替换为相近变体。
% 若编译结果能接受,可忽略之。
% 例如此处Typewriter代表的Latin Modern Sans Typewriter(lmtt)字体没有bold extended italic(bx/it)变体,
% 所以`\textbf{\textit{\texttt{…}}}`会被替换为bold slant(b/sl)变体,并引发如下警告。(其中TU指字体编码)
% Font shape `TU/lmtt/bx/it' in size <…> not available. Font shape `TU/lmtt/b/sl' tried instead.
Typewriter & \texttt{Regular} & \textbf{\texttt{Bold}} & \textit{\texttt{Bold}} & \textbf{\textit{\texttt{Bold}}} \\
Math & $\mathnormal{Regular} \mathrm{Roman}$ & $\mathbf{Bold}$ & $\mathit{Italic}$ & $\mathbf{\mathit{Bold Italic}}$ \\ \bottomrule
\end{tabular}
Expand Down
5 changes: 5 additions & 0 deletions templates/undergraduate-thesis/chapters/1_chapter1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ \section{字体效果表格}
楷体 & {\kaishu{}楷书} & \textbf{\kaishu{}楷书粗体} & \textit{\kaishu{}斜体楷体} & \colorbox{gray}{\textbf{\textit{\kaishu{}楷书粗斜体}}} \\
Serif(Roman/Normal) & Regular & \textbf{Bold} & \textit{Italic} & \textbf{\textit{Bold Italic}} \\
Sans Serif & \textsf{Regular} & \textbf{\textsf{Bold}} & \textit{\textsf{Bold}} & \textbf{\textit{\textsf{Bold}}} \\
% 有些字体缺少特定变体,LaTeX会抛出警告,同时尽量替换为相近变体。
% 若编译结果能接受,可忽略之。
% 例如此处Typewriter代表的Latin Modern Sans Typewriter(lmtt)字体没有bold extended italic(bx/it)变体,
% 所以`\textbf{\textit{\texttt{…}}}`会被替换为bold slant(b/sl)变体,并引发如下警告。(其中TU指字体编码)
% Font shape `TU/lmtt/bx/it' in size <…> not available. Font shape `TU/lmtt/b/sl' tried instead.
Typewriter & \texttt{Regular} & \textbf{\texttt{Bold}} & \textit{\texttt{Bold}} & \textbf{\textit{\texttt{Bold}}} \\
Math & $\mathnormal{Regular} \mathrm{Roman}$ & $\mathbf{Bold}$ & $\mathit{Italic}$ & $\mathbf{\mathit{Bold Italic}}$ \\ \bottomrule
\end{tabular}
Expand Down

0 comments on commit 773c27c

Please sign in to comment.