\documentclass[a4paper]{book} %\usepackage[T1]{fontenc} % pdflatex hates this! \usepackage{fancyhdr} \usepackage{array} \usepackage{graphicx} \usepackage{color}% For the coloured box showing top in tools_more.tex %\usepackage{pictex} \usepackage{latexsym} \usepackage{alltt} \usepackage{geometry} \usepackage{array} \usepackage{tabularx} \usepackage{amstext}% Just for the sums in solution to filesystems_basic.tex \usepackage{mdwlist} % to fit the /proc table on one page % in filesystems_basic \usepackage{booktabs} % Use Robin Fairbairn's footmisc package to reduce confusing students % who have no idea what those numbers are: \usepackage[perpage,symbol]{footmisc}\usepackage{version} %\usepackage{layout} \usepackage{key} % for showing keys. \usepackage{varioref} %\usepackage{bold-extra} % In tetex-2.0.2-8 with Fedora Core 1 \usepackage{nick,acro,explanation} % temporarily; better use only % standard packages. \usepackage{url} \ifx\pdftexversion\undefined \else \usepackage{hyperref} % for pdflatex, more useful output. \fi \pagestyle{fancy} \excludeversion{Solutions}% \includeversion{noSolutions}% % See page 114 of The \LaTeX Companion. \newcolumntype{B}{>{\centering\arraybackslash\bfseries}X} \newcolumntype{Y}{>{\raggedright\arraybackslash}X} \newcolumntype{C}{>{\centering\arraybackslash}X} \newcolumntype{R}{>{\raggedleft\arraybackslash}X} \renewcommand{\chaptername}{Module} \renewcommand{\chaptermark}[1]% {\markboth{#1}{}} \renewcommand{\sectionmark}[1]% {\markright{\thesection\ #1}} %\lhead[]{\small\leftmark \ \ } \lfoot[]{\small \copyright\ GBdirect Ltd, 2000} %\chead[]{\small} \cfoot[]{} %\rhead[]{\small\thepage} \rfoot[]{\small www.linuxtraining.co.uk} \chead[]{} \cfoot[]{} % Nick: see section 9,page 10, ``The scoop on LaTeX's marks''. % It prevents the contents header appearing as CONTENTS. \fancyhead[LE]{\small\nouppercase{\rightmark}} \fancyhead[RO]{\small\nouppercase{\leftmark}}% \fancyhead[LO,RE]{\small\thepage}% \fancyfoot[RE,LO]{\small \copyright\ GBdirect Ltd and parts \copyright\ Nick Urbanik, 2004}% \fancyfoot[LE,RO]{\small www.linuxtraining.co.uk} % LW 11.6.1999 % This redefines the \chapter command so that we can include a version number \newcommand{\verno}{Undefined Version Number} \newcommand{\ltchapter}[2]{ \if@openright\cleardoublepage\else\clearpage\fi \renewcommand{\verno}{#2} \lhead[]{\small\leftmark \ \ v\verno} \lfoot[]{\small \copyright\ GBdirect Ltd, 2000} \chapter{#1} } % % \itemsep = 50pt % % \parsep = 50pt % \voffset = -30pt % \hoffset = -40pt % \headsep = 40pt % \textwidth = 400pt % \headwidth = 400pt % \textheight = 650pt % \headrulewidth = 0.4pt % \footrulewidth = 0.4pt % \addtolength{\headwidth}{\marginparsep} % \addtolength{\headwidth}{\marginparwidth} % As originally: % \geometry{left=44.2mm, right=1.3mm, top=31.38mm, bottom=8.34mm, % includemp=true, marginparwidth=57pt, marginparsep=11pt, % footskip=30pt, headsep=40pt, headheight=12pt} % with balanced margins: % \geometry{left=34.8mm, right=10.7mm, top=31.38mm, bottom=8.34mm, % includemp=true, marginparwidth=57pt, marginparsep=11pt, % footskip=30pt, headsep=40pt, headheight=12pt} % As they really meant it: % \geometry{compat2, left=25mm, right=25mm, top=20.83mm, bottom=18.88mm, % includemp=false, footskip=30pt, headsep=40pt, headheight=12pt, % twosideshift=20pt} \geometry{left=35mm, right=15mm, top=20.83mm, bottom=18.88mm, includemp=false, footskip=30pt, headsep=40pt, headheight=12pt, includeheadfoot} \renewcommand{\familydefault}{phv} \makeatletter % Max sectionlevel that gets into table of contents: \setcounter{tocdepth}{1} % Max sectionlevel that is numbered: \setcounter{secnumdepth}{1} \renewcommand*\l@section{\@dottedtocline{1}{1.5em}{3.0em}} \renewcommand*\l@subsection{\@dottedtocline{2}{4.5em}{3.2em}} %\newcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}} %\newcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}} \renewcommand\section{\clearpage\@startsection {section}{1}{\z@}% {-3.5ex \@plus -1ex \@minus -.2ex}% {2.3ex \@plus.2ex}% {\normalfont\LARGE\bfseries} } \renewcommand\subsection{\@startsection{subsection}{2}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\normalfont\Large\it}} \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% {-3.25ex\@plus -1ex \@minus -.2ex}% {1.5ex \@plus .2ex}% {\normalfont\large\it}} \renewcommand\footnoterule{% \kern-3\p@ \hrule\@width.0\columnwidth \kern2.6\p@} \renewcommand\@makefntext[1]{% \parindent 1em% \noindent \hb@xt@1.0em{\hss\@makefnmark}#1} %\renewcommand{\thefootnote}{\large \fnsymbol{footnote}} % Nick: % From fancyhdr.dvi, section 14, page 14, ``Those blank pages'' % When use twosided style, leaves blank pages without headers. \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else \hbox{} \thispagestyle{empty} \newpage \if@twocolumn\hbox{}\newpage\fi\fi\fi} \renewcommand*{\bottomfraction}{.6} % default is 0.3 \renewcommand*{\topfraction}{.9} % default is 0.7 \renewcommand*{\textfraction}{0.05} % default is 0.2 \makeatother \newcommand{\PBS}[1]{\let\temp=\\#1\let\\=\temp} \newcommand{\kbk}{\ttfamily} \newcommand{\kwd}{\em} %\newcommand{\url}{\ttfamily} \newcommand{\usb}{\em} \newcommand{\sco}{\ttfamily} \newcommand{\uin}{\ttfamily} \newcommand{\pgn}{\normalfont\ttfamily} \newcommand{\var}{\ttfamily} \newcommand{\sig}{\ttfamily} \newcommand{\fn}{\pgn} \newcommand{\str}{\pgn} \newcommand{\cmdn}{\ttfamily} \newcommand{\rr}{\raggedright} \newcommand{\myss}{\Large} \newcommand{\myfs}{\large} \newcommand{\myts}{\normalsize} \newcommand{\mns}{\LARGE} \newcommand{\ns}{\normalsize} \renewcommand{\footnotesize}{\myfs} \raggedright \title{Linux Training Materials Project} \author{\textbf{GBdirect Limited}\\ 27 Park Drive\\ Bradford, BD9 4DS\\ West Yorkshire\\ tel: +44 (0)1274 772277 \\ linux@gbdirect.co.uk\\[3ex] with contributions from\\ Nick Urbanik\\ nicku@vtc.edu.hk} \date{\today} %\includeonly{../TEXfiles/user_accounts} \begin{document} \frontmatter \pagenumbering{roman} %\layout \maketitle \tableofcontents \mainmatter \pagenumbering{arabic} \input{../TEXfiles/overview_linux} \input{../TEXfiles/shell_basic} \input{../TEXfiles/tools_basic} \input{../TEXfiles/tools_more} %\input{../TEXfiles/shell_programming_intro} \input{../TEXfiles/filesystem_basic} \input{../TEXfiles/documentation} \input{../TEXfiles/user_accounts} \input{../TEXfiles/users} \input{../TEXfiles/vi_editor} \input{../TEXfiles/xwindows} \input{../TEXfiles/tcpip_fundamentals} \input{../TEXfiles/tcpip_practical} \input{../TEXfiles/ssh} %\input{../TEXfiles/shell_programming_basic} \input{../TEXfiles/filesystems_shared} \input{../TEXfiles/apache_basic} \input{../TEXfiles/apache_more} \input{../TEXfiles/config_files_key} %\backmatter \renewcommand{\chaptername}{Appendix} \renewcommand{\thechapter}{\Alph{chapter}} \setcounter{chapter}{0} \end{document} % DAVE'S BIG LIST OF TEXT ENTITIES TO BE DEFINED % \begin{description} % \item[keyname] The name of a key to be hit, e.g. {\kbk } % \item[pgn] Name of a program % \item[filename] Name of a file % \item[userinput] Strings that the user should type in % \item[usersubstitution] Strings which users should replace with their % own alternatives, e.g. filename.txt, /dev/hdx % \item[keyword] Key concepts which require emphasis and/or explanation % \item[warning] Text warning of potential dangers % \item[tips] including: % \begin{description} % \item[shortcuts] Text explaining quicker methods of achieving a given % outcome, e.g. piping several commands % \item[bestpractice] Text outlining best practice where two or more % options are available \ldots especially re generic markup % \end{description} % \item[briefing] Background info, not essential but helpful % \item[output] Screen output on character-based terminals % \end{description} % NOTES % PBS = Preserve the backslash inside boxed tabular columns % to enable ragged right in narrow columns % Lrg = my small size, based on ``Large'' % myss = my small size, based on ``Large'' % myfs = my footnote size based on ``large'' % myts = my tiny size, based on ``normalsize'' % mns = my normalsize (i.e. slide size = LARGE) % sco = screen output % pgn = program name including flags, arguments, pathnames etc) % fn = filename % usb = user substitution % uin = user input % kwd = keyword % kbk = a keyboard key % str = a string % cmdn = full name of a command within a program (i.e. NOT the % the name of the program executable --- definied by pgn % and NOT the keyboard shortcuts which are defined by kbk) % var = a variable % sig = a signal % url = a URL