AZ logo

CTAN directory: /macros/latex/contrib/linegoal

You can get the contents of this directory bundled as a zip file.

Packages in this directory:

Identifier Caption
linegoal A "dimen" that returns the space left on the line.

Files

Name Size* Date UTC Notes
README 1 KiB 2010-Aug-27 Shown below
linegoal.dtx 29 KiB 2011-Feb-25
linegoal.ins 3 KiB 2011-Feb-25
linegoal.pdf 188 KiB 2011-Feb-25

  *File sizes in kibibytes.

Contents of README

Nota : this packages requires pdfTeX.

The linegoal package provides a macro \linegoal
to be used with \setlength :
   \setlength<some dimen>\linegoal

will assign to <some dimen> the horizontal length
of the remainder of the line.

This is achieved using the \pdfsavepos primitive
and the zref-savepos package.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Typical usage :

Some text: \begin{tabularx}\linegoal{|l|X|} \hline
            one & two                       \\
            three & four                    \\\hline
           \end{tabularx}