25

How can i reduce the vertical space to the start of the letter?

\documentclass[fontsize=12pt,firstfoot=false]{scrlttr2} 

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{%
    ngerman,
    ae,
    times,  %% hier kann man die Schriftart einstellen
    graphicx,
    url}

\KOMAoptions{paper=a4,
fromalign=center,
fromrule=aftername,
backaddress=true,
parskip=half,
enlargefirstpage=true} 

\setkomavar{fromname}{need less space to the very top at the page}      

\let\raggedsignature=\raggedright       

\firsthead{
}

\begin{document}

 \begin{letter}{
    Adress
    }       
 \begin{small}

\opening{opening}

Stuff

\closing{Kind regards}
\end{small}

\end{letter}

\end{document}
  • 8
    Are you sure this is an appropriate thread title for this site? I mean, trust me, I swear like a drain, I really like it, I think it's very important, but how are you gonna expect people to want to help you if you pose such a combative question? Especially, remember, as this is a site populated by TeX-LaTeX enthusiasts, who really rather like what it does and how it does it – Au101 Dec 17 '15 at 21:29
  • 8
    I'm afraid that making the rest of your life better is not only off-topic, but too broad, primarily opinion-based and unclear. – cfr Dec 17 '15 at 21:33
  • 11
    Please don't downvote below a score of -1, even if the question in its current form needs some improvement. A score of -1 is enough to show that the question needs work, anything below that is of no use. Also, if you downvote or vote to close, please leave a comment explaining why you did so, but wait at least 24 hours after asking the OP for improvements to the question before voting to close. Don't forget: it's a new user! – Sean Allred Dec 17 '15 at 21:37
  • 14
    Please, close voters: closing this question as 'Too broad' (the current reason that two people have voted for) is ridiculous. There is such a thing as pragmatics, and to take the OP's first statement as a literal request is to be as uncooperative a reader as one can imagine. The question as it stands is reasonably clear, contains a MWE and is in no sense too broad. Let's be serious people. – Alan Munn Dec 17 '15 at 22:36
  • 11
    This closing is unacceptable. Close voting is not a sport – Alan Munn Dec 17 '15 at 23:54
28

The scrlttr2 class loads the file DIN.lco as default. This file contains a parameter set for A4 paper and German window envelopes C4, C5, C6 and C6 long.

But there is another Letter Class Option file that reduces the space above the address: DINmtext.lco. Note that such a letter will not fit a C4 or C5 window envelope.

To load the Letter Class Option file DINmtext.lco use DINmtext as an option for the scrlttr2 class or insert \LoadLetterOption{DINmtext} in your preamble.

\documentclass[
  paper=a4,
  fontsize=12pt,
  firstfoot=false,
]{scrlttr2} 

\LoadLetterOption{DINmtext}% <- loads DINmtext.lco

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}% <- instead package ngerman
\usepackage{%
    times,
    graphicx,
    url}

\KOMAoptions{
  fromalign=center,
  fromrule=aftername,
  backaddress=true,
  parskip=half,
  enlargefirstpage=true,
} 

\setkomavar{fromname}{need less space to the very top at the page}      

\renewcommand*{\raggedsignature}{\raggedright}% <-redefining \raggedsignature    

\setkomavar{firsthead}{ % <- the command \firsthead is outdated, use \setkomavar{firsthead}{...} instead
}

\begin{document}
\begin{letter}{
      Adress
      }       
  \small% <- it is a switch but not an environment
  \opening{opening}
  Stuff
  \closing{Kind regards}
\end{letter}
\end{document}

enter image description here


But may be you want to top align the address in the address field. Then add addrfield=topaligned to your KOMA Option list:

\KOMAoptions{
  fromalign=center,
  fromrule=aftername,
  backaddress=true,
  parskip=half,
  enlargefirstpage=true,
  addrfield=topaligned %< added
} 

enter image description here

  • Thank You. I posted my question here because i get many help in past when google guided me to here. Thats just the point. So thank You and have a nice day! – viertro Dec 19 '15 at 12:29
  • 5
    @viertro: Instead of writing a thank you comment only, consider to accept esdd solution and thereby appreciating her work and efforts to help you. – user31729 Dec 25 '15 at 22:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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