GeneralProblem with textheight

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
broda1000
Posts: 4
Joined: Tue Feb 05, 2008 3:33 pm

Problem with textheight

Post by broda1000 »

Hi!
I've got a problem with textheight. I can't change the textheight for the first page in my \fancypagestyle{firstpage}. I want to put \textheight = 400pt in the first page and \textheight = 609pt in the other pages.
How do I do this?
I've attached my full code.

Thanks in advance
Attachments
wynik.tex
(15.73 KiB) Downloaded 473 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with textheight

Post by localghost »

Since you are already using geometry, you could try to change the type area where needed. The documentation of geometry should show how this can be done. I never did that so I can't give any details.

It seems to me like you are doing an invoice. If my assumption is correct, you should take a look at invoice or isodoc.


Best regards and welcome on Board
Thorsten
broda1000
Posts: 4
Joined: Tue Feb 05, 2008 3:33 pm

Re: Problem with textheight

Post by broda1000 »

I've tried to find a way how to fix the wrong textheight on the first page (other pages are ok), but i'm unable to do that. You can see the wrong formatting on the first page by generate a dvi document.
Thanks for your links localghost, that could be usefull (i didn't know about them), but now I've got to fix the problem in my document without large modifications.
Has anyone any suggestions?
I'll be very thankful!
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: Problem with textheight

Post by Juanjo »

Since you do not attach the file Ep1.eps, it is not possible to reproduce exactly the document you see. To figure out how it is, I have replaced \includegraphics[width = 4cm, height = 1cm]{Ep1.eps} by \rule{4cm}{1cm}. Theoretically, the black rectangle produced by \rule occupies the same space as the graphic. However, I do not see any problem in the resulting document. Is it possible that the graphic can cause some trouble?
broda1000
Posts: 4
Joined: Tue Feb 05, 2008 3:33 pm

Re: Problem with textheight

Post by broda1000 »

I'm so sorry, I've attached the old verion of document. Now i send the right .tex file.
Attachments
wynik2.tex
(30.41 KiB) Downloaded 470 times
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: Problem with textheight

Post by Juanjo »

Before the longtable environment, add \enlargethispage{-100pt} or something similar. It seems that lengths cannot be modified inside pagestyle definitions.

By the way, you can remove the packages you do not actually use: eso-pic, lastpage, array, graphics, multirow. You also load helvet twice.
broda1000
Posts: 4
Joined: Tue Feb 05, 2008 3:33 pm

Re: Problem with textheight

Post by broda1000 »

Many thanks, that has solved my problem.
Post Reply