![附录中的长表](https://linux22.com/image/343684/%E9%99%84%E5%BD%95%E4%B8%AD%E7%9A%84%E9%95%BF%E8%A1%A8.png)
我正在尝试将一个长表放在附录中。附录必须满足以下条件。
附录应显示为:
附录 A:标题 1
附录 B:标题 2
附录 3:标题 3
附录中的表格应按以下方式编号:
表 A1:表 A1 的标题(如果在附录 A 中)
表 A2:表 A2 的标题(如果它仍在附录 A 中)
表 B1:表 A2 的标题(如果仍在附录 B 中)
附录也应该从参考文献后的新页开始。
我在这里使用以下代码。
\documentclass[12pt, a4paper, twoside]{article}
\usepackage{tabulary}
\usepackage[para]{threeparttable}
\usepackage{longtable,booktabs,array}
\usepackage[toc,page]{appendix}
\begin{document}
\appendix
\section{Pre-Treatment Covariates}
\label{c}
\begin{longtable}{
l
>{\raggedright\arraybackslash}p{4.5cm}
>{\raggedright\arraybackslash}p{4.5cm}}%????[ \centering
\caption{Pre-Treatment Covariates for Calculating Propensity Scores\label{tab:covariates}}\\
\toprule
\textbf{Acronym} & \textbf{Variable Name} & \textbf{Description}
\endfirsthead
\multicolumn{3}{c}%
{{\bfseries \tablename\ \thetable{} -- continued from previous page}}\\
\textbf{Acronym} & \textbf{Variable Name} & \textbf{Description}
\endhead
\multicolumn{3}{r}{{Continued on next page}} \\
\endfoot
\endlastfoot
\midrule
\multicolumn{3}{c}{\textbf{DETERMINANTS OF SMS ISSUANCE }} \\
\midrule
\multicolumn{3}{l}{\textbf{Credit Risk}} \\
\midrule
RWATA & Risk Weighted Asset Ratio & Risk Weighted Assets / Total Assets \\
LLP & Loan Impairment & Loan Impairment Charges / Gross Loans \\
NPLs & Non-Performing Loans & NPLS / Total Loans \\
LLP & Loan Loss Provision & Loan Loss Provision / Total Loans \\
\midrule
\multicolumn{3}{l}{\textbf{Profitability }} \\
\midrule
NIM & Net Interest Margin & Net Interest Income / Total Earning Assets \\
ROA & Return on Assets & Operating Income / Total Assets \\
ROE & Return on Equity & Net Income / Total Equity \\
\midrule
\multicolumn{3}{l}{\textbf{Funding Structure and Cost }} \\
\midrule
LFD & Loans Funded by Deposits & Loans / Customer Deposits\% \\
FTD & Funding Through Deposits & Customer Deposits / Total Funding excel Derivatives\% \\
LFST & Loans Funded by Short Term Funding & Net Loans / Short Term Funding \\
LFLT & Loans Funded by Long Term Funding & Net Loans / Long Term Funding \\
FCTL & Funding Cost for Total Liabilities & Total Interest Expense / Total Liabilities \\
FCTD & Funding Cost for Total Deposits & Interest Expense on Deposits / Total Deposits \\
\midrule
\multicolumn{3}{l}{\textbf{Liquidity }} \\
\midrule
LAFST & Liquid Assets Funded by Short Term Funding & Liquid Assets / Short Term Funding \\
LAFLT & Liquid Assets Funded by Long Term Funding & Liquid Assets / Long Term Funding \\
Liq. R & Liquidity Ratio & Cash + Securities / Total Assets \\
\midrule
\multicolumn{3}{l}{\textbf{Capital Ratios}} \\
\midrule
ER & Equity Ratio & Total Equity / Total Assets \\
CAR & Capital Adequacy Ratio & (Tier 1 Capital + Tier 2 Capital) / Risk Weighted Assets \\
\midrule
\multicolumn{3}{c}{\textbf{LOAN PORTFOLIO}} \\
\midrule
LBR & Loans to Banks & Loans to Banks / Total Loans \\
RMLR & Residential Mortgage Loans Ratio & Residential Mortgage Loans / Total Loans \\
OMLR & Other Mortgage Loan Ratio & Other Mortgage Loan / Total Loans \\
CRLR & Consumer \& Retails Loans Ratio & Consumer \& Retails Loans / Total Loans \\
CCLR & Corporate \& Commercial Loans Ratio & Corporate \& Commercial Loans / Total Loans \\
OLR & Other Loans Ratio & Other Loans Ratio / Total Loans \\
LR & Loan Ratio & Total Loans / Total Assets \\
\midrule
\multicolumn{3}{c}{\textbf{INSTITUTIONAL CHARACTERISTICS }} \\
\midrule
\multicolumn{3}{l}{\textbf{Income and Cost Structure }} \\
\midrule
C/I & Cost / Income & Operating Cost / Operating Income \\
LInc.R & Loan Income Ratio & Interest Income on Loan / Total Loans \\
LIR & Loan Interest Ratio & Interest Income on Loans / Total Interest Income \\
OIR & Other Interest Ratio & Other Interest Income / Total Interest Income \\
IEDR & Interest Expense on Deposits Ratio & Interest Expense on Deposits / Total Interest Expense \\
OIER & Other Interest Expense Ratio & Other Interest Expense / Total Interest Expense \\
\midrule
\multicolumn{3}{l}{\textbf{Solvency }} \\
\midrule
D/E & Debt to Equity Ratio & Total Liabilities / Total Equity \\
D/A & Debt to Assets Ratio & Total Liabilities / Total Assets \\
ICR & Interest Coverage Ratio & EBIT / Total Interest Expense \\
\midrule
\multicolumn{3}{l}{\textbf{Other Institutional Characteristics }} \\
\midrule
AG & Assets Growth & Growth of Total Assets\% \\
LG & Loan Growth & Growth of Gross Loans\% \\
DPO & Dividend Payout & Total Dividends Paid / Net Income \\
Size & Size of Bank & Ln (Total Assets) \\
Rep & Reputation of Bank & Letter of Guarantees / Total Assets \\
COR & Charge Off Ratio & Net Charge Offs / Total Loans \\
\bottomrule
\end{longtable}%
\end{document}
答案1
由于您使用article
文档类,因此您需要手动为appendix
其中的 和 部分设置新页面。您还需要更改\thetable
哪些内容用于表格编号。
在下面的 MWE 中,我更改了您的 MWE:(i) 对于表,我使用ltablex
package which "join" features of
longtable and
taqbularx`。看看以下 MWE 是否可以接受:
\documentclass[12pt, a4paper, twoside]{article}
\usepackage{array,booktabs,longtable,tabularx}
\usepackage[toc,page]{appendix}
\usepackage{ltablex}% <-- added
\usepackage[margin=30mm]{geometry}% <-- added
\usepackage{showframe}
\renewcommand*\ShowFrameColor{\color{red}}
\begin{document}
\section{main text}
\begin{table}
\caption{table in main text}
\end{table}
\clearpage% <-- added
\appendix
\let\oldthesection\thesection% <-- added
\renewcommand\thetable{\oldthesection\arabic{table}}% <-- added
\renewcommand\thesection{Appendix \Alph{section}} % <-- added
\setcounter{table}{0} % <-- added
\section{Pre-Treatment Covariates}
\label{c}
{\setlength\tabcolsep{3pt}
\begin{tabularx}{\textwidth}{l>{\raggedright\arraybackslash}X
>{\raggedright\arraybackslash}X}
\caption{Pre-Treatment Covariates for Calculating Propensity Scores}
\label{tab:covariates}\\
\toprule
\textbf{Acronym} & \textbf{Variable Name} & \textbf{Description}
\endfirsthead
\caption{-- continued from previous page}\\
\toprule
\textbf{Acronym} & \textbf{Variable Name} & \textbf{Description}
\endhead
\bottomrule
\multicolumn{3}{r}{{Continued on next page}} \\
\endfoot
\bottomrule
\endlastfoot
\midrule
\multicolumn{3}{c}{\textbf{DETERMINANTS OF SMS ISSUANCE }} \\
\midrule
\multicolumn{3}{l}{\textbf{Credit Risk}} \\
\midrule
RWATA & Risk Weighted Asset Ratio & Risk Weighted Assets / Total Assets \\
LLP & Loan Impairment & Loan Impairment Charges / Gross Loans \\
NPLs & Non-Performing Loans & NPLS / Total Loans \\
LLP & Loan Loss Provision & Loan Loss Provision / Total Loans \\
\midrule
\multicolumn{3}{l}{\textbf{Profitability }} \\
\midrule
NIM & Net Interest Margin & Net Interest Income / Total Earning Assets \\
ROA & Return on Assets & Operating Income / Total Assets \\
ROE & Return on Equity & Net Income / Total Equity \\
\midrule
\multicolumn{3}{l}{\textbf{Funding Structure and Cost }} \\
\midrule
LFD & Loans Funded by Deposits & Loans / Customer Deposits\% \\
FTD & Funding Through Deposits & Customer Deposits / Total Funding excel Derivatives\% \\
LFST & Loans Funded by Short Term Funding & Net Loans / Short Term Funding \\
LFLT & Loans Funded by Long Term Funding & Net Loans / Long Term Funding \\
FCTL & Funding Cost for Total Liabilities & Total Interest Expense / Total Liabilities \\
FCTD & Funding Cost for Total Deposits & Interest Expense on Deposits / Total Deposits \\
\midrule
\multicolumn{3}{l}{\textbf{Liquidity }} \\
\midrule
LAFST & Liquid Assets Funded by Short Term Funding & Liquid Assets / Short Term Funding \\
LAFLT & Liquid Assets Funded by Long Term Funding & Liquid Assets / Long Term Funding \\
Liq. R & Liquidity Ratio & Cash + Securities / Total Assets \\
\midrule
\multicolumn{3}{l}{\textbf{Capital Ratios}} \\
\midrule
ER & Equity Ratio & Total Equity / Total Assets \\
CAR & Capital Adequacy Ratio & (Tier 1 Capital + Tier 2 Capital) / Risk Weighted Assets \\
\midrule
\multicolumn{3}{c}{\textbf{LOAN PORTFOLIO}} \\
\midrule
LBR & Loans to Banks & Loans to Banks / Total Loans \\
RMLR & Residential Mortgage Loans Ratio & Residential Mortgage Loans / Total Loans \\
OMLR & Other Mortgage Loan Ratio & Other Mortgage Loan / Total Loans \\
CRLR & Consumer \& Retails Loans Ratio & Consumer \& Retails Loans / Total Loans \\
CCLR & Corporate \& Commercial Loans Ratio & Corporate \& Commercial Loans / Total Loans \\
OLR & Other Loans Ratio & Other Loans Ratio / Total Loans \\
LR & Loan Ratio & Total Loans / Total Assets \\
\midrule
\multicolumn{3}{c}{\textbf{INSTITUTIONAL CHARACTERISTICS }} \\
\midrule
\multicolumn{3}{l}{\textbf{Income and Cost Structure }} \\
\midrule
C/I & Cost / Income & Operating Cost / Operating Income \\
LInc.R & Loan Income Ratio & Interest Income on Loan / Total Loans \\
LIR & Loan Interest Ratio & Interest Income on Loans / Total Interest Income \\
OIR & Other Interest Ratio & Other Interest Income / Total Interest Income \\
IEDR & Interest Expense on Deposits Ratio & Interest Expense on Deposits / Total Interest Expense \\
OIER & Other Interest Expense Ratio & Other Interest Expense / Total Interest Expense \\
\midrule
\multicolumn{3}{l}{\textbf{Solvency }} \\
\midrule
D/E & Debt to Equity Ratio & Total Liabilities / Total Equity \\
D/A & Debt to Assets Ratio & Total Liabilities / Total Assets \\
ICR & Interest Coverage Ratio & EBIT / Total Interest Expense \\
\midrule
\multicolumn{3}{l}{\textbf{Other Institutional Characteristics }} \\
\midrule
AG & Assets Growth & Growth of Total Assets\% \\
LG & Loan Growth & Growth of Gross Loans\% \\
DPO & Dividend Payout & Total Dividends Paid / Net Income \\
Size & Size of Bank & Ln (Total Assets) \\
Rep & Reputation of Bank & Letter of Guarantees / Total Assets \\
COR & Charge Off Ratio & Net Charge Offs / Total Loans
\end{tabularx}
}
\begin{table}[htb]
\caption{table in main text}
\end{table}
\clearpage
\section{Pre-Treatment Covariates}
\setcounter{table}{0}% <-- added
\begin{table}[htb]
\caption{table in main text}
\end{table}
\end{document}
编辑: 在 MWE 中添加了关于章节编号的(粗鲁的)解决方案。该解决方案假设附录中不会有小节。
编辑(2):
我改变了附录中的表格编号,使其以 开头A1
,并且继续连续,无论节:A2
,B3
等等。
注意:这种编号(在我看来)至少具有误导性。如果我看到表格,B3
那么我预计某处存在表格B1
,并且B2
...