TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to see the "text boundaries" of an LNCS document to check whether my floats fit, as the package pageframe offers to do. I can't get it to work, unfortunately.

  • \documentstyle[pageframe]{book} wouldn't fit here, afaik since \documentclass{llncs} is how I should declare the document.
  • \documentclass[pageframe]{llncs} seems to ignore it.
  • \usepackage{pageframe} complains about \paperheight but I don't seem to be able to set that length.

Has anybody managed to use this package or to otherwise have the text box of a LNCS document displayed ?

share|improve this question
pageframe seems to be deprecated (it is written for LaTeX 2.09). Don't you get an overfull hbox if your float extends into the margin? Note that you can use the draft option to visualize these. – Michael Ummels Mar 23 '11 at 10:27
up vote 8 down vote accepted

The showframe package can help with this:


share|improve this answer
@Brent: In my opinion this shouldn't be an answer but a comment to the question. In general, posting questions in an answer is somewhat dubious I think. – Hendrik Vogt Mar 27 '11 at 11:04
@Hendrik: Just criticism. I've transmogrified it into a brief answer – Brent.Longborough Mar 27 '11 at 12:33
@Brent: Thanks. I'm not sure what you mean by "just criticism"; I certainly didn't mean to offend you :-) – Hendrik Vogt Mar 27 '11 at 12:55
@Hendrik: That was just as in "justice/gerechte", not just as in "only/nur". No offense ever taken... – Brent.Longborough Mar 27 '11 at 13:18
@Brent: Ah, OK, thanks for enlightening me. I seem to be a bit slow on the uptake today. (I actually do know that this "just" is what the name "Justus" is based on.) – Hendrik Vogt Mar 27 '11 at 13:56

It is possible to use PGF/TikZ to draw a rectangle around the text area (or the whole page etc.).

I modified my answer to Stretching a framebox over the whole page so it draws the rectangle around the full text area.

In my test it works well with the llncs class and others. You can place it in the footer then it is inserted on any page. Note that the rectangle goes to the baseline of the last line, i.e. the lower parts of the text go below it. That's normal and shouldn't be a problem in your case.



\begin{tikzpicture}[overlay,remember picture]
    % Helper nodes
    \path (current page.north west) ++(\hoffset, -\voffset)
        node[anchor=north west, shape=rectangle, inner sep=0, minimum width=\paperwidth, minimum height=\paperheight]
        (pagearea) {};
    \path (pagearea.north west) ++(1in+\currentsidemargin,-1in-\topmargin-\headheight-\headsep)
        node[anchor=north west, shape=rectangle, inner sep=0, minimum width=\textwidth, minimum height=\textheight]
        (textarea) {};
    % Framebox
    \draw (textarea.north west) rectangle (textarea.south east);



share|improve this answer
hmm, that sounds a bit overkill, but I'll try it if I don't find anything else doing the trick. – sylvainulg Mar 23 '11 at 12:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.