Version:
Copyright:
License:
Packaged on:
2/28/2011 1:14:59 PM
Number of files:
5
Size on disk:
203.8 kB

The linegoal package provides a macro \linegoal to be used with \setlength: \setlength<some dimen>\linegoal will assign the horizontal length of the remainder of the line to <some dimen>. This is achieved using the \pdfsavepos primitive of pdftex, and the zref-savepos package. Example: Some text: \begin{tabularx}\linegoal{|l|X|} \hline one & two \\ three & four \\\hline \end{tabularx} will position the table after the initial text, and make the table fill the rest of the line.