Re: vspace



"Michael" <michael.massmann@xxxxxxxxxxx> schrieb:

Dear all,

I am trying to move a longtable on the first page of my document up, to
align with the header on subsequent pages (created using fancyhdr). Yet
the vspace{-2cm} or vspace*{-2cm} do not seem to have an effect! I have
read items in the comp.text.tex archive and have the impression that
vspace is indeed nontrivial to use at the top of a page -- yet could
not figure out a solution to my problem. Below is my preamble and a
representative longtable. Any help or comment is appreciated! Thanks.

\vspace* works in most cases, but longtable has a quite complicated
output so it breaks here. I guess the easiest would be to temporarly
change the headsep to move the tabular.

\documentclass[11pt,a4paper]{article}
\usepackage{longtable,fancyhdr}
\pagestyle{fancy}
\lhead{test}

\begin{document}
test

\newpage
\addtolength{\headsep}{-3cm}
\enlargethispage{3cm}
\begin{longtable}{p{0.22\textwidth}p{0.73\textwidth}}
next line & next line\\
\end{longtable}


\newpage
\addtolength{\headsep}{3cm}
test

\end{document}


--
Ulrike Fischer
e-mail: zusätzlich meinen Vornamen vor dem @ einfügen.
e-mail: add my first name between the news and the @.
.



Relevant Pages

  • Re: vspace
    ... Ulrike Fischer wrote: ... align with the header on subsequent pages. ...
    (comp.text.tex)
  • vspace
    ... align with the header on subsequent pages (created using fancyhdr). ... % fancy header package for defining contentx of header and footer ...
    (comp.text.tex)
  • Re: Creating a letterhead with continuation pages
    ... different 1st page and subsequent pages will have the different ... Try creating the first page with the header. ... > The only time you might run into problems is if you create PDF and you ... >> Intel I can just about manage to create a letterhead template but I ...
    (microsoft.public.mac.office.word)
  • Re: Automatic copying of text from 1 page to another in Word docum
    ... you need to put these fields on the subsequent ... > pages unless you put them in a continuation page header. ... > This message is posted to a newsgroup. ...
    (microsoft.public.word.newusers)
  • Re: Creating a letterhead with continuation pages
    ... You just have to do as Phillip mentions, use a different 1st page and subsequent pages will have the different header/footer. ... Try creating the first page with the header. ... >> Intel I can just about manage to create a letterhead template but I ...
    (microsoft.public.mac.office.word)