Page LayoutKOMA-Script | Text Height Problem

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
marchov
Posts: 2
Joined: Fri Aug 03, 2012 9:24 pm

KOMA-Script | Text Height Problem

Post by marchov »

Dear members,

I have the following problem. I wrote on the beginning of this year a long text, which was working properly. Now, after four months I tried to compile the document again and arose a problem with the text size, page size respectively. The text (already in the DVI) is zoomed in the page in height, whereas the page number is only partially visible. :( (I didn't use geometry package.) Between the both compilations I changed the version of my Linux and expect, that this could be the reason of the problem. But I don't know how to repair this, without going back to the old version of my Linux. May be someone had the same problem?

Here I put a minimum version, you can include any text larger than 1 page. Can someone help me to rescale the text to a standard size?

Code: Select all

\documentclass[a4paper,
           12pt,
           titlepage,
           headinclude,
           headsepline,
           liststotoc,
           normalheadings,
           DIV15,
           idxtotoc,
           bibtotoc, 
           BCOR20mm]{scrbook} 
\usepackage{epsfig}
\usepackage{amsfonts, amsmath,amssymb}
\usepackage{graphics}
\usepackage{color} 
\usepackage{tikz} 
\linespread{1.2}

\begin{document}
\mainmatter
\pagestyle{headings}
%put any text larger than one page and look at page numbers.
\end{document}

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: KOMA-Script | Text Height Problem

Post by kaiserkarl13 »

I was about to say, "this works for me," until I realized you were probably using LaTeX->Postscript->PDF by way of latex then dvips then ps2pdf. If you run it through pdflatex, it works fine.

It's almost certainly a page size problem: try running "texconfig" and changing your dvips paper size to "A4" (which is what you're using in the document). My guess: it's printing an A4 document on US-Letter paper, thereby cutting off the page numbers at the bottom.

It might help to use the "dvips" option to the document class, but in my case it still prints on letter paper unless you configure dvips to use A4.
marchov
Posts: 2
Joined: Fri Aug 03, 2012 9:24 pm

Re: KOMA-Script | Text Height Problem

Post by marchov »

Dear kaiserkarl13,

thank You very much!!! You safe me lot of time.

Indeed, the problem was in the paper print of dvi. The compiling with pdflatex worked too!, but on one hand side I have lot of ps-images, and on the other hand, I am using also \usepackage{tikz} for some graphs...

"texconfig" did the work!!! It took me some minutes to recognize, that in order to use it I have to change to root. :)

Thank You! Best regards
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

KOMA-Script | Text Height Problem

Post by localghost »

If I have understood the problem right, the option pagesize for the document class should do also here. It writes the necessary information to the output so that the page dimensions are set correctly. For details about this option please refer to the KOMA-Script user guide.


Best regards and welcome to the board
Thorsten
Post Reply