A4 페이지 가독성을 위한 LaTeX 테이블 형식

A4 페이지 가독성을 위한 LaTeX 테이블 형식

텍스트를 계속 읽을 수 있도록 A4 크기의 단일 페이지에 문서에 표를 포함하려고 합니다. \scalebox를 사용하려고 시도했지만 결과적으로 텍스트가 너무 작아지고 상자의 너비와 높이가 변경되었습니다. 저는 LaTeX를 처음 접했기 때문에 약간 어려움을 겪고 있으며 이를 달성하는 방법에 대해 제공할 수 있는 제안이나 지침에 감사드립니다. 감사합니다!

\tiny
\begin{table}[!htbp] \centering
\begin{adjustbox}{width=\textwidth}
\begin{tabular}{@{\extracolsep{0pt}}  llllllllllllllllllllllllllllllllllllllllll} 
\\[-1.8ex]\hline                    
\hline \\[-1.8ex] 
\textbf{Monetary Policy} \\
1) Monetary Authority  Loans Through the Asset Backed Commercial Paper Money \\  Market Mutual Fund Liquidity Facility  AMLF  and Money Market Mutual Fund \\ Liquidity Facility  MMLF   Asset  Level Lag 1 \\ 
2) Monetary Authority  Depository Institution Loans N E C  to Other Financial Business \\ Commercial Paper Funding Facility LLC   Asset  Transactions Lag 1 \\

\textbf{International Finance - Government} \\
1) Rest of the World  U S  Government Loans Excluding Capital Subscriptions and \\ Contributions to International Financial Institutions and the IMF  Liability  Revaluation Lag 0 \\ 
2) Rest of the World  Other U S  Reserve Assets  Other Claims  Liability  Transactions Lag 0 \\ 
3) Rest of the World  U S  Government Loans Excluding Capital Subscriptions and \\ Contributions to International Financial Institutions and the IMF  Liability  Revaluation Lag 1 \\ 
4) Rest of the World  U S  Government Loans Excluding Capital Subscriptions and \\ Contributions to International Financial Institutions and the IMF  Liability  Revaluation Lag 4 \\ 
5) Rest of the World  Other U S  Reserve Assets  Other Claims  Liability  Revaluation Lag 0 \\ 

\textbf{Domestic Finance - Private} \\ 
1) Government Sponsored Enterprises  Equity Capital of Farm Credit System  Transactions Lag 3 \\ 
2) Pension Funds  Corporate Equities  Asset  Transactions Lag 2 \\ 
3) Security Brokers and Dealers  Payables to Customer and Rest of the World \\ Noncustomers  Free Credit  Margin Deposits  and Other Payables   Liability  \\ Transactions Lag 4 \\ 
4) Government Sponsored Enterprises  Corporate Equities Held by Freddie Mac  Asset \\  Level Lag 0 \\ 
5) Private Depository Institutions  Total Time and Savings Deposits  Liability  \\ Transactions Lag 1 \\ 
6) Nonprofit Organizations  Municipal Securities  Sum of Holders   Liability  FWTW   \\ Transactions Lag 4 \\ 
7) Other Financial Corporations and Insurance Companies and Pension Funds  Net \\ Claims on Nonfinancial Businesses and Households and Nonprofit Organizations  \\ Asset  FWTW   Transactions Lag 4 \\ 

\textbf{Recession} \\
1) Government Sponsored Enterprises  Equity Capital of Farm Credit System  Transactions Lag 4 \\ 
2) NBER based Recession Indicators for the United States from the Period following \\ the Peak through the Trough Lag 2 \\ 
3) NBER based Recession Indicators for the United States from the Peak through the \\ Period preceding the Trough Lag 3 \\ 
4) OECD based Recession Indicators for the United States from the Peak through the \\ Trough Lag 2 \\ 
5) OECD based Recession Indicators for the United States from the Peak through the Trough 1 Lag 2 \\ 

\textbf{Unemployment and Wages} \\
1) Employment Level   Agriculture and Related Industries  Wage and Salary Workers Lag 1 \\ 
2) Unemployment Rate   Nonagriculture  Private Wage and Salary Workers Lag 3 \\ 

