## 编译环境 操作系统 * [ X] Windows 7/8/10 * [ ] macOS * [ ] Linux `若需勾选,请把[ ]改成[x]` Tex发行版 * [X ] TexLive `年份` * [ ] MikTeX `版本号` * [ ] CTeX `若需勾选,请把[ ]改成[x]` ## 我的问题 我想在表格下面加脚注,不用\multicolumn,采用tablenote的方法,tablenote需要使用threeparttable这个package,但是我还想将表格用resizebox缩小,这两个命令好像不能同时使用。 ``` \documentclass[a4paper,12pt]{article} \usepackage[flushleft]{threeparttable} \begin{document} \begin{table}[ht] \centering \begin{threeparttable} \caption{Title For My Table} \resizebox{0.95\columnwidth}{!}{ \begin{tabular}{ lccc } \hline\hline Independent Variable 1 & 0.0316 & 0.00186 & 0.0001 \\ & (0.0284) & (0.0256) & (0.0221) \\ Independent Variable 2 & 0.0226 & -0.0154& -0.0125 \\ & (0.00833) & (0.00887) & (0.0107) \\ Independent Variable 3 & 0.0180 & -0.00997 & -0.0245 \\ & (0.0122) & (0.00972) & (0.0255) \\ Independent Variable 4 & 0.0270& -0.0180& -0.0222 \\ & (0.0141) & (0.00915) & (0.0153) \\ \hline\hline \end{tabular} } \begin{tablenotes} \setlength\labelsep{0pt} \footnotesize \item Notes: I'm writing the notes and I want them to be aligned with the table \end{tablenotes} \end{threeparttable} \end{table} \end{document} ``` 那么如果我想在缩小表格的同时加脚注应该用什么命令呢?我试了用\begin{minipage}的方法,但是这个脚注加上去离上面的表格太近了,比如如下代码。 ``` \begin{table}[H] \centering \caption{The Effect of Selective High School on CEE Score Using Two Schools} \resizebox{0.95\columnwidth}{!}{ \begin{tabular}{ lccc } \hline\hline Independent Variable 1 & 0.0316 & 0.00186 & 0.0001 \\ & (0.0284) & (0.0256) & (0.0221) \\ Independent Variable 2 & 0.0226 & -0.0154& -0.0125 \\ & (0.00833) & (0.00887) & (0.0107) \\ Independent Variable 3 & 0.0180 & -0.00997 & -0.0245 \\ & (0.0122) & (0.00972) & (0.0255) \\ Independent Variable 4 & 0.0270& -0.0180& -0.0222 \\ & (0.0141) & (0.00915) & (0.0153) \\ \hline\hline \end{tabular} } \setlength\labelsep{1pt} \begin{minipage}{0.95\textwidth} {\footnotesize Notes: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \par} \end{minipage} \end{table}% ``` 所以应该怎么调整比较好呢?

2 回答2

2
``` \documentclass[a4paper,12pt]{article} \usepackage[flushleft]{threeparttable} \usepackage{graphicx} \newcommand\vm[1]{\raisebox{1.2ex}[0pt]{#1}} \begin{document} \begin{table}[ht] \centering \caption{Title For My Table} \small \begin{tabular}{r|l|l|l} \hline\hline & 0.0316 & 0.00186 & 0.0001 \\ \vm{Independent Variable 1}& (0.0284) & (0.0256) & (0.0221) \\ \hline & 0.0226 & -0.0154& -0.0125 \\ \vm{Independent Variable 2}& (0.00833) & (0.00887) & (0.0107) \\ \hline & 0.0180 & -0.00997 & -0.0245 \\ \vm{Independent Variable 3}& (0.0122) & (0.00972) & (0.0255) \\ \hline & 0.0270& -0.0180& -0.0222 \\ \vm{Independent Variable 4}& (0.0141) & (0.00915) & (0.0153) \\ \hline\hline \end{tabular} \vspace{5pt} \parbox{0.7\textwidth}{\footnotesize Notes: I'm writing the notes and I want them to be the tableI want them to be the tableI want them to be the tableI want them to be the table Notes: I'm writing the notes and I want them to be the tableI want them to be the tableI want them to be the tableI want them to be the table Notes: I'm writing the notes and I want them to be the tableI want them to be the tableI want them } \end{table} \end{document} ```
1
两个问题,第一个,`\resizebox`需要`graphicx`包,第二个,`\resizebox`是一个非`long`型的命令,所以它的参数无法接受一个表格的内容,如果是要缩放表格,可以这样 ``` \documentclass[a4paper,12pt]{article} \usepackage{graphicx} \usepackage[flushleft]{threeparttable} \usepackage[showframe]{geometry} \usepackage{ctex} \begin{document} \begin{table}[ht] \centering \begin{threeparttable} \caption{Title For My Table} {\zihao{-6} \begin{tabular}{ lccc } \hline\hline Independent Variable 1 & 0.0316 & 0.00186 & 0.0001 \\ & (0.0284) & (0.0256) & (0.0221) \\ Independent Variable 2 & 0.0226 & -0.0154& -0.0125 \\ & (0.00833) & (0.00887) & (0.0107) \\ Independent Variable 3 & 0.0180 & -0.00997 & -0.0245 \\ & (0.0122) & (0.00972) & (0.0255) \\ Independent Variable 4 & 0.0270& -0.0180& -0.0222 \\ & (0.0141) & (0.00915) & (0.0153) \\ \hline\hline \end{tabular} } \begin{tablenotes} \setlength\labelsep{0pt} \footnotesize \item Notes: I'm writing the notes and I want them to be aligned with the table \end{tablenotes} \end{threeparttable} \end{table} \end{document} ```

你的回答

请登录后回答

你的回答将会帮助更多人,请务必认真回答问题。