svn commit: samba-docs r633 - in trunk: . xslt/latex

jelmer at samba.org jelmer at samba.org
Mon Jun 13 17:54:42 GMT 2005


Author: jelmer
Date: 2005-06-13 17:54:42 +0000 (Mon, 13 Jun 2005)
New Revision: 633

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba-docs&rev=633

Log:
Add crop marks.

Modified:
   trunk/configure.in
   trunk/xslt/latex/sambadoc.cls


Changeset:
Modified: trunk/configure.in
===================================================================
--- trunk/configure.in	2005-06-13 15:29:53 UTC (rev 632)
+++ trunk/configure.in	2005-06-13 17:54:42 UTC (rev 633)
@@ -7,7 +7,7 @@
 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'`

Modified: trunk/xslt/latex/sambadoc.cls
===================================================================
--- trunk/xslt/latex/sambadoc.cls	2005-06-13 15:29:53 UTC (rev 632)
+++ trunk/xslt/latex/sambadoc.cls	2005-06-13 17:54:42 UTC (rev 633)
@@ -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 at 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 at 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,25 +499,7 @@
 
 \setlength{\emergencystretch}{0cm}
 
-\ifStr at 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}
 



More information about the samba-cvs mailing list