\textbf{Domestic Finance - Government} \\
1) State and Local Government Employee Defined Benefit Retirement Funds  Total Time \\ and Savings Deposits  Asset  Transactions Lag 0 \\ 
2) State and Local Government Employee Defined Benefit Retirement Funds  Total Time \\ and Savings Deposits  Asset  Transactions Lag 1 \\ 
3) Total Consumer Credit Owned by Depository Institutions  Flow Lag 1 \\ 
4) Domestic Financial Sectors  Net Saving Including Foreign Earnings Retained Abroad \\ and CCAdj Less Net Capital Transfers Paid  Other Than for Financial Stabilization \\ Program   Transactions Lag 1 \\ 
5) General Government  Other Accounts Payable Including SDR Allocations  Liability  \\ IMA   Revaluation Lag 4 \\ 
6) State and Local Governments  Foreign Bonds  Asset  FWTW   Transactions Lag 2 \\ 
7) Domestic Financial Sectors  Net Saving Including Foreign Earnings Retained Abroad \\ and CCAdj Less Net Capital Transfers Paid  Other Than for Financial Stabilization \\ Program   Transactions Lag 2 \\ 

\textbf{International Finance - Private} \\
1) Households and Nonprofit Organizations  Commercial and Multifamily Residential \\ Mortgages  Asset  Transactions Lag 1 \\ 
2) Rest of the World  Corporate Bonds Issued by Netherlands Antillean Financial \\ Subsidiaries of U S  Corporations  Asset  Revaluation Lag 4 \\ 
3) Households and Nonprofit Organizations  Commercial and Multifamily Residential \\ Mortgages  Asset  Transactions Lag 2 \\ 
4) Pension Funds  Security Repurchase Agreements Issued by the Rest of the World  \\ Asset  FWTW   Revaluation Lag 4 \\ 
5) Domestic Financial Sectors  Insurance  Pension and Standardized Guarantee Schemes  \\ Asset  IMA   Revaluation Lag 4 \\ 
6) Rest of the World  Debt Securities and Negotiable Certificates of Deposit Issued \\ by Financial Corporations  Asset  FWTW   Transactions Lag 1 \\ 
7) Private Pension Funds  Security Repurchase Agreements  Asset  Transactions Lag 3 \\ 
8) Private Pension Funds  Security Repurchase Agreements  Asset  Transactions Lag 2 \\ 
9) Holding Companies  Security Repurchase Agreements Issued by the Rest of the World \\  Asset  FWTW   Transactions Lag 0 \\ 
10) Rest of the World  Corporate Bonds Issued by Netherlands Antillean Financial \\ Subsidiaries of U S  Corporations  Asset  Transactions Lag 0 \\ 

\textbf{Housing and Mortgages} \\
1) Federal Government  One to Four Family Residential Mortgages Held by RTC  Asset \\ Level Lag 1 \\ 
2) Federal Government  One to Four Family Residential Mortgages  Asset  Transactions \\ Lag 4 \\ 
3) Federal Government  One to Four Family Residential Mortgages Held by Public Housing \\ Administration  PHA   Asset  Transactions Lag 4 \\ 
4) Federal Government  One to Four Family Residential Mortgages Held by RTC  Asset \\ Level Lag 3 \\ 
\hline \\[-1.8ex] 
\end{tabular} 
\end{adjustbox}
\caption{Selected economic variables by SCAD regression} 
\end{table}

답변1

{...}그 뒤에 나오는 것은 열 \begin{tabular}사양입니다. 이는 lateX에게 테이블에 어떤 열이 올 것인지 알려줍니다. l줄바꿈 없이 왼쪽으로 조정된 열을 의미합니다. 당신은 그러한 열이 42개 있다고 주장하지만 단 1개의 열만 사용합니다. 이상해 보이지만 실제로는 문제가 발생하지 않습니다. 문제는 l줄바꿈을 허용하지 않기 때문에 임의의 줄바꿈을 모두 도입해야 한다는 것입니다 \\. 대신, p{\linewidth}열이 페이지의 너비라고 말할 수 있으며 TeX은 자동으로 줄 바꿈을 알아냅니다. 그러나 단 하나의 열인 경우에는 실제로 테이블이 아니며 테이블 형식을 사용하면 안 됩니다( \begin{table}테이블이라고 부르고 싶은 경우 계속 사용할 수 있지만 테이블 형식을 사용하지 마세요). 하지만 몇 가지 칼럼을 소개하겠습니다.

