
我的程式碼如下:
\RequirePackage{luatex85}
\documentclass[hyper,7x9]{times}
\usepackage{lipsum}
\newsavebox\foobox
\newcommand{\slantbox}[2][.2]{\mbox{%
\sbox{\foobox}{#2}%
\hskip\wd\foobox
\pdfsave
\pdfsetmatrix{1 0 #1 1}%
\llap{\usebox{\foobox}}%
\pdfrestore
}}
\newcommand{\sfbfit}[1]{\slantbox{#1}}%
\makeatother
\begin{document}
\tableofcontents
\chapter{Test \sfbfit{N}-count}
\lipsum[1-10]
\end{document}
如果我刪除了,\sfbfit
那麼一切正常,請提出問題所在。
所有與類文件相關的東西都可以在https://mitpress.mit.edu/latex-and-tex-guidelines
我想在章節標題中保留該字符N
,bold-italic
但在該特定字體Syntax
系列中bold-italic
不可用,所以我製作了假粗體斜體,如果我在章節標題中給出該標籤,則會出現一些錯誤,這是我的問題,請告知我的程式碼出了什麼問題。
答案1
修改標籤\@chapter
解決了問題...感謝dalief