80 lines
1.7 KiB
TeX
80 lines
1.7 KiB
TeX
% 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
|
|
\def\Title{\toarutitle}
|
|
\title{\toarutitle}
|
|
\def\Author{\toaruautho}
|
|
\author{\toaruautho}
|
|
|
|
% 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 2.
|
|
\setcounter{page}{2}
|
|
|
|
% Table of Contents
|
|
\cleardoublepage
|
|
\tableofcontents
|
|
|
|
%% BEGIN DOCUMENT CONTENTS %%
|
|
|
|
% 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}
|