아시다시피 \adjustbox글꼴 \scalebox크기와 가로 세로 비율이 손상되므로 피해야 합니다. 또한 테이블이 너무 커서 이것이 유일한 가능성이기 때문에 를 [!htpb]로 변경했습니다 .[p]

테이블 디자인의 일반적인 아이디어는 정보를 반복하는 경우 해당 정보를 더 나은 위치로 이동해야 한다는 것입니다. 이 경우 가장 큰 문제는 모든 행이 "Lag #"으로 끝나서 "Lag"가 새 열이 되어야 함을 의미한다는 것입니다. 이제 첫 번째 열이 유형으로 변경될 수 있습니다 X. tabularx즉, 지연 열의 크기는 가장 넓은 항목에 맞게 조정되고 X열은 나머지 너비를 차지합니다.

카테고리의 일부 항목은 동일한 텍스트로 시작됩니다. 해당 텍스트를 해당 카테고리의 헤더로 옮겼습니다. 다른 지연을 제외하고 일부 항목은 동일합니다. 나는 그것들을 하나의 항목으로 결합하고 두 시차를 시차 열에 넣었습니다.

앞에 숫자가 붙은 이유가 보이지 않아서 제거했습니다.

이 모든 작업(및 일부 지나치게 공격적인 축약)을 수행 \tiny하면 까지 변경할 수 \footnotesize있으며 표 1은 기하학의 기본 여백이 있는 단일 a4 페이지에 맞습니다(여백이 무엇인지 실제로 알려주셨어야 했습니다). 내가 당신이라면, 여기서 멈추고 단축어 중 일부를 취소할 것 같습니다.

우리는 할 수 있습니다조금범주를 새 열로 이동하고 tabularx매우 반복적인 "경기 침체" 및 "모기지" 항목(및 네덜란드 안틸레스 항목)에 대해 일부를 중첩하는 것이 더 좋습니다. 그러면 한두 줄이 절약되어 \small표 2에 도달할 수 있습니다.

그외의 물건:

  • 유사한 변수를 서로 옆으로 이동하기 위해 여러 범주를 재정렬했습니다.
  • 너무 많은 단어를 대문자로 사용했습니다. 나는 그 대부분을 취소했습니다.
  • -하이픈용입니다. 대시를 원하면 를 사용해야 합니다 ---. 그리고 --다양한 숫자의 경우.
  • 나는 booktabs그 규칙을 소개했습니다.
  • 일반적인 조언은 표의 캡션은 위에 오고, 그림의 캡션은 아래에 와야 한다는 것입니다.

코드와 그 결과:

