Page Layoutscrlttr2: how to tighten the margins of a letter

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
renato07
Posts: 12
Joined: Sat Feb 07, 2015 8:37 pm

scrlttr2: how to tighten the margins of a letter

Post by renato07 »

Hi,
I'm using scrlttr2 class, to create my letterhead.
I've done 90% of work (header with my logo, footer with information), but I find the letter too wide.
I think I can tighten the margin (to obtain a 66 character per line, as latex racomandation sudgest) setting somethings on the documentclass parameter, but I don't know wich one.
Or, maybe, I had to do somethings else.

I include my list. So everyone can see what I mean

Code: Select all

Code, edit and compile here:
\documentclass[paper=a4, backaddress=false, headlines=0, headinclude=true]{scrlttr2}
\usepackage[italian]{babel}
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage{lipsum}
%-------------setting koma variable
\setkomavar{fromname}{Renato}
\setkomavar{fromaddress}{ Via delle Redini\\Ort}
\setkomavar{fromphone}{90}
\newkomavar[Mobil: ]{frommobil}
\setkomavar{frommobil}{97}
\setkomavar{fromemail}{ma}
\setkomavar{signature}{Musterschüler}
\setkomavar*{fromphone}{Tel. }
%\@setplength{fromrulethickness}{1pt}% change the thickness, default is 0.4pt
%\renewcommand{\headrulewidth}{0pt}
%\renewcommand{\footrulewidth}{0.4pt}
%---------------intestazione--------------
\setkomavar{firsthead}{\includegraphics[]{logo2.eps}
% \usekomavar{fromname} \textbullet\ \usekomavar{fromaddress} \\ \usekomavar{fromphone}
}
%----------------intestazione seconda pagina----------------
% \setkomavar{nexthead}{\usekomavar{fromname} \textbullet\ \usekomavar{fromaddress} \\ \usekomavar{fromphone} }
%-------------------piè di pagina ------------------
\setkomavar {firstfoot}{\tiny
\begin{tabularx}{\textwidth}{|X|X|X|}
\textbf{sede Legale}&\textbf{sede Amministrativa}&\textbf {tel.} 0xx5 38 28 34 - \textbf{fax } 0xx5 98 38 78\\
Via xxbriele &Via xxasimeno xxes&\\
xxx27 xxx&xxx xxo xxgia&xxx@gmail.com\\
\end{tabularx}}
%} % closing bracket
\LoadLetterOption{SN} %---------posiziona indirizzo a sinistra----------
\begin{document}
\pagestyle{headings}
\begin{letter}{Name \\ adress \\ Zip, Town}
\opening{Hi...,}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I hope you can help me.

TIA

Renato

Recommended reading 2024:

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

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

scrlttr2: how to tighten the margins of a letter

Post by Johannes_B »

Hi and welcome,

as part of KOMA-script, package typearea takes care of the text block. That means everthing explained in chapter 2 of the KOMA documentation applies. You can play around with the DIV-value to change the margins (and hence the textblock) or use package geometry to define the left and right margins completely by hand.


btw: scrlttr2 provides the variable frommobilephone which is preset to say Telefonino en italiano ;-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
renato07
Posts: 12
Joined: Sat Feb 07, 2015 8:37 pm

Re: scrlttr2: how to tighten the margins of a letter

Post by renato07 »

Hi Joanes,
I've read the manual, where you told me :shock: .
And the body of the letter is ok, just using DIV (documentclass[a4paper,DIV=10]{scrlttr2})

But header and footer still range from left to right of the page.
Is there a way to add (a kind of) DIV=10 in header and footer?

Renato
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

scrlttr2: how to tighten the margins of a letter

Post by Johannes_B »

This is in the advanced section for scrlttr2, if i remember correctly. You have to adjust the pseudolength. Header and footer are not controlled by stuff of typearea or geometry.

There is a reason for that, prevent the author from doing strange stuff. If you change the position of the adresse field for example, the letter will not be correctly aligned within a windowed envelope. If you really want to do that, please refer to scrlttr2 location positioning question.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply