[Bsdbook-commit] cvs commit: bsdbook/src book.tex,1.2,1.3 title.tex,1.2,1.3
Status: Planning
Brought to you by:
h_pandya
From: <h_p...@us...> - 2002-08-28 03:43:56
|
Update of /cvsroot/bsdbook/bsdbook/src In directory usw-pr-cvs1:/tmp/cvs-serv2735 Modified Files: book.tex title.tex Log Message: Change 2 of 2. This delta will complete the first step towards a workable build system for the BSDBook. - Add (modified) BSD Copyright. (This will go into a COPYRIGHT file) - Add some useful info to the preamble - Add $Id$ tag - Add \ifx commands to conditionally process PDF related - Add hyperref in the non-PDF case - Move \pdfcompresslevel to a sane place - Remove unwanted spaces - Conditional processing for the 'Title Page' (PDF) bookmark. Index: book.tex =================================================================== RCS file: /cvsroot/bsdbook/bsdbook/src/book.tex,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- book.tex 28 Aug 2002 02:53:21 -0000 1.2 +++ book.tex 28 Aug 2002 03:43:52 -0000 1.3 @@ -1,8 +1,58 @@ +% THE FREEBSD KERNEL REFERENCE +% +% Copyright (c) 2002 Hiten Mahesh Pandya +% All rights reserved. +% +% Redistribution and use in source and binary forms, with or without +% modification, are permitted provided that the following conditions +% are met: +% +% 1. Redistributions of source code (LaTeX) must retain the above copyright +% notice, this list of conditions and the following disclaimer. +% 2. Redistributions in output/binary form (PDF, PS, DVI) must reproduce the +% above copyright notice, this list of conditions and the following +% disclaimer in the documentation and/or other materials provided with the +% distribution. +% +% THIS DOCUMENTATION IS PROVIDED BY THE BSDBOOK PROJECT ``AS IS'' AND +% ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +% IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +% ARE DISCLAIMED. IN NO EVENT SHALL THE BSDBOOK PROJECT BE LIABLE +% FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +% DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +% OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +% HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +% LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +% OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF +% SUCH DAMAGE. +% +% +% ---------------------------------------------------------------------------- +% In-order to process bsdbook, you will need TeX 3.x, LaTeX and makeindex. +% Please refer to the MANIFEST file for information on the source files. You +% will also need the 'verbatim.sty' and 'layout.sty' from the LaTeX Tools +% distribution. +% +% More information about the bsdbook project can be found at: +% http://bsdbook.sourceforge.net/ +% ---------------------------------------------------------------------------- +% +% $Id$ + +\ifx\pdfoutput\undefined +\documentclass[11pt,a4paper,twoside]{book} +\usepackage{hyperref} +\else \documentclass[pdftex,11pt,a4paper,twoside]{book} +\usepackage{thumbpdf} % FIXME: Any need of options? +\fi + \usepackage{bsdbook} \usepackage{mylayout} -\usepackage{thumbpdf,makeidx,shortvrb,latexsym} +\usepackage{makeidx,shortvrb,latexsym} +\ifx\pdfoutput\undefined +\else \RequirePackage[pdftex, colorlinks, hyperindex, @@ -11,23 +61,22 @@ plainpages=false, bookmarks,bookmarksnumbered, hypertexnames,breaklinks]{hyperref} -\pdfcompresslevel=9 - \pdfinfo { /Title (FreeBSD Device Drivers -- Design and Implementation) /Creator (LaTeX) /Producer (pdfTeX 3.14) - /Author (BSDBook Project) + /Author (The BSDBook Project) /CreationDate (18 August 2002) /Subject (Device Drivers, Kernel, Virtual Memory) } \def\pdfBorderAttrs{/Border [0 0 0] } % No border arround Links +\pdfcompresslevel=9 +\fi + \makeindex \typeout{Copyright \copyright 2002. BSDBook Project. All Rights Reserved.} -\setlength{\parindent}{0pt} \begin{document} - \frontmatter \begin{titlepage} \include{title} @@ -39,5 +88,4 @@ \include{overview} \backmatter - \end{document} Index: title.tex =================================================================== RCS file: /cvsroot/bsdbook/bsdbook/src/title.tex,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- title.tex 28 Aug 2002 02:53:21 -0000 1.2 +++ title.tex 28 Aug 2002 03:43:53 -0000 1.3 @@ -1,6 +1,10 @@ % Contents: The title page % $Id$ +\ifx\pdfoutput\undefined +\else \pdfbookmark{Title Page}{title} +\fi + \newlength{\centeroffset} \setlength{\centeroffset}{-0.5\oddsidemargin} \addtolength{\centeroffset}{0.5\evensidemargin} @@ -11,7 +15,7 @@ \flushright {\Huge\bfseries FreeBSD Kernel Reference} \noindent\rule[-1ex]{\textwidth}{5pt}\\[2.5ex] -\hfill\textbf{\emph{\Large The text that should not leave your desk}} +\hfill\emph{\Large The text that should not leave your desk} \end{minipage}} \vspace{\stretch{1}} |