
작업 중인데 tabularx
한 줄의 셀 3개를 모두 하나의 셀로 결합하고 싶지만 텍스트가 꽤 길어서 이 환경에서 텍스트에 자동으로 줄바꿈을 적용하는 방법을 모르겠습니다. . 내가 어떻게 해야 하는지 아는 사람이 있나요?
\documentclass[10pt,a4paper,final,twoside]{book}
\usepackage{amsmath}
\usepackage{tabularx}
\usepackage{makecell}
\usepackage{multirow}
\usepackage{multicol}
\setlength{\columnsep}{1.5cm}
\setlength{\columnseprule}{0.2pt}
\usepackage{polyglossia}
\setmainlanguage{french}
\begin{document}
\begin{center}
\begin{tabularx}{1.\linewidth}{|p{.31\linewidth} | p{.31\linewidth} | p{.31\linewidth} |}
\hline
\textbf{Ernout/Meillet\textsubscript{4}} & \textbf{REW\textsubscript{3}} & \textbf{DÉRom} \\
\hline
apert\={u}ra & ap\u{e}rt\={u}ra & \makecell[l]{*/aper\textquotesingle t-ur-a/\\\hspace{4pt} $\longrightarrow$ I. */aper\textquotesingle t-ur-a/ \\ \hspace{4pt} $\longrightarrow$ II. */oper\textquotesingle t-ur-a/} \\
\hline
\multicolumn{3}{|c|}{Les issues romanes ont été subdivisées selon les deux types dont elles relèvent : */aper't-ur-a/ (I.) et */oper't-ur-a/ (II.). I. représente une évolution phonétique régulière de protorom. */aper't-ur-a/ et il existe en italien, romanche, espagnol, asturien, galicien et portugais.... } \\
\hline
\end{tabularx}
\end{center}
답변1
마지막 부분에는 X
열과 열을 사용하십시오 .p
\documentclass[10pt,a4paper,final,twoside]{book}
\usepackage{amsmath}
\usepackage{tabularx}
\usepackage{makecell}
\usepackage{polyglossia}
\setmainlanguage{french}
\begin{document}
\begin{center}
\begin{tabularx}{\linewidth}{|X|X|X|}
\hline
\textbf{Ernout/Meillet\textsubscript{4}} & \textbf{REW\textsubscript{3}} & \textbf{DÉRom} \\
\hline
apert\={u}ra & ap\u{e}rt\={u}ra &
\makecell[l]{%
*/aper\textquotesingle t-ur-a/\\
\hspace{4pt} $\longrightarrow$ I. */aper\textquotesingle t-ur-a/ \\
\hspace{4pt} $\longrightarrow$ II. */oper\textquotesingle t-ur-a/
} \\
\hline
\multicolumn{3}{|p{\dimexpr\linewidth-2\tabcolsep-2\arrayrulewidth}|}{%
Les issues romanes ont été subdivisées selon les deux types dont elles
relèvent: */aper't-ur-a/ (I.) et */oper't-ur-a/ (II.). I. représente
une évolution phonétique régulière de protorom. */aper't-ur-a/ et il
existe en italien, romanche, espagnol, asturien, galicien et portugais.... } \\
\hline
\end{tabularx}
\end{center}
\end{document}
답변2
제가 제안하는 것은 정리 솔루션입니다. 즉:
- 테이블 측면의 추가 공간을 제거했습니다.
tabularx
X 열이 사용되지 않으므로 제거되었습니다 .@{}m{\textwidth}@{}
실제로 사용한 새 열의 경우 :ㅏ.
@{}
여분의 간격을 제거비. 필요한 폭을 제공
\textwidth
합니다(최상의 효과를 얻기 위해 조정 가능).씨. 사양
m
에 따라 셀에 하이픈 넣기가 허용됩니다.보기 흉하고 가독성이 떨어지기 때문에 세로 구분 기호를 모두 제거했습니다.
booktabs
더 멋져 보이기 때문에 규칙을 사용했습니다 .- 추가 수평선을 제거했습니다(최대 1개 가능).고려하다a
midrule
긴 셀 앞
코드는 다음과 같습니다.
\documentclass[10pt,a4paper,final,twoside]{book}
\usepackage{amsmath}
\usepackage{tabularx, booktabs}
\usepackage{makecell}
\usepackage{multirow}
\usepackage{multicol}
\setlength{\columnsep}{1.5cm}
\setlength{\columnseprule}{0.2pt}
\usepackage{polyglossia}
\setmainlanguage{french}
\begin{document}
\begin{center}
\begin{tabular}{@{}p{.31\linewidth} p{.31\linewidth} p{.31\linewidth}@{}}
\toprule
\textbf{Ernout/Meillet\textsubscript{4}} & \textbf{REW\textsubscript{3}} & \textbf{DÉRom} \\
\midrule
apert\={u}ra & ap\u{e}rt\={u}ra & \makecell[l]{*/aper\textquotesingle t-ur-a/\\\hspace{4pt} $\longrightarrow$ I. */aper\textquotesingle t-ur-a/ \\ \hspace{4pt} $\longrightarrow$ II. */oper\textquotesingle t-ur-a/} \\
\multicolumn{3}{@{}m{\textwidth}@{}}{Les issues romanes ont été subdivisées selon les deux types dont elles relèvent : */aper't-ur-a/ (I.) et */oper't-ur-a/ (II.). I. représente une évolution phonétique régulière de protorom. */aper't-ur-a/ et il existe en italien, romanche, espagnol, asturien, galicien et portugais.... } \\
\bottomrule
\end{tabular}
\end{center}
\end{document}
그리고 샘플
답변3
p{\dimexpr0.93\linewidth+4\tabcolsep}
너비와 용도로 사용합니다 . 물론 그렇지 않습니다 tabularx
.
\documentclass[10pt,a4paper,final,twoside]{book}
\usepackage{amsmath}
\usepackage{tabularx}
\usepackage{makecell}
\usepackage{multirow}
\usepackage{multicol}
\setlength{\columnsep}{1.5cm}
\setlength{\columnseprule}{0.2pt}
\usepackage{polyglossia}
\setmainlanguage{french}
\begin{document}
\begin{center}
\begin{tabular}{|*3{p{.31\linewidth} |}}\hline
\textbf{Ernout/Meillet\textsubscript{4}} & \textbf{REW\textsubscript{3}} &
\textbf{DÉRom} \\ \hline
apert\={u}ra & ap\u{e}rt\={u}ra & \makecell[l]{*/aper\textquotesingle
t-ur-a/\\\hspace{4pt} $\longrightarrow$ I. */aper\textquotesingle t-ur-a/ \\
\hspace{4pt} $\longrightarrow$ II. */oper\textquotesingle t-ur-a/} \\ \hline
\multicolumn{3}{|p{\dimexpr0.93\linewidth+4\tabcolsep}|}{Les issues romanes ont été
subdivisées selon les deux
types dont elles relèvent : */aper't-ur-a/ (I.) et */oper't-ur-a/ (II.). I.
représente une évolution phonétique régulière de protorom. */aper't-ur-a/ et
il existe en italien, romanche, espagnol, asturien, galicien et portugais....
} \\\hline
\end{tabular}
\end{center}
\end{document}
그것 으로 tabularx
:
\begin{tabularx}{\linewidth}{|X|X|X|}\hline
...
\multicolumn{3}{|p{\dimexpr\linewidth-2\tabcolsep}|}{...}
...
\end{tabularx}