maetic
08-05-2011, 20:25
hallo,
bin gerade dabei mich zu bewerben und schreibe das anschreiben mit latex, hab mir dazu eine vorlage ausm netz gezogen. jetzt ist das problem, dass das nicht ganz auf eine seite passt, ich möchte gerne die anschrift der firma nach oben ziehen, ich pack das aber nicht, kann mir jemand helfen???
\documentclass
%---------------------------------------------------------------------------
[fontsize=12pt,%% Font size
%---------------------------------------------------------------------------
% Type area
paper=a4,%% Sheet size
enlargefirstpage=true,%% Enlarge the first page
pagenumber=headright,%% Page number on the top right of the header
%---------------------------------------------------------------------------
% Layout
headsepline=on,%% Line below the page number
parskip=half,%% Space between paragraphs
%---------------------------------------------------------------------------
% Letterhead and address
fromalign=right,%% Positioning of the letterhead
fromphone=on,%% Phone number in the sender's area
fromrule=off,%% Line below the sender's area (aftername, afteraddress)
fromfax=off,%% Fax number
fromemail=off,%% Mail address
fromurl=off,%% Homepage
fromlogo=off,%% Company logo
addrfield=on,%% Adress field for window envelopes
backaddress=on,%% ... with sender address
subject=beforeopening,%% Positioning of the subject
locfield=narrow,%% Additional field for the sender
foldmarks=off,%% Folding mark
numericaldate=off,%% Numerical date
refline=narrow,%% Spread of the reference line in the type area
%---------------------------------------------------------------------------
% Formatting
draft=on%% Draft mode
]{scrlttr2}
%---------------------------------------------------------------------------
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
%\usepackage{url}
%---------------------------------------------------------------------------
% Aus der moderncvstylecasual.sty:
\usepackage{lmodern}
\usepackage{color}
\usepackage{marvosym} % symbols for footer
\usepackage{ifthen}
\usepackage{blindtext}
\definecolor{blau}{rgb}{0.20,0.40,0.65} %blau
% \definecolor{gruen}{rgb}{0.30,0.65,0.15} %gruen
% \definecolor{rot}{rgb}{0.95,0.20,0.20} %rot
% \definecolor{orange}{rgb}{0.95,0.55,0.15} %rot
\definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}
\definecolor{familynamecolor}{rgb}{0.45,0.45,0.45}
\definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.1 5}
\definecolor{addresscolor}{rgb}{0.35,0.35,0.35} %grau
\newcommand*{\addressfont}{\small\sffamily\mdserie s\slshape}
\newcommand{\footersymbol}{~~\color{blau}\normalfo nt\textbullet\color{addresscolor}\addressfont~~~}
%---------------------------------------------------------------------------
% Fonts
\setkomafont{fromname}{\sffamily \LARGE}
\setkomafont{fromaddress}{\sffamily}%% Instead of \small
\setkomafont{pagenumber}{\sffamily}
\setkomafont{subject}{\mdseries}
\setkomafont{backaddress}{\mdseries}
\usepackage{mathptmx}%% Font Times
% \usepackage{mathpazo}%% Font Palatino
% \setkomafont{fromname}{\LARGE}
%---------------------------------------------------------------------------
\begin{document}
%---------------------------------------------------------------------------
% Letter style and positioning of the letterhead
\LoadLetterOption{KOMAold} %% or: DIN, DINmtext, SN, SNleft, KOMAold.
\makeatletter
\@setplength{sigbeforevskip}{50pt} % space before signature, in case you write bigger than 12pt :-]
\@setplength{firstfootvpos}{275mm} % vertical footer position from top of page
\@setplength{firstheadvpos}{10mm}
\@setplength{firstheadwidth}{\paperwidth}
\ifdim \useplength{toaddrhpos}>\z@
\@addtoplength[-2]{firstheadwidth}{\useplength{toaddrhpos}}
\else
\@addtoplength[2]{firstheadwidth}{\useplength{toaddrhpos}}
\fi
\@setplength{foldmarkhpos}{6.5mm}
\makeatother
%---------------------------------------------------------------------------
% Sender information
\newcommand{\myFirstname}{Vorname}
\newcommand{\myFamilyname}{Name}
\newcommand{\myStreet}{Stra"se 9}
\newcommand{\myTown}{Stadt}
\newcommand{\myZipcode}{12345}
\newcommand{\myPhone}{0123\,45678910}
% \newcommand{\myFax}{}
\newcommand{\myMail}{name@internet.de}
% \newcommand{\myExtrainfo}{foobar}
\newcommand{\myName}{\myFirstname\ \myFamilyname}
\newcommand{\myAddress}{\myStreet\ \myZipcode\ \myTown}
% insert information into koma
\setkomavar{fromname}{\myFirstname\ \myFamilyname}
\setkomavar{fromaddress}{\myAddress}
\setkomavar{fromphone}{\myPhone}
\renewcommand{\phonename}{Phone}
\setkomavar{fromemail}{\myMail}
\setkomavar{backaddressseparator}{. }
\setkomavar{signature}{(\myFirstname\ \myFamilyname)}
% \setkomavar{frombank}{}
% \setkomavar{location}{\\[8ex]\raggedleft{\footnotesize{\usekomavar{fromaddress} \\Phone:\ usekomavar{fromphone}}}}%% Beside the address field
%---------------------------------------------------------------------------
\firsthead{
\begin{flushright}
\renewcommand{\baselinestretch}{0.8}
\Large\color{firstnamecolor}\myFirstname\ \color{familynamecolor}\myFamilyname\\
\parbox{\textwidth}{\color{blau}\rule{\textwidth}{ 1pt}}
\small\color{black}\myStreet\\\myZipcode\ \myTown
\end{flushright}
}
%---------------------------------------------------------------------------
\firstfoot{
\centering
\parbox{0.8\textwidth}{
\centering
\addressfont\color{addresscolor}
\myStreet\ --\ \myZipcode\ \myTown\\
\ifthenelse{\isundefined{\myCell}}{}{\Mobilefone~\ myCell}
\ifthenelse{\isundefined{\myPhone}}{}{\footersymbo l\Telefon~\myPhone}
\ifthenelse{\isundefined{\myFax}}{}{\footersymbol\ FAX~\myFax}
\ifthenelse{\isundefined{\myMail}}{}{\footersymbol \Letter~\myMail}
\ifthenelse{\isundefined{\myExtrainfo}}{}{\\\myExt rainfo}
}
}
%---------------------------------------------------------------------------
% Fields of business line
\setkomavar{place}{\myTown}
% \setkomavar{placeseparator}{, }
\setkomavar{date}{\today}
% \setkomavar{yourmail}{1. 1. 2009}%% 'Your writing ...'
% \setkomavar{yourref} {abcdefg}%% 'Your reference ...'
% \setkomavar{myref}{}%% 'Our reference ...'
% \setkomavar{invoice}{123}%% 'Invoice number ...'
% \setkomavar{phoneseparator}{}
%---------------------------------------------------------------------------
% Shipping notice
% \setkomavar{specialmail}{Recommand\'{e} avec avis de r\'{e}ception}
%---------------------------------------------------------------------------
% Redefine enclosure
% \renewcommand{\enclname}{Enclosure}
\setkomavar{enclseparator}{: }
%---------------------------------------------------------------------------
% Page style
\pagestyle{plain}%% No header
%---------------------------------------------------------------------------
\begin{letter}{Muster GmbH \& Co. KG\\- Personalabteilung -\\Musterstra"se 2\\12345 Musterstadt}
%---------------------------------------------------------------------------
% Further options
\KOMAoptions{%%
}
\enlargethispage{5cm}
%---------------------------------------------------------------------------
\setkomavar{subject}{\textcolor{blau}{Bewerbung als ...}}
%---------------------------------------------------------------------------
\opening{Sehr geehrte Damen und Herren,}
\blindtext
\blindtext
\closing{Mit freundlichen Grü"sen}
%---------------------------------------------------------------------------
% \ps{PS:}
%\vfill
%\encl{Lebenslauf\\Zeugnisse}
% \cc{}
%---------------------------------------------------------------------------
\end{letter}
%---------------------------------------------------------------------------
\end{document}
%--------------
bin gerade dabei mich zu bewerben und schreibe das anschreiben mit latex, hab mir dazu eine vorlage ausm netz gezogen. jetzt ist das problem, dass das nicht ganz auf eine seite passt, ich möchte gerne die anschrift der firma nach oben ziehen, ich pack das aber nicht, kann mir jemand helfen???
\documentclass
%---------------------------------------------------------------------------
[fontsize=12pt,%% Font size
%---------------------------------------------------------------------------
% Type area
paper=a4,%% Sheet size
enlargefirstpage=true,%% Enlarge the first page
pagenumber=headright,%% Page number on the top right of the header
%---------------------------------------------------------------------------
% Layout
headsepline=on,%% Line below the page number
parskip=half,%% Space between paragraphs
%---------------------------------------------------------------------------
% Letterhead and address
fromalign=right,%% Positioning of the letterhead
fromphone=on,%% Phone number in the sender's area
fromrule=off,%% Line below the sender's area (aftername, afteraddress)
fromfax=off,%% Fax number
fromemail=off,%% Mail address
fromurl=off,%% Homepage
fromlogo=off,%% Company logo
addrfield=on,%% Adress field for window envelopes
backaddress=on,%% ... with sender address
subject=beforeopening,%% Positioning of the subject
locfield=narrow,%% Additional field for the sender
foldmarks=off,%% Folding mark
numericaldate=off,%% Numerical date
refline=narrow,%% Spread of the reference line in the type area
%---------------------------------------------------------------------------
% Formatting
draft=on%% Draft mode
]{scrlttr2}
%---------------------------------------------------------------------------
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
%\usepackage{url}
%---------------------------------------------------------------------------
% Aus der moderncvstylecasual.sty:
\usepackage{lmodern}
\usepackage{color}
\usepackage{marvosym} % symbols for footer
\usepackage{ifthen}
\usepackage{blindtext}
\definecolor{blau}{rgb}{0.20,0.40,0.65} %blau
% \definecolor{gruen}{rgb}{0.30,0.65,0.15} %gruen
% \definecolor{rot}{rgb}{0.95,0.20,0.20} %rot
% \definecolor{orange}{rgb}{0.95,0.55,0.15} %rot
\definecolor{firstnamecolor}{rgb}{0.65,0.65,0.65}
\definecolor{familynamecolor}{rgb}{0.45,0.45,0.45}
\definecolor{footersymbolcolor}{rgb}{0.30,0.65,0.1 5}
\definecolor{addresscolor}{rgb}{0.35,0.35,0.35} %grau
\newcommand*{\addressfont}{\small\sffamily\mdserie s\slshape}
\newcommand{\footersymbol}{~~\color{blau}\normalfo nt\textbullet\color{addresscolor}\addressfont~~~}
%---------------------------------------------------------------------------
% Fonts
\setkomafont{fromname}{\sffamily \LARGE}
\setkomafont{fromaddress}{\sffamily}%% Instead of \small
\setkomafont{pagenumber}{\sffamily}
\setkomafont{subject}{\mdseries}
\setkomafont{backaddress}{\mdseries}
\usepackage{mathptmx}%% Font Times
% \usepackage{mathpazo}%% Font Palatino
% \setkomafont{fromname}{\LARGE}
%---------------------------------------------------------------------------
\begin{document}
%---------------------------------------------------------------------------
% Letter style and positioning of the letterhead
\LoadLetterOption{KOMAold} %% or: DIN, DINmtext, SN, SNleft, KOMAold.
\makeatletter
\@setplength{sigbeforevskip}{50pt} % space before signature, in case you write bigger than 12pt :-]
\@setplength{firstfootvpos}{275mm} % vertical footer position from top of page
\@setplength{firstheadvpos}{10mm}
\@setplength{firstheadwidth}{\paperwidth}
\ifdim \useplength{toaddrhpos}>\z@
\@addtoplength[-2]{firstheadwidth}{\useplength{toaddrhpos}}
\else
\@addtoplength[2]{firstheadwidth}{\useplength{toaddrhpos}}
\fi
\@setplength{foldmarkhpos}{6.5mm}
\makeatother
%---------------------------------------------------------------------------
% Sender information
\newcommand{\myFirstname}{Vorname}
\newcommand{\myFamilyname}{Name}
\newcommand{\myStreet}{Stra"se 9}
\newcommand{\myTown}{Stadt}
\newcommand{\myZipcode}{12345}
\newcommand{\myPhone}{0123\,45678910}
% \newcommand{\myFax}{}
\newcommand{\myMail}{name@internet.de}
% \newcommand{\myExtrainfo}{foobar}
\newcommand{\myName}{\myFirstname\ \myFamilyname}
\newcommand{\myAddress}{\myStreet\ \myZipcode\ \myTown}
% insert information into koma
\setkomavar{fromname}{\myFirstname\ \myFamilyname}
\setkomavar{fromaddress}{\myAddress}
\setkomavar{fromphone}{\myPhone}
\renewcommand{\phonename}{Phone}
\setkomavar{fromemail}{\myMail}
\setkomavar{backaddressseparator}{. }
\setkomavar{signature}{(\myFirstname\ \myFamilyname)}
% \setkomavar{frombank}{}
% \setkomavar{location}{\\[8ex]\raggedleft{\footnotesize{\usekomavar{fromaddress} \\Phone:\ usekomavar{fromphone}}}}%% Beside the address field
%---------------------------------------------------------------------------
\firsthead{
\begin{flushright}
\renewcommand{\baselinestretch}{0.8}
\Large\color{firstnamecolor}\myFirstname\ \color{familynamecolor}\myFamilyname\\
\parbox{\textwidth}{\color{blau}\rule{\textwidth}{ 1pt}}
\small\color{black}\myStreet\\\myZipcode\ \myTown
\end{flushright}
}
%---------------------------------------------------------------------------
\firstfoot{
\centering
\parbox{0.8\textwidth}{
\centering
\addressfont\color{addresscolor}
\myStreet\ --\ \myZipcode\ \myTown\\
\ifthenelse{\isundefined{\myCell}}{}{\Mobilefone~\ myCell}
\ifthenelse{\isundefined{\myPhone}}{}{\footersymbo l\Telefon~\myPhone}
\ifthenelse{\isundefined{\myFax}}{}{\footersymbol\ FAX~\myFax}
\ifthenelse{\isundefined{\myMail}}{}{\footersymbol \Letter~\myMail}
\ifthenelse{\isundefined{\myExtrainfo}}{}{\\\myExt rainfo}
}
}
%---------------------------------------------------------------------------
% Fields of business line
\setkomavar{place}{\myTown}
% \setkomavar{placeseparator}{, }
\setkomavar{date}{\today}
% \setkomavar{yourmail}{1. 1. 2009}%% 'Your writing ...'
% \setkomavar{yourref} {abcdefg}%% 'Your reference ...'
% \setkomavar{myref}{}%% 'Our reference ...'
% \setkomavar{invoice}{123}%% 'Invoice number ...'
% \setkomavar{phoneseparator}{}
%---------------------------------------------------------------------------
% Shipping notice
% \setkomavar{specialmail}{Recommand\'{e} avec avis de r\'{e}ception}
%---------------------------------------------------------------------------
% Redefine enclosure
% \renewcommand{\enclname}{Enclosure}
\setkomavar{enclseparator}{: }
%---------------------------------------------------------------------------
% Page style
\pagestyle{plain}%% No header
%---------------------------------------------------------------------------
\begin{letter}{Muster GmbH \& Co. KG\\- Personalabteilung -\\Musterstra"se 2\\12345 Musterstadt}
%---------------------------------------------------------------------------
% Further options
\KOMAoptions{%%
}
\enlargethispage{5cm}
%---------------------------------------------------------------------------
\setkomavar{subject}{\textcolor{blau}{Bewerbung als ...}}
%---------------------------------------------------------------------------
\opening{Sehr geehrte Damen und Herren,}
\blindtext
\blindtext
\closing{Mit freundlichen Grü"sen}
%---------------------------------------------------------------------------
% \ps{PS:}
%\vfill
%\encl{Lebenslauf\\Zeugnisse}
% \cc{}
%---------------------------------------------------------------------------
\end{letter}
%---------------------------------------------------------------------------
\end{document}
%--------------