![Alinear a la izquierda con el ancho de columna {p{cm}}](https://rvso.com/image/266397/Alinear%20a%20la%20izquierda%20con%20el%20ancho%20de%20columna%20%7Bp%7Bcm%7D%7D%20.png)
Estoy intentando crear una tabla algo así como:
Idioms Definition
A dime Anything that is common, inexpensive,
a dozen and easy to get or available any where.
Beat around To treat a topic, but omit its main points,
the bush often intentionally or To delay or avoid
talking about something difficult or unpleasant.
Bite off more To take on more responsibility than you can manage.
than one can chew
...
Lo que hice es
\documentclass{book}
\begin{document}
\thispagestyle{empty}
\noindent
\begin{tabular}{p{6cm} p{12cm}}
Idioms & Definitions
{The Remaining portions of work goes here.}
\end{tabular}
\end{document}
pero lo entiendo
Definición de modismos
A dime Anything that is common, inexpensive,
a dozen and easy to get or available any where.
Beat around To treat a topic, but omit its main points,
the bush often intentionally or To delay or avoid
talking about something difficult or unpleasant.
Bite off more To take on more responsibility than you can manage.
than one can chew
...
Creo que esto tiene que ver con la alineación. La muestra anterior no es exactamente la que obtuve en Latex. Pero refleja mis problemas. Con l en lugar de p, puedo obtener la alineación izquierda deseada. pero no hay tamaño de mesa. Pero con el tamaño ajustado, la alineación sale mal.
Es posible que falten algunos elementos en el preámbulo, ya que he usado paquetes como setspace y anysize.
Fuente: La tabla anterior está extraída de Wikipedia para representar mi situación.
Respuesta1
uso tabularx
y también\RaggedRight
\documentclass{book}
\usepackage{tabularx,ragged2e}
\begin{document}
\noindent
\begin{tabularx}{\textwidth}{
@{} % no \tabcolsep on the left side
>{\RaggedRight}p{6cm}% let the p column typeset ragged right
X % dynamical column width
@{} % no \tabcolsep on the right side
}
Idioms & Definitions
{The Remaining portions of work goes here.}
\end{tabularx}
\end{document}