- Questo topic ha 0 risposte, 1 partecipante ed è stato aggiornato l'ultima volta 18 anni, 9 mesi fa da .
-
Topic
-
Salve,sto provando a fare una lettera usando la classe di Komascript, In particolare vorrei fare un intestazione composta da due loghi e dal mittente.
Il problema che non riesco ad avere un giusto allineamento.
Vorrei che i loghi fossero allineati in fondo e il testo in cima ai loghi.Riporto il codice:
file principale:
`
\documentclass[parskip=half*,ngerman]{scrlttr2}
….
\LoadLetterOption{malloroca_kopf}
….
\begin{document}\begin{letter}{….}
\opening{….}
\end{letter}
\end{document}`
file lco
`
\ProvidesFile{mallorca_kopf.lco}[%
2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]\KOMAoptions{enlargefirstpage=true}
\RequirePackage
{geometry}
\LoadLetterOption{DIN}%% Header und Footer \textwidth-Breite
%% => zusammen mit geometry-Paket wird so strikte DIN5008-Konformitaet erreicht.
\@setplength{firstheadwidth}{\textwidth}
\@setplength{firstfootwidth}{\textwidth}
\@setplength{fromrulewidth}{\textwidth}
\@setplength{toaddrhpos}{\oddsidemargin}
\@addtoplength{toaddrhpos}{1in}% Load graphicx package
\RequirePackage{graphicx}% Define some new variable:
\newkomavar{leftlogo}
\newkomavar{rightlogo}
\newkomavar{name}
\newkomavar{address}
\newkomavar{phone}
\newkomavar{handy}% Define letter head dimensions
\@newplength{leftlogowidth}
\@newplength{rightlogowidth}
\@setplength{leftlogowidth}{6cm}
\@setplength{rightlogowidth}{4cm}%Sets the new vars
\setkomavar{leftlogo}{\includegraphics[width=\useplength{leftlogowidth}]{tu.jpg}}
\setkomavar{rightlogo}{\includegraphics[width=\useplength{rightlogowidth}]{io.jpg}}
\setkomavar{name}{bbbbb bbbbbbb b\\bbbbb bbbbbbb b}
\setkomavar{address}{bbbbb bbbbbbb b,bbbbb bbbbbbb b\\ciao ciao ciao ciao}
\setkomavar{phone}[Telefon:]{+39 0000000}
\setkomavar{handy}[Handy:]{+39 0000000}\firsthead{%
\parbox[t]{6cm}{\usekomavar{leftlogo}}
\parbox{4cm}{\usekomavar{rightlogo}}
\hfill
\parbox[t]{5cm}{%
\textbf{\usekomavar{name}\\
\usekomavar{address}\\
\usekomavar{phone}\\
\usekomavar{handy}}
}
}%end of head\endinput
`
Grazie.
- Devi essere connesso per rispondere a questo topic.