mitsuba/doc/main.tex

151 lines
3.3 KiB
TeX
Raw Normal View History

\documentclass[footexclude,11pt,DIV11]{scrartcl}
2010-08-10 09:25:24 +08:00
% Wenzel's standard prelude
% ----- 8< ----- 8< ------
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{lmodern}
\usepackage{charter}
\usepackage{graphicx}
\usepackage{array}
\usepackage{booktabs}
\usepackage{color}
\usepackage{listings}
\usepackage{amsmath}
\usepackage{enumerate}
2011-06-25 22:49:26 +08:00
\usepackage{calc}
2010-08-10 09:25:24 +08:00
\usepackage[utf8]{inputenc}
2011-06-25 22:49:26 +08:00
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\newcommand{\MitsubaVersion}{0.2.1}
2010-08-10 09:25:24 +08:00
\usepackage[
2011-06-25 22:49:26 +08:00
bookmarks,
bookmarksnumbered,
colorlinks,
linkcolor=myblue,
urlcolor=myblue,
citecolor=myblue,
pdfpagelabels,
pdftitle={Mitsuba \MitsubaVersion\, Documentation},
pdfauthor={Wenzel Jakob},
pdfstartview=FitH
2010-08-10 09:25:24 +08:00
]{hyperref}
\typearea[current]{last}
\raggedbottom
\usepackage[expansion=false]{microtype}
2011-06-25 22:49:26 +08:00
\UseMicrotypeSet[protrusion]{basictext}
2010-08-10 09:25:24 +08:00
\renewcommand*\ttdefault{txtt}
\usepackage{scrpage2}
\ofoot[]{}
\cfoot[]{}
\ihead{\sc\leftmark}
\ohead{\sc\rightmark}
\chead{}
\setheadsepline{.2pt}
\automark[section]{chapter}
\setkomafont{pagenumber}{\normalfont}
\addtokomafont{sectioning}{\color{myblue}\rmfamily}
\addtokomafont{descriptionlabel}{\rmfamily}
\pagestyle{scrheadings}
\definecolor{myblue}{rgb}{0,.1,.6}
\definecolor{myred}{rgb}{0.63,.16,.16}
\definecolor{lstshade}{gray}{0.94}
\definecolor{lstframe}{gray}{0.75}
\definecolor{lstcomment}{gray}{0.5}
2011-06-25 22:49:26 +08:00
\definecolor{lstattrib}{rgb}{0,0.25,0}
2010-08-10 09:25:24 +08:00
% Cite a figure/listing
2011-06-25 22:49:26 +08:00
\renewcommand{\lstlistingname}{Listing}
\newcommand{\figref}[1]{\mbox{Figure \ref{fig:#1}}}
\newcommand{\lstref}[1]{\mbox{Listing \ref{lst:#1}}}
2010-08-10 09:25:24 +08:00
\newcommand{\code}[1]{\texttt{#1}}
% Macros for plugin documentation
2011-06-25 22:49:26 +08:00
\newcommand{\plugin}[2]{\subsubsection{#2 (\texttt{#1})}\label{plg:#1}}
\newcommand{\pluginref}[1]{\texttt{\hyperref[plg:#1]{#1}}}
2011-06-25 22:49:26 +08:00
2010-08-10 09:25:24 +08:00
% Listings settings
\lstset{
mathescape = true,
2011-06-25 22:49:26 +08:00
frame = lrtb,
2010-08-10 09:25:24 +08:00
backgroundcolor = \color{lstshade},
rulecolor = \color{lstframe},
tabsize = 4,
columns = flexible,
keepspaces,
belowskip = \smallskipamount,
2011-06-25 22:49:26 +08:00
framerule = .7pt,
basicstyle = \small\ttfamily\raggedright,
2010-08-12 02:00:16 +08:00
breaklines = true,
2011-06-25 22:49:26 +08:00
showstringspaces = false,
keywordstyle = \bfseries,
captionpos = b,
upquote = true
2010-08-10 09:25:24 +08:00
}
2011-06-25 22:49:26 +08:00
\lstdefinelanguage{xml} {
sensitive=true,
morecomment=[s][\color{lstcomment}\itshape]{<!--}{-->},
morecomment=[s][\color{lstcomment}]{<?}{?>},
string=[b]", stringstyle=\color{lstattrib},
keywords= [1] {
shape,bsdf,scene,texture,phase,integer,float,
string,transform,ref,rgb,srgb,spectrum,blackbody,
medium,camera,film,sampler
},
}
% Thick frames for images
\setlength\fboxsep{0pt}
\setlength\fboxrule{1.5pt}
\lstnewenvironment{cpp}[1][]{\lstset{language=c++, #1}}
2010-08-10 09:25:24 +08:00
{}
2011-06-25 22:49:26 +08:00
\lstnewenvironment{xml}[1][]{\lstset{language=xml, #1}}
2010-08-10 09:25:24 +08:00
{}
2011-06-25 22:49:26 +08:00
\lstnewenvironment{shell}[1]{\lstset{language=bash, #1}}
{}
2010-08-11 06:38:22 +08:00
\lstnewenvironment{console}[1][]{\lstset{basicstyle=\footnotesize\ttfamily, float, #1}}
{}
2010-08-10 09:25:24 +08:00
% ----- 8< ----- 8< ------
\title{
2011-06-25 22:49:26 +08:00
Mitsuba Documentation\\\vspace{3mm}
\large Version \MitsubaVersion
2010-08-10 09:25:24 +08:00
}
\author{Wenzel Jakob}
\date{\today}
\begin{document}
\maketitle
\clearpage
\ofoot[\pagemark]{\pagemark}
2010-08-11 06:38:22 +08:00
\tableofcontents
%\include{introduction}
%\include{compiling}
%\include{basics}
%\include{format}
\IfFileExists{plugins_generated.tex}{\include{plugins_generated}}{}
%\include{import}
%\include{development}
%\include{integrator}
%\include{parallelization}
%\include{acknowledgements}
2010-08-10 09:25:24 +08:00
\end{document}