2011-06-26 09:29:50 +08:00
|
|
|
% Cite a figure/listing
|
|
|
|
\renewcommand{\lstlistingname}{Listing}
|
2011-07-02 23:03:57 +08:00
|
|
|
\newcommand{\figref}[1]{\mbox{Figure~\ref{fig:#1}}}
|
|
|
|
\newcommand{\secref}[1]{\mbox{Section~\ref{sec:#1}}}
|
|
|
|
\newcommand{\lstref}[1]{\mbox{Listing~\ref{lst:#1}}}
|
2011-06-26 09:29:50 +08:00
|
|
|
\newcommand{\code}[1]{\texttt{#1}}
|
|
|
|
|
|
|
|
% Macros that are used in the plugin documentation
|
2011-06-28 17:09:13 +08:00
|
|
|
\newcommand{\plugin}[2]{\newpage\subsubsection{#2 (\texttt{#1})}\label{plg:#1}}
|
2011-06-26 09:29:50 +08:00
|
|
|
\newcommand{\pluginref}[1]{\texttt{\hyperref[plg:#1]{#1}}}
|
|
|
|
|
2011-07-02 23:03:57 +08:00
|
|
|
\newcommand{\Transform}{\texttt{transform}}
|
2011-06-26 09:29:50 +08:00
|
|
|
\newcommand{\Spectrum}{\texttt{spectrum}}
|
2011-07-02 23:03:57 +08:00
|
|
|
\newcommand{\Integer}{\texttt{integer}}
|
2011-06-26 09:29:50 +08:00
|
|
|
\newcommand{\String}{\texttt{string}}
|
2011-07-02 23:03:57 +08:00
|
|
|
\newcommand{\Boolean}{\texttt{boolean}}
|
2011-06-26 09:29:50 +08:00
|
|
|
\newcommand{\Float}{\texttt{float}}
|
2011-07-02 23:03:57 +08:00
|
|
|
\newcommand{\Vector}{\texttt{vector}}
|
|
|
|
\newcommand{\Point}{\texttt{point}}
|
2011-06-26 09:29:50 +08:00
|
|
|
\newcommand{\Texture}{\texttt{texture}}
|
2011-06-28 17:09:13 +08:00
|
|
|
\newcommand{\Or}{~~\small or \small}
|
2011-06-26 09:29:50 +08:00
|
|
|
\newcolumntype{P}[1]{>{\RaggedRight\hspace{0pt}}p{#1}}
|
2011-07-02 23:03:57 +08:00
|
|
|
\newcommand{\MtsVer}{\color{lstattrib}\texttt{"\MitsubaVersion"}}
|
2011-06-26 09:29:50 +08:00
|
|
|
|
|
|
|
\newcommand{\showbreak}{$\rhookswarrow$ }
|
2011-07-06 23:52:02 +08:00
|
|
|
\newcommand{\parheader}[1]{\vspace{2mm}\textbf{\color{myblue}#1}}
|
2011-06-26 09:29:50 +08:00
|
|
|
|
|
|
|
\newcommand{\otoprule}{\midrule[.8pt]}
|
|
|
|
\newlength\fboxrulebackup
|
|
|
|
\newcommand{\parameters}[1]{
|
|
|
|
\setlength\fboxrulebackup\fboxrule
|
|
|
|
\setlength\fboxrule{0.8pt}
|
|
|
|
\begin{figure}[h]\centering\arrayrulecolor{lstframe}
|
|
|
|
\fcolorbox{lstframe}{lstshade}{\begin{tabular}{@{\hspace{3mm}}P{3cm}P{2.2cm}p{8.3cm}@{\hspace{3mm}}}
|
|
|
|
%\toprule
|
|
|
|
\\[-2.2ex]
|
|
|
|
\textbf{Parameter}&\textbf{Type}&\textbf{Description}\\
|
|
|
|
\otoprule
|
|
|
|
#1
|
|
|
|
%\bottomrule
|
|
|
|
\end{tabular}}
|
|
|
|
\end{figure}
|
|
|
|
\setlength\fboxrule\fboxrulebackup
|
2011-07-05 05:39:44 +08:00
|
|
|
\arrayrulecolor{black}
|
2011-06-26 09:29:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\renderings}[1]{
|
2011-07-03 08:46:09 +08:00
|
|
|
\begin{figure}[h!]
|
2011-07-03 23:10:12 +08:00
|
|
|
\setcounter{subfigure}{0}
|
2011-06-26 09:29:50 +08:00
|
|
|
\centering
|
|
|
|
\hfill
|
|
|
|
#1
|
|
|
|
\end{figure}
|
|
|
|
}
|
|
|
|
|
2011-07-03 23:10:12 +08:00
|
|
|
\newcommand{\rendering}[2]{\subfigure[#1]{\fbox{\includegraphics[width=0.47\textwidth]{images/#2}}}\hfill}
|
2011-07-03 08:46:09 +08:00
|
|
|
\newcommand{\medrendering}[2]{ \subfigure[#1]{\fbox{\includegraphics[width=0.3\textwidth]{images/#2}}}\hfill}
|
|
|
|
\newcommand{\smallrendering}[2]{ \subfigure[#1]{\fbox{\includegraphics[width=0.2\textwidth]{images/#2}}}\hfill}
|
2011-07-02 23:03:57 +08:00
|
|
|
|
2011-06-26 09:29:50 +08:00
|
|
|
\newcommand{\parameter}[3]{
|
|
|
|
\small\texttt{#1} & \small #2 & \small #3\\
|
|
|
|
\otoprule
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\lastparameter}[3]{
|
|
|
|
\small\texttt{#1} & \small #2 & \small #3\\
|
|
|
|
}
|
2011-06-28 17:09:13 +08:00
|
|
|
|
|
|
|
\newcommand{\default}[1]{ (Default: #1)}
|