[texhax] current position in output

tom sgouros tomfool at as220.org
Sun Dec 28 01:36:39 CET 2008


I don't know if you'll get the precision you seem to be looking for, but
you should try playing with \pagetotal, which is a length that marks
where you are on the page (measured from the top), and creeps up (down)
towards \pagegoal.  When it gets to \pagegoal, the page-completing
machinery clanks into action.  Anyway, you might experiment with those
and see if that can't get you where you hope to go.  One little
weirdness is that I think \pagegoal isn't set until something 
is applied to the page. 

I am not aware of anything similar in the X direction, though.

Good luck,

 -tom

Christopher Olah <christopherolah.co at gmail.com> wrote:

> Greetings!
> 
> > I need a comand that can capture the position like
> > \currentpagenumber
> 
> Page number and similar are stored as counters in LaTeX. Here's a
> useful link in that regard:
> http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/teTeX/latex/latex2e-html/ltx-3.html
> 
> > Is there any command or way to get the current output position (xy
> > coordinate) of things.
> ...
> > \xyposition{words or things in there}
> 
> As for your first question, I don't know the answer. But I do have a
> few ideas on where to get them.
> 
>  This sort of thing _should_ be a part of TeX, so you may want to look
> at the relevant documentation. I don't have a copy of the TeXbook my
> self so I generally reference TeX by Topic which is free and will
> likely have the answers your looking for.
> 
>  Someone will probably come along with the answer shortly, but if your
> in a rush the source code is always the best documentation... Maybe
> look at the code for the pspicture environment? It goes and makes
> LaTeX jump around on the X and Y axis...
> 
> If you are asking because you want to put something at a particular
> point on a page, look at \rput from pstricks.
> 
> 
> Best of Luck!
> 
> Christopher
> 
> -- 
> Christopher Olah
> Email:   christopherolah.co at gmail.com
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> 
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
> 


-- 
 ------------------------
 tomfool at as220 dot org
 http://sgouros.com  
 http://whatcheer.net


More information about the texhax mailing list