\documentclass[a4paper]{article}
\usepackage{geometry}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{multirow}
\begin{document}
\begin{table}[p]\footnotesize
\caption{Selected economic variables by SCAD regression} 
\begin{tabularx}{\textwidth}{ @{} X c @{} } \toprule
\textbf{Monetary Policy} --- Monetary Authority & Lag \\
Loans through the asset backed commercial paper money market mutual fund liquidity facility  AMLF \& MMLF   asset  level & 1 \\ 
Depository inst loans NEC to other fin business commercial paper funding facility LLC asset txns & 1 \\\midrule
\textbf{International Finance --- Govt} --- Non-US \\
US govt loans excl capital subscriptions \& contributions to international fin insts \& the IMF  liability  reval & 0,1,4 \\ 
Other US  reserve assets  other claims  liability  txns & 0 \\ 
Other US  reserve assets  other claims  liability  reval & 0 \\ \midrule
\textbf{Domestic Finance --- Private} \\ 
Govt sponsored enterprises  equity capital of farm credit system  txns & 3 \\ 
Govt sponsored enterprises  corporate equities held by Freddie Mac  asset level & 0 \\ 
Pension funds  corporate equities  asset  txns & 2 \\ 
Security brokers \& dealers  payables to customer \& non-US noncustomers  free credit  margin deposits  \& other payables   liability  txns & 4 \\ 
Private depository insts  total time \& savings deposits  liability  txns & 1 \\ 
Nonprofit orgs  municipal securities  sum of holders   liability  FWTW   txns & 4 \\ 
Other fin corps \& insurance comps \& pension funds  net claims on nonfin businesses \& households \& nonprofit orgs  asset  FWTW   txns & 4 \\ \midrule
\textbf{Recession} \\
Govt sponsored enterprises  equity capital of farm credit system  txns & 4 \\
NBER based recession indicators for the US from the period following the peak through the trough & 2 \\ 
NBER based recession indicators for the US from the peak through the period preceding the trough & 3 \\ 
OECD based recession indicators for the US from the peak through the trough & 2 \\ 
OECD based recession indicators for the US from the peak through the trough 1 & 2 \\ \midrule
\textbf{Unemployment \& Wages} \\
Employment level   ag \& related industries  wage \& salary workers & 1 \\ 
Unemployment rate   nonag  private wage \& salary workers & 3 \\ \midrule
\textbf{Domestic Finance --- Govt} \\
State \& local govt employee defined ben rtrmnt funds  total time \& savings deposits  asset  txns & 0,1 \\ 
Total consumer credit owned by depository insts  flow & 1 \\ 
Gen govt  other accounts payable incl SDR allocations  liability  IMA   reval & 4 \\ 
State \& local govts  foreign bonds  asset  FWTW   txns & 2 \\ 
Domestic fin sectors  net saving incl foreign earnings retained abroad \& CCAdj less net capital txfrs paid  other than for fin stabilization program   txns & 1,2 \\ \midrule
\textbf{International Finance --- Private} \\
Households \& nonprofit orgs  commercial \& multifam res mortgages  asset  txns & 1,2 \\ 
Non-US  corporate bonds issued by Netherlands Antillean fin subsidiaries of US  corps  asset  reval & 4 \\ 
Pension funds  security repurchase agreements issued by the non-US  asset  FWTW   reval & 4 \\ 
Domestic fin sectors  insurance  pension \& standardized guarantee schemes asset  IMA   reval & 4 \\ 
Non-US  debt securities \& negotiable certificates of deposit issued by fin corps  asset  FWTW   txns & 1 \\ 
Private pension funds security repurchase agreements  asset  txns & 3,2 \\ 
Holding comps  security repurchase agreements issued by the non-US asset  FWTW   txns & 0 \\ 
Non-US  corporate bonds issued by Netherlands Antillean fin subsidiaries of US  corps  asset  txns & 0 \\ \midrule
\textbf{Housing \& Mortgages} --- Fed Govt 1--4 Fam Res Mortgages \\
Asset  txns & 4 \\ 
Held by public housing admin  PHA   asset  txns & 4 \\ 
Held by RTC  asset level & 1,3 \\ \bottomrule
\end{tabularx}
\end{table}

