![在 longtable 中使用内衬数字](https://linux22.com/image/255267/%E5%9C%A8%20longtable%20%E4%B8%AD%E4%BD%BF%E7%94%A8%E5%86%85%E8%A1%AC%E6%95%B0%E5%AD%97.png)
@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}