CTAN Comprehensive TeX Archive Network

CTAN package update: linegoal (v2.9)

Date: February 25, 2011 7:35:52 PM CET
i don't remember what i was doing, but it was obviously terribly interesting work, because i didn't notice the daemon saying: > The following information was provided by the package's contributor. > > Name of contribution: linegoal (v2.9) > Author's name: Florent CHERVET > Location on CTAN: macros/latex/contrib/linegoal > Summary description: A ``dimen'' that corresponds to the remainder of the line > License type: lppl > > Announcement text given by the package's contributor: > ---------------------------------------------------------------------- > . Modification of the expansion process for setting the > linegoal in order to allow the use of \linegoal inside > the arguments of tabular column : > p{ .4\linegoal} m{ .2\linegoal } b{ .15\linegoal } > > when the calc.sty package is loaded. > > This is because such arguments are expanded by array.sty > during the rewriting process and hence, before \setlength. > > This can be handy for \multicolumn in some cases: > > \begin{tabu}{|XX[2]X|} > Hello > & > \multicolumn2{p{\linegoal}|} > {\vskip-\ht\strutbox\strut\lipsum[5]} \\ > \tabuphantomline > \end{tabu} thanks for the upload; i have installed the new files and updated the catalogue repository entry. > 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 catalogue entry will change (somewhat) overnight tonight. 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.

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.

Packagelinegoal
Version2.9
Copyright2010 Florent Chervet
MaintainerFlorent Chervet

Announcements

more

Guest Book Sitemap Contact Contact Author