Latex でより長く (3~4 ページ) かつより幅の広い表を作成する方法

Latex でより長く (3~4 ページ) かつより幅の広い表を作成する方法

以下のデータがあります

Shahrawat, R., and Rao, K. D. & 2012&   Insured yet vulnerable: Out-of-pocket payments and India’s poor&    All ages&   2004-05&    124644& All Diseases&   Health& 5.1\\
Raban et al.,&  2013&   Variations in catastrophic health expenditure estimates from household surveys in India&    All Ages&   2004-05&    124644& All Diseases&   Consumption &   14\\
Raban et al.,&  2013&   Variations in catastrophic health expenditure estimates from household surveys in India&    All Ages&   2009-10&    100855& All Diseases&   Consumption &   13.9\\

同様に、タイトルが異なる 43 行のデータがあります。論文用に、Latex の横長のページに長い表と幅の広い表を収めたいのですが、どなたかこの点について手伝っていただけますか。よろしくお願いします。

答え1

環境と環境xltabularの機能を組み合わせた環境を使用することをお勧めします。さらに、最初の 2 つの列に含まれる情報を組み合わせることをお勧めします。この提案を受け入れると、この表の列の合計数は 8 になります。提供されたサンプル行に基づくと、列 1 と 2 では自動行折り返しが望ましいようです。この表には垂直線は使用しません。longtabletabularx

テーブルのヘッダー行に何を含めるべきかについての情報を提供していないため、結果のテーブルの全体的な外観は必然的に少し簡素なものになります。

ここに画像の説明を入力してください

\documentclass{article} % or some other suitable document class

\usepackage{iftex}
\ifpdftex % pdfLaTeX is being used
  \usepackage[T1]{fontenc}
\else % either XeLaTeX or LuaLaTeX is being used
  \usepackage{fontspec}
\fi

\usepackage[english]{babel}
\usepackage[a4paper,margin=2.5cm]{geometry} % set page parameters suitably

\usepackage{xltabular} % combine capabilities of longtable and tabularx
\usepackage{ragged2e} % for '\RaggedRight' macro
\newcolumntype{P}[1]{>{\RaggedRight}p{#1}} % suppress full justification
\newcolumntype{L}{>{\RaggedRight}X} % suppress full justification
\usepackage{pdflscape} % for 'landscape' env.
\usepackage{booktabs} % for well-spaced horizontal rules

\begin{document}

\begin{landscape} % switch to landscape mode
\setlength\tabcolsep{4pt} % default: 6pt
\begin{xltabular}{\textwidth}{@{} P{1.9cm} L llllll @{}}

%% headers and footers
\toprule
\endhead

\bottomrule
\endfoot

%% body of table

Shahrawat, R. and Rao, K. D., 2012
  & Insured yet vulnerable: Out-of-pocket payments and India’s poor
  & All ages& 2004--05& 124644& All Diseases& Health& 5.1\\
\addlinespace
Raban et al., 2013
  & Variations in catastrophic health expenditure estimates from household surveys in India
  & All ages& 2004--05& 124644& All Diseases& Consumption & 14\\
\addlinespace
Raban et al., 2013
  & Variations in catastrophic health expenditure estimates from household surveys in India
  & All ages& 2009--10& 100855& All Diseases& Consumption & 13.9\\
\end{xltabular}
\end{landscape}

\end{document}

関連情報