I don't know if it is possible at all in latex, but I would like to cut off too wide or overlong lines in a table.
This is what I have now :
|001|short |
|001|too long a|nd can even go off the page
(vertical lines at the end are the "logical/desired" borders of the table - actually displayed as below)
And this is what I am looking for :
|001|short |
|001|too long..|
Sample :
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{tabularx}\begin{document}\section*{Current}\begin{tabularx}{\textwidth}{|p{10mm}|X|}\hline001 & short text \\\hline002 & \multicolumn{1}{l|}{very long text, say, overlong, and now I'm just trying to fill this up so that it will be really overlong}\\\hline\end{tabularx}\section*{Desired}\begin{tabularx}{\textwidth}{|p{10mm}|X|}\hline001 & short text \\\hline002 & \multicolumn{1}{l|}{very long text, say, overlong, and now I'm just trying to fill \ldots}\\\hline\end{tabularx}\end{document}
+ I can't use two lines for one entry...
Although, I have never hear about omitting text in latex, I would be really grateful if someone out there could tell me if it is possible at all.
Thanks in advance,
retek