
TeX.SE에 이와 비슷한 질문이 있다는 것을 알고 있지만 다른 예제와 내 예제를 추론하거나 문제가 있는 코드 줄을 격리할 만큼 유능하지 않습니다.
잘린 부분을 만드는 것은 단지 텍스트의 크기 때문이 아니기 때문에 혼란스럽습니다. 텍스트 크기를 36에서 12로 변경해도 여전히 잘립니다.
누구든지 제안할 수 있나요?
내 테이블과 코드는 다음과 같습니다.
% Table created by stargazer v.5.2 by Marek Hlavac, Harvard University. E-mail: hlavac at fas.harvard.edu
% Date and time: Sun, Apr 30, 2017 - 16:53:55
\begin{table}[!htbp] \centering
\caption{}
\label{}
\begin{tabular}{@{\extracolsep{5pt}} cccc}
\\[-1.8ex]\hline
\hline \\[-1.8ex]
& Variable & Party.With.High.Populism.Score & Party.With.Low.Populism.Score \\
\hline \\[-1.8ex]
1 & Nationalism & Supports nationalistic conception of society & Supports cosmopolitan conception of society \\
2 & Multiculturalism & Supports assimilation & Supports multiculturalism \\
3 & Immigration & Supports a tough stance on immigration & Opposes tough stance on immigration \\
4 & Democratic Freedoms & Values tradition and authoritarian values & Values libertarian values \\
5 & Civil Liberties & Supports a tough stance on crime & Promotes civil liberties \\
6 & Social Lifestyle & Opposes liberal attitudes to lifestyle & Favours liberal attitudes to lifestyle \\
7 & Establishment & Critical of the establishment & Supportive of the establishment \\
8 & Religion & Supports religions inflluence on politics as 'moral authority' & Opposes religions influence on politics \\
9 & Urban/Rural & Supports rural rather than urban interests & Supports urban rather than rural interests \\
10 & Environment & Prioritises economic growth over environment protection & Prioritises environmental protection over economic growth \\
\hline \\[-1.8ex]
\end{tabular}
\end{table}
답변1
자신에게 큰 호의를 베풀고 tabularx
환경을 활용하는 방법을 배우십시오. 그렇게 하면 표 형식 자료의 생성을 "자동화"한다고 주장하는 소프트웨어에 의해 부과된 인위적인(불만족스러울 수 있는) 제한에서 벗어날 수 있습니다. 이러한 도구를 사용하여 테이블의 초기 모형을 만들 수 있습니다. 모형을 생산 공정의 최종 또는 거의 최종 상태로 취급하지 마십시오.
다음 표에서는내용물귀하가 게시한 내용과 변경되지 않았습니다. 크게 변경된 것은 헤더 설정입니다. 예를 들어, 열의 자료는 이제 중앙이 아닌 왼쪽 정렬됩니다(테이블이 너무 넓지 않도록 자동 줄바꿈 사용).
\documentclass{article}
\usepackage[english]{babel}
\usepackage{booktabs,tabularx,caption,ragged2e}
\captionsetup{skip=0.333\baselineskip}
\newcolumntype{L}{>{\RaggedRight\arraybackslash}X}
\newlength\mylength
\settowidth\mylength{Multiculturalism} % width of 2nd col.
\begin{document}
\begin{table}[!htbp]
\setlength\tabcolsep{4pt} % default: 6pt
\caption{} \label{}
\begin{tabularx}{\textwidth}{@{} l p{\mylength} LL @{}}
\toprule
& Variable & Party with High Populism Score & Party with Low Populism Score \\
\midrule
1 & Nationalism & Supports nationalistic conception of society & Supports cosmopolitan conception of society \\
2 & Multiculturalism & Supports assimilation & Supports multiculturalism \\
3 & Immigration & Supports a tough stance on immigration & Opposes tough stance on immigration \\
4 & Democratic Freedoms & Values tradition and authoritarian values & Values libertarian values \\
5 & Civil Liberties & Supports a tough stance on crime & Promotes civil liberties \\
6 & Social Lifestyle & Opposes liberal attitudes to lifestyle & Favours liberal attitudes to lifestyle \\
7 & Establishment & Critical of the establishment & Supportive of the establishment \\
8 & Religion & Supports religion's influence on politics as `moral authority' & Opposes religion's influence on politics \\
9 & Urban/Rural & Supports rural rather than urban interests & Supports urban rather than rural interests \\
10& Environment & Prioritises economic growth over environment protection & Prioritises environmental protection over economic growth \\
\bottomrule
\end{tabularx}
\end{table}
\end{document}