%20%E3%81%8B%E3%81%A4%E3%82%88%E3%82%8A%E5%B9%85%E3%81%AE%E5%BA%83%E3%81%84%E8%A1%A8%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95.png)
以下のデータがあります
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 では自動行折り返しが望ましいようです。この表には垂直線は使用しません。longtable
tabularx
テーブルのヘッダー行に何を含めるべきかについての情報を提供していないため、結果のテーブルの全体的な外観は必然的に少し簡素なものになります。
\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}