# Show pageframe for LNCS article class

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 ?

• 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

The showframe package can help with this:

\usepackage{showframe}

• @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.

\documentclass{llncs}
\usepackage{tikz}
\usepackage{lipsum}

\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\footrulewidth}{0pt}

\rfoot{%
\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) {};
%
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);
%
\end{tikzpicture}%
}
\newcommand{\currentsidemargin}{%
\ifodd\value{page}%
\oddsidemargin%
\else%
\evensidemargin%
\fi%
}

\begin{document}
\lipsum[1-100]
\end{document}


• 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