GeneralOverriding margins for one line

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
onix
Posts: 3
Joined: Mon Nov 10, 2008 2:53 am

Overriding margins for one line

Post by onix »

Hello,

I am trying to typeset handouts/worksheets. At the very top right corner of the page, I need a place for name and date. I need to start above the top margin, and I need the line to be on the right side of the page starting before the right margin and going into that margin. Something like:

name:________________

The problem is that I can't seem to get it to go past the right margin.

I also can't seem to eloquently get it to go above the top margin without altering the margins on the page completely.

Is there a solution to do this? I know other teachers and professors must have needed to do this, too, but I can't seem to find anything in a google search other than "don't do it".

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Overriding margins for one line

Post by Stefan Kottwitz »

Hi Onix,

you could use the textpos package to place text at an arbitrary absolute position on the page, have a look at its documentation.

Stefan
LaTeX.org admin
onix
Posts: 3
Joined: Mon Nov 10, 2008 2:53 am

Re: Overriding margins for one line

Post by onix »

Thank you! It looks like this just might do it. I'll play with it and post back here.
Post Reply