Tx · LaTeX & TikZ

How to Position the Signature in KOMA-Script scrlttr2

Published By the 9to5Science editorial team

At a glance

  1. 1. Set the horizontal offset

    Use \setplength{sigindent}{...} to move the closing and signature block horizontally.

  2. 2. Adjust vertical spacing

    Use sigbeforevskip for the space above the closing block; it does not change horizontal position.

  3. 3. Set the displayed name

    Use the signature variable to control the name or text printed beneath the closing.

  4. 4. Compile and refine

    Change the length and recompile until the block sits where you want it.

Advertisement

In scrlttr2, the sigindent pseudolength controls the horizontal indentation of the signature beneath the closing phrase. Set it with KOMA-Script’s \setplength command. A positive length moves the signature to the right; 0mm places it at the text area’s left edge.

The indentation is separate from the text printed as the signature and from the vertical gap between the closing phrase and the signature. The example below shows how to set each independently.

Minimal working example

\documentclass{scrlttr2}

\setkomavar{fromname}{Ada Lovelace}
\setkomavar{signature}{Ada Lovelace}

% Horizontal indentation of the signature
\setplength{sigindent}{25mm}

% Vertical space between the closing phrase and signature
\setplength{sigbeforevskip}{2\baselineskip}

\begin{document}
\begin{letter}{Charles Babbage\\London}
\opening{Dear Mr Babbage,}

Thank you for your letter. I will write again soon.

\closing{Yours sincerely,}
\end{letter}
\end{document}

This example needs no additional packages. Compile it with a LaTeX engine that supports KOMA-Script. The closing phrase and signature name both appear in the closing; sigindent moves the signature horizontally, not the closing phrase. The signature variable supplies the text beneath the closing phrase.

Adjust the position

Set sigindent in the preamble to use the same indentation for letters in the document:

\setplength{sigindent}{15mm}

Choose the length that suits your layout. For example, use 0mm to align the signature with the text area’s left edge, or a larger positive length to move it farther right. Measure the indentation from the left edge of the letter’s text area, not from the physical edge of the paper; margins and the letter layout determine where that text area begins.

To change the vertical position of the signature relative to the closing phrase, adjust sigbeforevskip:

\setplength{sigbeforevskip}{1\baselineskip}

Increasing this value adds more space between the closing phrase and the signature. It does not alter the horizontal indentation. To change the printed name or signature text, edit \setkomavar{signature}{...} rather than changing either pseudolength.

Common mistakes

  • Using \setlength instead of \setplength: sigindent is a KOMA-Script pseudolength, so set it with \setplength.
  • Changing vertical spacing to fix horizontal alignment: sigbeforevskip only controls the gap between the closing phrase and signature. Use sigindent to adjust the signature’s horizontal position.
  • Changing the signature variable to move the signature: The signature variable changes the printed content, not its indentation.
  • Measuring from the paper edge: The length is applied within the letter layout. Page margins affect the signature’s position on the sheet, but are not part of the sigindent value.

If the signature still appears unexpectedly positioned, check the letter’s page and text-area layout as well as the value of sigindent; those settings determine the reference point from which the signature’s indentation is measured.

References

  1. KOMA-Script: The Guide

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.