\begin{table}[p]\small
\caption{Selected economic variables by SCAD regression} 
\newlength{\firstcolwidth}
\setlength{\firstcolwidth}{2.1cm}
\begin{tabularx}{\textwidth}{ @{} p{\firstcolwidth} X c @{} } \toprule
Category & Variable & Lag \\\midrule
\multirow[t]{2}{\firstcolwidth}{Monetary Policy --- Monetary Authority}
& Loans through the asset backed commercial paper money market mutual fund liquidity facility  AMLF \& MMLF   asset  level & 1 \\ 
& Depository inst loans NEC  to other fin business commercial paper funding facility LLC   asset  txns & 1 \\\midrule
\multirow[t]{4}{\firstcolwidth}{International Finance --- Govt --- Non-US}
& US govt loans excl capital subscriptions \& contributions to international fin insts \& the IMF  liability  reval & 0,1,4 \\ 
& Other US  reserve assets  other claims  liability  txns & 0 \\ 
& Other US  reserve assets  other claims  liability  reval & 0 \\ \midrule
\multirow[t]{7}{\firstcolwidth}{Domestic Finance --- Private}
& Govt sponsored enterprises  equity capital of farm credit system  txns & 3 \\ 
& Govt sponsored enterprises  corporate equities held by Freddie Mac  asset level & 0 \\ 
& Nonprofit orgs  municipal securities  sum of holders   liability  FWTW   txns & 4 \\ 
& Pension funds  corporate equities  asset  txns & 2 \\ 
& Private depository insts  total time \& savings deposits  liability  txns & 1 \\ 
& Security brokers \& dealers  payables to customer \& non-US noncustomers  free credit  margin deposits  \& other payables   liability  txns & 4 \\ 
& Other fin corps \& insurance comps \& pension funds  net claims on nonfin businesses \& households \& nonprofit orgs  asset  FWTW   txns & 4 \\ \midrule
\multirow[t]{5}{\firstcolwidth}{Recession}
& Govt sponsored enterprises  equity capital of farm credit system  txns & 4 \\ 
& \multirow{4}{*}{%
 {\begin{tabularx}{\linewidth}{ @{} p{3cm} X }
  \multirow[t]{4}{3cm}{Recession indicators for the US ...}
  & NBER, post peak through trough \\
  & NBER, peak through pre trough \\
  & OECD, peak through trough \\
  & OECD, peak through trough 1 \\
 \end{tabularx}}
}
& 2 \\ & & 3 \\ & & 2 \\ & & 2 \\\midrule
\multirow[t]{2}{\firstcolwidth}{Unemployment \& Wages}
& Employment level ag \& related industries  wage \& salary workers & 1 \\ 
& Unemployment rate nonag  private wage \& salary workers & 3 \\ \midrule
\multirow[t]{6}{\firstcolwidth}{Domestic Finance --- Govt}
& State \& local govt employee defined ben rtrmnt funds  total time \& savings deposits  asset  txns & 0,1 \\ 
& State \& local govts  foreign bonds  asset  FWTW   txns & 2 \\ 
& Total consumer credit owned by depository insts  flow & 1 \\ 
& Gen govt  other accounts payable incl SDR allocations  liability  IMA   reval & 4 \\ 
& Domestic fin sectors  net saving incl foreign earnings retained abroad \& CCAdj less net capital txfrs paid  other than for fin stabilization program   txns & 1,2 \\ \midrule
\multirow[t]{9}{\firstcolwidth}{International Finance --- Private}
& Households \& nonprofit orgs  commercial \& multifam res mortgages  asset  txns & 1,2 \\ 
& Non-US  debt securities \& negotiable certificates of deposit issued by fin corps  asset  FWTW   txns & 1 \\ 
& Domestic fin sectors  insurance  pension \& standardized guarantee schemes asset  IMA   reval & 4 \\ 
& Holding comps  security repurchase agreements issued by the non-US asset  FWTW   txns & 0 \\ 
& Pension funds  security repurchase agreements issued by the non-US  asset  FWTW   reval & 4 \\ 
& Private pension funds security repurchase agreements  asset  txns & 3,2 \\ 
& \multirow{2}{*}{{%
 \begin{tabularx}{\linewidth}{ @{} X l }
  \multirow{2}{\linewidth}{Non-US  corporate bonds issued by Netherlands Antillean fin subsidiaries of US  corps  asset ...}
  & reval \\ & txns
 \end{tabularx}
}}
& 4 \\ & & 0 \\
\midrule
\multirow[t]{3}{\firstcolwidth}{Housing \& Mortgages}
& \multirow{3}{*}{%
{\begin{tabularx}{\linewidth}{ @{} p{2.8cm} X }
 \multirow[t]{3}{\linewidth}{Fed Govt 1--4 Fam Res Mortgages}
& Asset  txns \\ 
& Held by public housing admin  PHA   asset  txns \\ 
& Held by RTC  asset level
\end{tabularx} }}
& 4 \\ & & 4 \\ & & 1,3 \\ \bottomrule
\end{tabularx}
\end{table}
\end{document}

표 1 출력

표 2 출력

관련 정보