答案1
正如我在评论中指出的那样,我使用\sffamily
来设置关键字样式,并tabular
使用 来排列关键字。如果需要固定宽度的字体,则\ttfamily
可以使用 来代替\sffamily
。
\documentclass{article}
\begin{document}
\textit{keyword::} one of
{\centering\sffamily\tabcolsep=2.5ex\relax
\begin{tabular}{lllll}
abstract & as & base& bool& break\\
byte & case & catch & char & checked\\
class & const & continue & decimal & default\\
delegate & do & double & delse & enum\\
...&&&&\\
unsafe & ushort & using & virtual & void\\
volatile & while&&&
\end{tabular}\par}\smallskip
\noindent The following identifiers have special meaning in the syntactic grammar but they
are not keywords: \textsf{add} (\S17.7), \textsf{alias} (\S16.3),...
\end{document}