Page LayoutHeader for a Letter

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
dimvez
Posts: 1
Joined: Wed Apr 10, 2013 10:47 pm

Header for a Letter

Post by dimvez »

Hello,

I am a new member at the LaTeX community and I am facing a problem with a document. I am trying to compose a letter and I need to add a header image. When I try to compile the .tex the outcome is far from desirable, meaning that at the first page it shows only the header and the rest of the document begins from the second page. Can anyone give me some help?

Here is the code:

Code: Select all

\documentclass[letterpaper,fleqn,11pt]{letter}
\usepackage[english,greek]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{lmodern}
\usepackage[scale=0.9]{geometry}
\usepackage{amsmath}
\usepackage{supertabular}
\usepackage{hyperref}
\usepackage{xcolor,graphicx}
\usepackage{epsfig}
\setlength{\parindent}{0pt}
\addtolength{\parskip}{6pt}
\newcommand{\en}{\selectlanguage{english}}
\newcommand{\gr}{\selectlanguage{greek}}
\gr
\address{{\en GM HOME STORE}\\Γ.Μπ \& ΣΙΑ Ε.Β.Ε.Ε\\ Λ.Καραμανλή 83\\73100 ΧΑΝΙΑ-ΚΡΗΤΗ\\ \mbox{Τηλ.-{\en FAX}: 28210 }\\ \en EMAIL: \\ \en{WEB: }}
\signature{ Νικόλαος}
\longindentation=400pt
\usepackage{graphicx}
\makeatletter
\newif\if@xl@logo
\@xl@logofalse
\def\setlogo#1{\@xl@logotrue\gdef\xl@companylogo{#1}}
\setlogo{GM-iino}

\def\printlogo{%
\if@xl@logo
\includegraphics[width=1.0\textwidth]{./\xl@companylogo}\par%
\fi
}
\AtBeginDocument{\printlogo}
\begin{document}
\begin{letter}
{\bf{ΘΕΜΑ: Τοποθέτηση προβολέων σε γήπεδα ποδοσφαίρου σε πυλώνες 7 μέτρων.}}

\opening{}
\begin{tabular}{|c|c|c|c|c|}
\hline
{\bf ΠΕΡΙΓΡΑΦΗ}&{\bf ΧΑΡΑΚΤΗΡΙΣΤΙΚΑ}&{\bf ΤΕΜΑΧΙΑ}&{\bf ΤΙΜΗ ΜΟΝΑΔΑΣ}&{\bf ΣΥΝΟΛΟ}\\
\hline {\en Executive series}&220 {\en W}&20& €& €\\
\hline & & &ΦΠΑ :& €\\
\hline
\end{tabular}\\
\\
\\
\begin{center}
{\bf ΤΙΜΗ ΠΡΟΣΦΟΡΑΣ {\en PROJECT} : €}
\end{center}
\vspace{20mm}
\begin{flushleft}
\textit{Υ.Γ: Η προσφορά ισχύει για ένα χρονο.}
\end{flushleft}
\vspace{20mm}
\closing{Ηλεκτρολόγος Τ.Ε}

\end{letter}
\end{document}
The necessary header file is attached.
Attachments
GM-iino.jpg
GM-iino.jpg (50.34 KiB) Viewed 3689 times
Last edited by localghost on Thu Apr 11, 2013 12:03 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply