@TH. 展示了在表格中使用衬线数字的好方法:
有没有长表的等价物?因为无论是@tabular
还是都@longtable
没有给我长表中的排列数字。(由于我只会在附录中使用长表,因此在附录开始处全局设置内衬数字也是可以的(快速而粗略))
母语:
\documentclass{scrreprt}
\usepackage{longtable}
\usepackage{etoolbox}
\usepackage[sc,osf]{mathpazo}
\makeatletter
\preto\@tabular{\fontfamily{pplx}\selectfont}
\preto\@longtable{\fontfamily{pplx}\selectfont}
\makeatother
\begin{document}
text: 713
\begin{tabular}{c}
regular table\\
713
\end{tabular}
\begin{longtable}{c}
longtable\\
713
\end{longtable}
\end{document}
答案1
如果longtable
宏\LT@array
可以重新定义:
\documentclass{scrreprt}
\usepackage{longtable}
\usepackage{etoolbox}
\usepackage[sc,osf]{mathpazo}
\makeatletter
\preto\@tabular{\fontfamily{pplx}\selectfont}
\preto\LT@array{\fontfamily{pplx}\selectfont}
\makeatother
\begin{document}
text: 713
\begin{tabular}{c}
regular table\\
713
\end{tabular}
\begin{longtable}{c}
longtable\\
713
\end{longtable}
\end{document}