footnotesize 不适用于 longtable 和 Landscape

footnotesize 不适用于 longtable 和 Landscape

\footnotesize当我使用landscape&时,我可以开始工作longtable。但是,我的表位于landscape环境table-->longtable中,当我这样做时,我无法使\footnotesize工作。

以下是我的表格。我可以让标题出现在里面,footnotesize但不能出现在里面longtable

 \documentclass[12pt]{article}

 \usepackage{rotating}
 \usepackage{longtable}
 \usepackage{lscape}
 \usepackage{caption}
 \usepackage[margin=1in]{geometry}
 \usepackage{setspace}
 \setstretch{1}
 \usepackage{booktabs}


 \begin{document}

 \begin{landscape}
 \begin{table}[h]
  \caption{STATISTICS}

 \footnotesize

   \vspace{-2mm}

 THIS IS SOME TEXT THAT I NEED TO BE HERE.

  \vspace{-4mm}

 \end{table}
 \begin{footnotesize}
 \begin{longtable}{@{} l @{\extracolsep{\fill}} *{7}{c} @{}} 
 \toprule
 & \multicolumn{1}{c}{Text 1111111}
 & \multicolumn{1}{c}{Text 1111111}
 & \multicolumn{1}{c}{Text 1111111}
 & \multicolumn{1}{c}{Text 1111111}
 & \multicolumn{1}{c}{Text 1111111}
 & \multicolumn{1}{c}{Text 1111111}
 & \multicolumn{1}{c}{Text 1111111} \\
 \midrule
 \endfirsthead
 \multicolumn{5}{@{}l}{\emph{(continued)}} \\
 \toprule
 & \multicolumn{1}{c}{Text 1111111}
 & \multicolumn{1}{c}{Text 1111111}
 & \multicolumn{1}{c}{Text 1111111}
 & \multicolumn{1}{c}{Text 1111111}
 & \multicolumn{1}{c}{Text 1111111}
 & \multicolumn{1}{c}{Text 1111111}
 & \multicolumn{1}{c}{Text 1111111} \\
 \midrule
 \endhead
 \midrule[\heavyrulewidth]
 \multicolumn{8}{r@{}}{\emph{(continued)}}
 \endfoot
 \bottomrule
 \endlastfoot

 \multicolumn{4}{@{}l}{\underline{Unconditioning}} \\
 Constant                           & 0.073, 0.072 & 0.060, 0.068 & 0.117, 0.082           & 0.034, 0.055 & 0.059, -0.005 & -0.130, -0.025 & -0.116, -0.114 \\
                                    & (45) & (51) & (40)                                   & (28) & (32) & (43) & (16) \\
 Dummy\textsuperscript{a}           & -0.087, -0.051 & -0.219, -0.161 & -0.358, -0.333     & -1.803, -1.594 & -2.131, -0.899 & -1.030, -0.829 & -1.451, -1.193 \\
                                    & (14) & (10) & (117)                                  & (19) & (53) & (50) & (88) \\
 R-squared\textsuperscript{b}       & 0.002 & 0.003 & 0.004                                & 0.022 & 0.017 & 0.011 & 0.009 \\
 \\

 \multicolumn{4}{@{}l}{\underline{UNCOND}} \\
 Constant                         & 0.041, 0.042 & 0.028, 0.037 & 0.076, 0.046          & -0.007, 0.021 & 0.041, -0.012 & -0.125, -0.021 & -0.117, -0.114 \\
                                  & (31) & (32) & (23)                                  & (23) & (27) & (44) & (16) \\
 Dummy\textsuperscript{c} & 0.536, 0.465 & 0.755, 0.732 & 0.797, 0.761          & 0.910, 0.811 & 0.567, 0.395 & 0.628, 0.494 & 0.044, 0.054 \\
                                  & (245) & (287) & (403)                               & (303) & (258) & (281) & (32) \\
 Dummy                             & -0.032, -0.019 & -0.155, -0.098 & -0.197, -0.179    & -0.353, -0.282 & -1.341, -0.482 & -0.372, -0.217 & -1.451, -1.194 \\
                                   & (12) & (13) & (55)                                  & (18) & (58) & (51) & (88) \\
 R-squared                         & 0.065 & 0.119 & 0.15                                & 0.179 & 0.057 & 0.054 & 0.012 \\
 \\

 \multicolumn{4}{@{}l}{\underline{Unconditioning}} \\
  Constant                           & 0.040, 0.047 & 0.016, 0.034 & -0.025, -0.024   & 0.004, 0.021 & -0.007, -0.024 & -0.127, -0.024 & -0.146, -0.132 \\
                                    & (42) & (32) & (21)                              & (27) & (19) & (45) & (26) \\
 Dummy Dummy                     & 0.534, 0.472 & 0.636, 0.602 & 0.802, 0.764      & 0.706, 0.682 & 0.610, 0.401 & 0.600, 0.474 & 0.040, 0.056 \\
                                    & (241) & (280) & (404)                           & (280) & (268) & (268) & (31) \\
 Dummy\textsuperscript{d}   & 0.013, 0.013 & 0.008, 0.010 & -0.018, -0.013    & 0.011, 0.009 & 0.007, 0.001 & 0.024, 0.000 & 0.059, 0.066 \\
                                    & (18) & (29) & (19)                              & (24) & (21) & (33) & (39) \\
 Dummyyyyyyyyy*Dummy                & -0.003, -0.008 & 0.128, 0.071 & 0.020, 0.007    & 0.194, 0.100 & -0.108, -0.057 & 0.294, 0.144 & -0.155, -0.162 \\
                                    & (19) & (85) & (27)                              & (124) & (34) & (173) & (47) \\
 R-squared                          & 0.068 & 0.133 & 0.153                           & 0.206 & 0.058 & 0.062 & 0.014 \\
 \\


 \end{longtable}
 \end{footnotesize}
 \end{landscape}

 \vspace{1cm}


 \end{document} 

答案1

示例中的所有内容均为文本,\footnotesize除了:

  • 页码
  • 字幕文字

可以通过以下方式抑制页码\pagestyle{empty},并设置脚注大小的标题:

\captionsetup{font={footnotesize}}

该文件使用size选项12pt,编译后

\pagestyle{empty}
\captionsetup{font={footnotesize}}

在我获得仅两种字体之前\begin{document},在运行结束时列出pdflatex

  • cmr10.pfb(针对中的文本\footnotesize
  • cmr7.pfb(针对上标文本)

字体cmr12\normalsize存在。

因此,您为什么认为 中的字体longtable不在 中\footnotesize?或者真正的问题是,如何将标题放入 中\footnotesize

相关内容