Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

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 20:29
linegoal.dtx 30107 2011-02-25 19:16
linegoal.ins 2653 2011-02-25 19:16
linegoal.pdf 192294 2011-02-25 19:16

Down­load the con­tents of this pack­age 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<some di­men>\line­goal
will set <some di­men> 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: \begin{tabularx}\linegoal{|l|X|} \hline
             one & two \\
	     three & four \\\hline
	   \end{tabularx}
will po­si­tion the ta­ble af­ter the ini­tial text, and make the ta­ble fill the rest of the line.

Pack­age De­tailsline­goal
Ver­sion2.9
Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2010 Florent Chervet
Main­tainerFlorent Chervet
Con­tained inTeXlive as line­goal
MikTeX as line­goal
Topics lay­out of ob­jects on the page
Guest Book Sitemap Contact