Settings Help
CTAN
Comprehensive TeX Archive Network
Home Upload Browse

Direc­tory tex-archive/macros/latex/contrib/linegoal

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}

Files

Name Size Date Notes
README 558 2010-08-27 08:29:00
linegoal.dtx 30107 2011-02-25 07:16:36
linegoal.ins 2653 2011-02-25 07:16:20
linegoal.pdf 192294 2011-02-25 07:16:36

DOWNLOAD Down­load the com­plete con­tents of this di­rec­tory in one zip archive (150.7k).

line­goal – A "di­men" that re­turns the space left on the line

The line­goal pack­age pro­vides a macro \line­goal to be used with \setlength:\setlength\line­goal will set to the hor­i­zon­tal length of the re­main­der of the line.
This is achieved us­ing the \pdf­save­pos prim­i­tive of pdf­tex, through the zref-save­pos pack­age.
Ex­am­ple: Some text: \be­gin{tab­u­larx}\line­goal{|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.

Documentation Readme
Package documentation
Version2.9
LicenseThe LaTeX Project Public License 1.3
MaintainerFlorent Chervet
Contained inTeXLive as line­goal
MiKTeX as line­goal
Topics lay­out of ob­jects on the page
Guest Book Sitemap Contact 2013-05-25 04:26 CEST