TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to avoid overlapping of the header and text?

 \documentclass{article}
    \usepackage[utf8]{inputenc}
    \usepackage[russian]{babel} 
    \usepackage{multirow,tabularx}
    \usepackage[a4paper,margin=1in,landscape]{geometry}
    \usepackage{fancyhdr}

    \pagestyle{fancy}

    \rhead{
    \begin{tabularx}{\textwidth}{X  X  X  X  }
    LOGO & \small{Класс документа: }    & \small{Id  документа}   & \small{Название документа:}     \\
     &\small{Корректирующие мероприятия}        & \small{1748365}        & \small{САРА 1748365}         \\
    &\small{Тип документа:}    &  & \small{Страница в документе:}  \\ %\№ Версии документа:
    &\small{CAPА}    &   & \small{\thepage}   \\
    \end{tabularx}
    }
\begin{document}
    \begin{center}
    {\large \textbf{\textsc{Корректирующие и предупреждающие действия (САРА) № 123 }}
    \end{center}

    \end{document}

enter image description here

share|improve this question
1  
\begin{document} is missing – touhami Feb 12 at 8:42
    
@touhami thanks, fixed it! – Lucky_girl Feb 12 at 8:53
up vote 4 down vote accepted

You must add in geometry definition the right place for the header :

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel} 
\usepackage{multirow,tabularx}
\usepackage[a4paper,margin=3cm,landscape, headsep=24pt, headheight=2cm]{geometry}
\usepackage{fancyhdr}

\pagestyle{fancy}

\rhead{
\begin{tabularx}{\textwidth}{X  X  X  X  }
LOGO & \small{Класс документа: }    & \small{Id  документа}   & \small{Название документа:}     \\
 &\small{Корректирующие мероприятия}        & \small{1748365}        & \small{САРА 1748365}         \\
&\small{Тип документа:}    &  & \small{Страница в документе:}  \\ %\№ Версии документа:
&\small{CAPА}    &   & \small{\thepage}   \\
\end{tabularx}
}

\begin{document}
\begin{center}
  {\large \textbf{\textsc{Корректирующие и предупреждающие действия (САРА) № 123 }}}
  \end{center}

\end{document}

enter image description here

share|improve this answer
    
Thank you! How to hide a line between header and text? – Lucky_girl Feb 12 at 8:52
1  
Put this before \begin{document} for header : \renewcommand{\headrulewidth}{0pt} and for footer : \renewcommand{\footrulewidth}{0pt} – flav Feb 12 at 8:53
    
@flaw thank you! – Lucky_girl Feb 12 at 8:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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