Re: vspace
- From: Ulrike Fischer <news@xxxxxxxxxxx>
- Date: Wed, 1 Mar 2006 14:44:00 +0000 (UTC)
"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 @.
.
- Follow-Ups:
- Re: vspace
- From: Heiko Oberdiek
- Re: vspace
- References:
- vspace
- From: Michael
- vspace
- Prev by Date: Customising the listing environment
- Next by Date: Re: Customising the listing environment
- Previous by thread: Re: vspace
- Next by thread: Re: vspace
- Index(es):
Relevant Pages
|