![Alinhamento à esquerda com largura da coluna {p{cm}}](https://rvso.com/image/266397/Alinhamento%20%C3%A0%20esquerda%20com%20largura%20da%20coluna%20%7Bp%7Bcm%7D%7D%20.png)
Estou tentando criar uma tabela parecida com:
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
...
O que eu fiz foi
\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}
Mas eu entendo
Definição de expressões idiomáticas
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
...
Acho que isso tem a ver com alinhamento. A amostra acima não é exatamente a que obtive no Latex. Mas isso reflete meus problemas. Com l em vez de p, posso obter o alinhamento à esquerda desejado. mas sem tamanho de mesa. Mas com o tamanho aumentado, o alinhamento dá errado.
Alguns elementos no preâmbulo podem estar faltando, como usei pacotes como setspace e anysize.
Fonte: A tabela acima foi extraída da Wikipedia para representar minha situação.
Responder1
usar tabularx
e também\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}