Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to create some layout diagrams for a latex talk for students.

However I do not want to have any information about the sizes included and do not want any dashed lines (as in the layout(s) packages)

\documentclass[a4paper]{book}
\usepackage[]{layout}

\begin{document}
\pagestyle{empty}\mbox{}
\layout
\end{document}

With the layouts package I can customize some more things, but I still can not get rid of the sizes and the margin has no full height with a 'notes' bock which I do not understand.

\documentclass[a4paper]{book}
\usepackage{layouts}

\begin{document}
\oddpagelayoutfalse
\twocolumnlayoutfalse
\drawdimensionsfalse
\printheadingsfalse
\currentpage
\marginparswitchtrue 
\pagedesign
\end{document}

There is also the showframe package, but that is a bit to simple in the shown layout.

\documentclass[a4paper]{book}
\usepackage[texcoord,gridunit=cm]{showframe}
\begin{document}
\pagestyle{empty}\mbox{}
\end{document}

the geometry package also has the possibility to show the layout, but I want to compare non-geometry layouts (book standard) with geometry layouts. So i need something that works even without that package.

In the end I want to crop the pdfs and include these as images in a talk.

share|improve this question
    
Why don't you draw them in a graphics program? Or use tikz? Or do you need the exact lengths of the "current" document? –  topskip Sep 29 '11 at 11:51
    
Indeed, I require the exact length of the current document. I just dont want the length or addional lines to be printed. –  Matthias Pospiech Sep 29 '11 at 11:57
    
You cannot show output of LaTeX on this site but you can generate it yourself, take a screenshot of it, crop it and include it as an image. –  N.N. Sep 29 '11 at 12:02
1  
If you load \usepackage[pass,showframe]{geometry} the class settings are not touched. –  egreg Sep 29 '11 at 13:48
    
Yes, but that is not much more information or different in layout than \usepackage[texcoord,gridunit=cm]{showframe}, which I have used now. –  Matthias Pospiech Sep 29 '11 at 14:04

1 Answer 1

up vote 2 down vote accepted

If the picture drawn by layouts is good for you, we can patch the \drawpage command so that it doesn't print the table with the values of the various parameters:

\documentclass[a4paper]{book}
\usepackage{layouts,etoolbox}

\makeatletter
\patchcmd{\drawpage}{\ifl@ytempif\begin{center}}{\iffalse\begin{center}}{}{}
\makeatother

\begin{document}
\oddpagelayoutfalse
\twocolumnlayoutfalse
\drawdimensionsfalse
\printheadingsfalse
\currentpage
\marginparswitchtrue
\pagedesign
\end{document}

enter image description here

share|improve this answer
    
It is not only the paramters. Also the dashed line (I do not even understand its purpose) and the Note box are unwanted. Further I do not understand why the margin box is only displayed at the bottom of the page and does not span the total body height. Anyway I used now the showframe package. –  Matthias Pospiech Oct 2 '11 at 8:43

Your Answer

 
discard

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.