CTAN Comprehensive TeX Archive Network

Linegoal – A dimen that returns the space left on the line

The linegoal package provides a macro \linegoal to be used with \setlength:

      \setlength<some dimen>\linegoal
      
will set <some dimen> to the horizontal length of the remainder of the line.

This is achieved using the \pdfsavepos primitive of pdf, through 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.

Sources/macros/latex/contrib/linegoal
Documentation
Version2.9
LicensesThe Project Public License 1.3
Copyright2010 Florent Chervet
MaintainerFlorent Chervet
Contained inTeX Live as linegoal
MiKTeX as linegoal
TopicsTagged PDF – fully compatible
Layout

Download the contents of this package in one zip archive (150.7k).

Community Comments

Loading...

Announcements

Here you can see a respective diagram in newer browsers.

more

Guest Book Sitemap Contact Contact Author