%20%EB%8D%94%20%EB%84%93%EC%9D%80%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%9D%84%20%EA%B0%96%EB%8A%94%20%EB%B0%A9%EB%B2%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
의 기능을 결합한 환경을 사용하는 것이 좋습니다 . 또한 처음 두 열에 포함된 정보를 결합할 것을 제안합니다. 이 제안을 수락하면 이 테이블의 총 열 수는 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}