Comprehensive TeX Archive Network

linegoal – A "dimen" that returns 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, through the zref-save­pos pack­age.


  Some text: \begin{tabularx}\linegoal{|l|X|} \hline
               one & two \\
  	     three & four \\\hline
will po­si­tion the ta­ble af­ter the ini­tial text, and make the ta­ble fill the rest of the line.

Sources /macros/latex/contrib/linegoal
Ver­sion 2.9
Li­cense The Project Public Li­cense 1.3
Main­tainer Florent Chervet
Con­tained in TeX Live as line­goal
MiKTeX as line­goal
Topics lay­out of ob­jects on the page

Down­load the con­tents of this pack­age in one zip archive (150.7k).

Com­mu­nity Com­ments



Here you can see a re­spec­tive di­a­gram in newer browsers.


Guest Book Sitemap Contact Contact Author