TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

TeX newbie. I want to position the reference fields line in scrlttr2 to where the "supplemental data" is usually displayed (in the top right hand corner, below the header).

I figured it would be as easy as


but that doesn't work, the reference field line is rendered right at the top of the document. Any help would be greatly appreciated! I'm working on an invoice template.

share|improve this question
up vote 6 down vote accepted
  • Vertical position: Obviously locvpos has a value of 0 pt with your style, which is common for many letter styles. You could set it yourself or use toaddrvpos instead.

  • Horizontal position: refhpos means a distance from the left paper edge, but lochpos from the right paper edge. So you would have to calculate, substracting lochpos and locwidth from \paperwidth to get your new refwidth.

  • Width: You can simply use locwidth as you did, perhaps the option refline=narrow could be useful for you in addition.

Since you design the template yourself, you don't have to use predefined values, you could set your own.


\opening{Dear reader,}
\closing{Yours Sincerely}

enter image description here

Another approach

You could use


to use the location field while designing your own reference fields block therein, not using the predefined reference fields. So you don't have to change position and width.

share|improve this answer
Fantastic, thank you! Exactly what I needed. – slurms Nov 1 '11 at 11:38
@NickSandford So you could click on the arrow and checkmark on the left of the answer for upvoting and accepting ;-) – Stefan Kottwitz Nov 1 '11 at 11:47
It says I need a certain amount of reputation to do that haha, first post and everything :). I'm almost there, and when I am I will. For the second approach, is there somewhere I can view how the current reference line is rendered, so that I can use that as a template for setting the location variable? – slurms Nov 1 '11 at 11:51
@NickSandford: You can't upvote (click on the arrow) yet, but you can accept (click on the checkmark). – lockstep Nov 1 '11 at 11:53
Ah, righto. Didn't notice that! Thanks. – slurms Nov 1 '11 at 11:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.