| 1 |
Nota : this packages requires pdfTeX. |
| 2 |
|
| 3 |
The linegoal package provides a macro \linegoal |
| 4 |
to be used with \setlength : |
| 5 |
\setlength<some dimen>\linegoal |
| 6 |
|
| 7 |
will assign to <some dimen> the horizontal length |
| 8 |
of the remainder of the line. |
| 9 |
|
| 10 |
This is achieved using the \pdfsavepos primitive |
| 11 |
and the zref-savepos package. |
| 12 |
|
| 13 |
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
| 14 |
Typical usage : |
| 15 |
|
| 16 |
Some text: \begin{tabularx}\linegoal{|l|X|} \hline |
| 17 |
one & two \\ |
| 18 |
three & four \\\hline |
| 19 |
\end{tabularx} |
| 20 |
|