CTAN Comprehensive TeX Archive Network

ctan update: linegoal

Date: June 5, 2010 9:16:09 PM CEST
the daemon's had a quiet day, and then something nice turns up: > The following information was provided by the package's contributor. > > Name of contribution: linegoal > Author's name: Florent CHERVET > Location on CTAN: macros/latex/contrib/linegoal > Summary description: A new ``dimen'' corresponding to the remainder of the line > License type: lppl > > Announcement text given by the package's contributor: > ---------------------------------------------------------------------- > v1.1 > Small corrections onto the first release ! > ---------------------------------------------------------------------- i've installed the new version, and updated the catalogue repository. thanks for the upload! > Users may view the package catalogue entry at > http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/linegoal.html > or they may browse the package directory at > http://www.tex.ac.uk/tex-archive/macros/latex/contrib/linegoal the updated catalogue entry won't appear until some time in the night (i have nocturnal daemons as well...). Robin Fairbairns For the CTAN team

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.


      Some text: \begin{tabularx}\linegoal{|l|X|} \hline
                   one & two \\
             three & four \\\hline
will position the table after the initial text, and make the table fill the rest of the line.

Copyright2010 Florent Chervet
MaintainerFlorent Chervet



Guest Book Sitemap Contact Contact Author