I made some layout changes to the scrlttr2 class by changing some of the lengths that determine where the elements are put. Is there a way to generate something like this figure from the manual with the layout changes I made to get a better overview of the new layout?

I am mostly interested in the gray boxes, not so much in the arrows and labels.

screen shot from the manual

  • 2
    The original source file is plength.dtx (the plenDIN part), the processing is defined inside Makefile.guide, lines 286-292. Some of the needed variables are defined inside Makefile.latexinit.
    – epR8GaYuh
    Aug 22, 2018 at 10:20
  • 1
    With Letter Class Option visualize.lco some of the fields can be visualized. Search visualize.lco in the documentation.
    – esdd
    Aug 22, 2018 at 10:55
  • 1
    I have never worked with LaTeX documentation files before, and they did not seem too straightforward. I will give it another shot as soon as I find some time.
    – gdkrmr
    Aug 22, 2018 at 13:53

1 Answer 1


Add the following to your preamble to visualize boxes that are normally of interest while designing a letter layout (changing lengths).


According to the manual, this are all boxes (+test showing a 10 x 15 cm rectangle for print calibration) that can be shown this way. One needs to go a different way to visualize the rest of the gray boxes shown in your figure above.

A complete MWE:



% change some lengths ------------------------------------------
% Text block
\setlength{\oddsidemargin}{\dimexpr 30mm-1in}
\setlength{\evensidemargin}{\dimexpr 20mm-1in}

% Letter Head

% Address Window

% visualize border of boxes in blue ----------------------------


\setkomavar{fromname}{Max Mustermann}
\setkomavar{fromaddress}{Musterstr. 12\\34567 Musterstadt}

\begin{letter}{Dr. Moritz Busch\\Georgengarten\\30167 Hannover}
\opening{Mein lieber Freund,}
\closing{Bis bald,}


Image of MWE

  • Welcome to TeX - LaTeX! You should expand this answer with an example that shows the type of output produced. While it is not exactly what the author ask for it could be a useful step in the right direction and helpful to others. Jun 19, 2020 at 8:38
  • You are right the answer was very terse. It was essentially the stuff i was looking for when i landed here.
    – rnuske
    Jun 19, 2020 at 9:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .