TeXnik - Tips TeX and LaTeX


Welcome to the TeXnik website (under construction)

Header/Footer Examples
TUG logo

Main page

Index
UK FAQ
Documentation
Software
CTAN
Search CTAN:

Statistics

Google c.t.t.

Google d.c.t.t.

 


 


Examples for header/footer
All following examples can be used for header and/or footer, but only one of them is described here:
  1. a footer like

    is possible with Layout->Document->Pagestyle->fancy and
    \usepackage{calc}
    \renewcommand{\headrulewidth}{0pt}
    \newlength{\fminilength}%
    \setlength{\fminilength}{\textwidth-2\fboxsep-2\fboxrule}%
    \pagestyle{fancy}
    \lfoot{\noindent\fbox{%
        \begin{minipage}{\fminilength}%
          \ttfamily\upshape Text A\hfill Text B
        \end{minipage}%
      }}
    \cfoot{}
  2. to get a header for the letter class for following pages you can activate Layout->Document->Pagestyle->headings. Than you'll get the default. An own style like

    is possible with
    \newlength{\mySendto}
    \renewcommand\@oddhead{%
      \settowidth{\mySendto}{\toaddress}%
      \parbox[t]{0.45\columnwidth}{%
         \begin{tabbing}
            \textbf{\headtoname{}:} \=\toname{}\\
             \>\parbox[b]{\mySendto}{\toaddress}
         \end{tabbing}%
        }\hfill\parbox[t]{0.45\columnwidth}{\flushright\pagename{} \thepage}%
    }
    Together with the babel package you also get the language specific sendto page.
  3. An example for a header with different parboxes.

    neader0.png


Double headrule



Colored headrule


local time: Wed Oct 23 22:53:51 CEST 2019 ; file is: 119.250335648148 days old
contact webmaster _at_ TeXnik.de