CTAN Comprehensive TeX Archive Network

New CTAN package: linegoal

Date: May 7, 2010 4:11:39 PM CEST
that ol' daemon's not affected by sleep deprivation after an election night, like some of us... and so he writes: > 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: > ---------------------------------------------------------------------- > 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} > > ---------------------------------------------------------------------- thanks for that; i've installed the new version, and made an entry in the catalogue repository. > 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 package itself is out on its travels around the world, but the web page won't appear until some time in the dark hours of the night. 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