% Documentation core for ToAruOS % Copyright 2011 Kevin Lange % Standard article with (centered) title page \documentclass[titlepage]{article} % Switch to a nice sans-serif font. \renewcommand*\familydefault{\sfdefault} \usepackage[margin=1in]{geometry} % Margins \usepackage{fancyhdr} % Fancy page header \usepackage{amsmath} % Extra mathemtics stuff \usepackage{listings} % Source code styling \usepackage{graphicx} % Graphics support \usepackage[overlap, CJK]{ruby} % For Japanese \usepackage{makeidx} % Indexing \usepackage[bookmarks]{hyperref} % PDF hyperlink index % Some useful macros for the documentation \newcommand{\toarutitle}{ToAruOS Kernel Documentation} \newcommand{\toaruversi}{v 0.0.1} \newcommand{\toaruautho}{Kevin Lange} % Title / Author \title{\toarutitle} \author{\toaruautho} % PDF Data \hypersetup{ pdftitle={\toarutitle}, pdfauthor={\toaruautho}, pdfkeywords={toaruos, kernel, development, documentation}, linkbordercolor=1 1 1, } % Enable indexing \makeindex % Some nice headers for the core contents. \pagestyle{fancy} \lhead{\toarutitle} \rhead{\toaruversi} % Begin document contents \begin{document} \begin{CJK}{UTF8}{goth} % Title page for documentation \begin{titlepage} \maketitle % Make sure we don't have a number here... \thispagestyle{empty} \end{titlepage} % We're now on page 1. \setcounter{page}{1} \thispagestyle{fancy} % Table of Contents \cleardoublepage \tableofcontents %% BEGIN DOCUMENT CONTENTS %% % History \clearpage \input{history.tex} % Introduction \clearpage \input{intro.tex} % Bootloader \clearpage \input{bootloader.tex} % Dynamic Linker / Loader documentation \clearpage \input{loader.tex} %% Index %% \cleardoublepage \addcontentsline{toc}{section}{Index} \printindex % License information \clearpage \input{license.tex} % Fin \end{CJK} \end{document}