diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-06-13 17:54:42 +0000 |
---|---|---|
committer | Gerald W. Carter <jerry@samba.org> | 2008-04-23 08:46:47 -0500 |
commit | e228625f0c0406f82132c0076e0efe2585fce887 (patch) | |
tree | 0e7f796358ea0b8f4b02c9a9914d297e5a8bb201 | |
parent | 2757cde29e2b49c988bcf1d5140bae22f8f0bab2 (diff) | |
download | samba-e228625f0c0406f82132c0076e0efe2585fce887.tar.gz samba-e228625f0c0406f82132c0076e0efe2585fce887.tar.bz2 samba-e228625f0c0406f82132c0076e0efe2585fce887.zip |
Add crop marks.
(This used to be commit 22582af1d781ef432d231ca075af0add1912d464)
-rw-r--r-- | docs/configure.in | 2 | ||||
-rw-r--r-- | docs/xslt/latex/sambadoc.cls | 51 |
2 files changed, 24 insertions, 29 deletions
diff --git a/docs/configure.in b/docs/configure.in index 67a8d1aab4..c8fbb7bc22 100644 --- a/docs/configure.in +++ b/docs/configure.in @@ -7,7 +7,7 @@ AC_ARG_WITH(samba-sources, LATEX_DOCUMENTCLASS_OPTIONS="letterpaper,11pt,openright,twoside" AC_ARG_ENABLE(prentice-hall, [ --enable-prentice-hall Produce Prentice-Hall compatible output], -[ test "$enableval" && LATEX_DOCUMENTCLASS_OPTIONS="$LATEX_DOCUMENTCLASS_OPTIONS,ph" ]) +[ test "$enableval" && LATEX_DOCUMENTCLASS_OPTIONS="letterpaper,10pt,openright,twoside,ph" ]) AC_SUBST(LATEX_DOCUMENTCLASS_OPTIONS) DOC_BUILD_DATE=`date '+%d-%m-%Y'` diff --git a/docs/xslt/latex/sambadoc.cls b/docs/xslt/latex/sambadoc.cls index ad88f5d2d5..c9e52b5224 100644 --- a/docs/xslt/latex/sambadoc.cls +++ b/docs/xslt/latex/sambadoc.cls @@ -1,7 +1,4 @@ -% % $Id$ -% - % phstyle.cls -- Macros for formatting Prentice-Hall Books % -- Compiled by J.K. Shultis, Dec. 1993 % -- Modified and enhanced for LaTeX2e mdh/rlm 1997/02 @@ -10,19 +7,18 @@ \NeedsTeXFormat{LaTeX2e}% \ProvidesClass{sambadoc}[2005/06/13 Samba Documentation class] - +\newif\if@ph +\@phfalse +\DeclareOption{ph}{ \@phtrue } \DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}} - \ProcessOptions% -% Base everything on the default class 'article'. +% Base everything on the default class 'report'. \LoadClass{report}% - - %================================================================================ % 1. Page layout dimensions % 3. Define new fonts for headings -% 4. Define LaTeX logos (usually ot needed) +% 4. Define LaTeX logos (usually not needed) % 5. Redefines the way "figure" amd "table" are formated in a \caption % 6. Defines a \capt macro which defines (1) \captwidth, (2) \captsize % and \beforetableskip. @@ -40,7 +36,24 @@ % \parskip 0ex \marginparwidth 1.00in \marginparsep 0.5in %\setlength\arraycolsep{1pt} -\textwidth 5.00in +\if@ph + \RequirePackage{geometry} + \geometry{ + twoside, + papersize={7in,9.25in}, + lmargin=.75in, + rmargin=.75in, + bmargin=.625in, + tmargin=.625in, + width=5.5in, + height=7.525in, + marginparwidth=0.35in, + headheight=0.2in, + textwidth=5in, + headsep=.25in, + footskip=.025in} + \usepackage[letter,cam,cross,frame,center]{crop} +\fi %====================== Define special fonts \newfont{\BIG}{cminch} %--- One-inch font @@ -486,24 +499,6 @@ page \thepage \space undefined}}% \setlength{\emergencystretch}{0cm} -\ifStr@ph - \PassOptionsToPackage{% - twoside,dvips, - paperwidth=7in, - paperheight=9.25in, - lmargin=.75in, - rmargin=.75in, - bmargin=.625in, - tmargin=.625in, - width=5.5in, - height=7.525in, %7.3 - marginparwidth=0.35in, - headheight=0.2in, - headsep=.25in, - footskip=.025in}{geometry} -\fi - -\setlength{\headwidth}{\textwidth} \cleardoublepage \pagenumbering{roman} |