LaTeX forum ⇒ Page LayoutHeader for a Letter

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

Header for a Letter

Postby dimvez » Thu Apr 11, 2013 11:58 am

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:
  1. \documentclass[letterpaper,fleqn,11pt]{letter}
  2. \usepackage[english,greek]{babel}
  3. \usepackage[utf8x]{inputenc}
  4. \usepackage{lmodern}
  5. \usepackage[scale=0.9]{geometry}
  6. \usepackage{amsmath}
  7. \usepackage{supertabular}
  8. \usepackage{hyperref}
  9. \usepackage{xcolor,graphicx}
  10. \usepackage{epsfig}
  11. \setlength{\parindent}{0pt}
  12. \addtolength{\parskip}{6pt}
  13. \newcommand{\en}{\selectlanguage{english}}
  14. \newcommand{\gr}{\selectlanguage{greek}}
  15. \gr
  16. \address{{\en GM HOME STORE}\\Γ.Μπ \& ΣΙΑ Ε.Β.Ε.Ε\\ Λ.Καραμανλή 83\\73100 ΧΑΝΙΑ-ΚΡΗΤΗ\\ \mbox{Τηλ.-{\en FAX}: 28210 }\\ \en EMAIL: \\ \en{WEB: }}
  17. \signature{ Νικόλαος}
  18. \longindentation=400pt
  19. \usepackage{graphicx}
  20. \makeatletter
  21. \newif\if@xl@logo
  22. \@xl@logofalse
  23. \def\setlogo#1{\@xl@logotrue\gdef\xl@companylogo{#1}}
  24. \setlogo{GM-iino}
  25.  
  26. \def\printlogo{%
  27. \if@xl@logo
  28. \includegraphics[width=1.0\textwidth]{./\xl@companylogo}\par%
  29. \fi
  30. }
  31. \AtBeginDocument{\printlogo}
  32. \begin{document}
  33. \begin{letter}
  34. {\bf{ΘΕΜΑ: Τοποθέτηση προβολέων σε γήπεδα ποδοσφαίρου σε πυλώνες 7 μέτρων.}}
  35.  
  36. \opening{}
  37. \begin{tabular}{|c|c|c|c|c|}
  38. \hline
  39. {\bf ΠΕΡΙΓΡΑΦΗ}&{\bf ΧΑΡΑΚΤΗΡΙΣΤΙΚΑ}&{\bf ΤΕΜΑΧΙΑ}&{\bf ΤΙΜΗ ΜΟΝΑΔΑΣ}&{\bf ΣΥΝΟΛΟ}\\
  40. \hline {\en Executive series}&220 {\en W}&20& €& €\\
  41. \hline & & &ΦΠΑ :& €\\
  42. \hline
  43. \end{tabular}\\
  44. \\
  45. \\
  46. \begin{center}
  47. {\bf ΤΙΜΗ ΠΡΟΣΦΟΡΑΣ {\en PROJECT} : €}
  48. \end{center}
  49. \vspace{20mm}
  50. \begin{flushleft}
  51. \textit{Υ.Γ: Η προσφορά ισχύει για ένα χρονο.}
  52. \end{flushleft}
  53. \vspace{20mm}
  54. \closing{Ηλεκτρολόγος Τ.Ε}
  55.  
  56. \end{letter}
  57. \end{document}

The necessary header file is attached.
Attachments
GM-iino.jpg
GM-iino.jpg (50.34 KiB) Viewed 2107 times
Last edited by localghost on Thu Apr 11, 2013 12:03 pm, edited 1 time in total.
Reason: Source code has to be tagged as such to keep a post clear and legible (see Board Rules).

Tags:

Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 2 guests