2011-06-26 09:29:50 +08:00
|
|
|
% Cite a figure/listing
|
|
|
|
\renewcommand{\lstlistingname}{Listing}
|
2011-09-18 07:29:48 +08:00
|
|
|
\newcommand{\figref}[1]{\mbox{\hyperref[fig:#1]{Figure~\ref*{fig:#1}}}}
|
2011-09-18 08:27:21 +08:00
|
|
|
\newcommand{\figpage}[1]{\hyperref[fig:#1]{page \pageref*{fig:#1}}}
|
2011-09-18 07:29:48 +08:00
|
|
|
\newcommand{\subfigref}[2]{\mbox{\hyperref[fig:#1]{Figure~\ref*{fig:#1}#2}}}
|
|
|
|
\newcommand{\secref}[1]{\mbox{\hyperref[sec:#1]{Section~\ref*{sec:#1}}}}
|
2011-09-18 08:27:21 +08:00
|
|
|
\newcommand{\secpage}[1]{\hyperref[sec:#1]{page \pageref*{sec:#1}}}
|
2011-09-18 07:29:48 +08:00
|
|
|
\newcommand{\lstref}[1]{\mbox{\hyperref[lst:#1]{Listing~\ref{lst:#1}}}}
|
2011-09-18 08:27:21 +08:00
|
|
|
\newcommand{\lstpage}[1]{\hyperref[lst:#1]{page \pageref*{lst:#1}}}
|
2011-09-18 07:29:48 +08:00
|
|
|
\newcommand{\tblref}[1]{\mbox{\hyperref[tbl:#1]{Table~\ref{tbl:#1}}}}
|
2011-09-18 08:27:21 +08:00
|
|
|
\newcommand{\tblpage}[1]{\hyperref[tbl:#1]{page \pageref*{tbl:#1}}}
|
2011-06-26 09:29:50 +08:00
|
|
|
\newcommand{\code}[1]{\texttt{#1}}
|
|
|
|
|
|
|
|
% Macros that are used in the plugin documentation
|
2012-09-28 00:43:51 +08:00
|
|
|
\newcommand{\plugin}[3][Default]{%
|
|
|
|
\ifthenelse{\equal{#1}{Default}}{%
|
|
|
|
\newpage\subsubsection{#3 (\texttt{#2})}\label{plg:#2}%
|
|
|
|
}{%
|
|
|
|
\newpage\subsubsection{#3 (\texttt{#2})}\label{plg:#1}%
|
|
|
|
}%
|
|
|
|
}
|
|
|
|
\newcommand{\pluginref}[2][Default]{%
|
|
|
|
\ifthenelse{\equal{#1}{Default}}{%
|
|
|
|
\texttt{\hyperref[plg:#2]{#2}}%
|
|
|
|
}{%
|
|
|
|
\texttt{\hyperref[plg:#1]{#2}}%
|
|
|
|
}%
|
|
|
|
}
|
|
|
|
|
2011-09-18 08:27:21 +08:00
|
|
|
\newcommand{\pluginpage}[1]{\hyperref[plg:#1]{page \pageref*{plg:#1}}}
|
2011-07-08 06:36:02 +08:00
|
|
|
\newcommand{\order}[1]{} % Ignore
|
2011-06-26 09:29:50 +08:00
|
|
|
|
2011-07-02 23:03:57 +08:00
|
|
|
\newcommand{\Transform}{\texttt{transform}}
|
2013-01-29 08:56:45 +08:00
|
|
|
\newcommand{\Animation}{\texttt{animation}}
|
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}}
|
2012-09-28 00:43:51 +08:00
|
|
|
\newcommand{\Integrator}{\texttt{integrator}}
|
2011-07-16 00:37:48 +08:00
|
|
|
\newcommand{\BSDF}{\texttt{bsdf}}
|
2011-07-18 20:46:24 +08:00
|
|
|
\newcommand{\Phase}{\texttt{phase}}
|
2011-08-24 02:08:43 +08:00
|
|
|
\newcommand{\Shape}{\texttt{shape}}
|
2012-09-28 00:43:51 +08:00
|
|
|
\newcommand{\RFilter}{\texttt{rfilter}}
|
2011-08-24 02:08:43 +08:00
|
|
|
\newcommand{\ShapeGroup}{\texttt{shapegroup}}
|
2011-08-26 12:33:53 +08:00
|
|
|
\newcommand{\Volume}{\texttt{volume}}
|
2011-07-16 00:37:48 +08:00
|
|
|
\newcommand{\Unnamed}{\emph{(Nested plugin)}}
|
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
|
|
|
|
2011-08-05 00:43:53 +08:00
|
|
|
|
|
|
|
\IfFileExists{MinionPro.sty}
|
|
|
|
{\newcommand{\showbreak}{$\rhookswarrow$ }}
|
|
|
|
{\newcommand{\showbreak}{$\hookleftarrow$ }}
|
|
|
|
|
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}
|
2011-08-05 00:43:53 +08:00
|
|
|
\begin{figure}[htbp]\centering\arrayrulecolor{lstframe}
|
2011-06-26 09:29:50 +08:00
|
|
|
\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}\\
|
2011-07-16 00:37:48 +08:00
|
|
|
#1\\[-4mm]
|
2011-06-26 09:29:50 +08:00
|
|
|
\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
|
|
|
}
|
2011-10-03 11:11:24 +08:00
|
|
|
|
|
|
|
\newcommand{\remarks}[1]{
|
|
|
|
\setlength\fboxrulebackup\fboxrule
|
|
|
|
\setlength\fboxrule{0.8pt}
|
|
|
|
\vspace{1em}
|
|
|
|
\begin{figure}[htbp]\centering
|
|
|
|
\fcolorbox{remarkframe}{remark}{
|
2012-09-28 00:43:51 +08:00
|
|
|
\parbox{\columnwidth-1.1cm}{
|
2011-10-03 11:11:24 +08:00
|
|
|
\vspace{.6em}\hspace{.6em}\parbox{\columnwidth-1.6em}{
|
|
|
|
\textbf{Remarks:}\small
|
|
|
|
\vspace{-.4em}
|
|
|
|
\begin{itemize}
|
|
|
|
#1
|
|
|
|
\end{itemize}
|
2012-09-28 00:43:51 +08:00
|
|
|
}}\hspace*{1cm}}\end{figure}
|
2011-10-03 11:11:24 +08:00
|
|
|
\setlength\fboxrule\fboxrulebackup
|
|
|
|
}
|
2012-10-25 02:44:26 +08:00
|
|
|
|
2011-06-26 09:29:50 +08:00
|
|
|
\newcommand{\renderings}[1]{
|
2012-09-28 00:43:51 +08:00
|
|
|
\begin{figure}[htb!]
|
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-22 22:08:58 +08:00
|
|
|
\newcommand{\icon}[1]{
|
|
|
|
\begin{textblock}{3}(51,8)
|
|
|
|
\includegraphics[width=2.25cm]{images/#1.pdf}
|
|
|
|
\end{textblock}
|
|
|
|
\vspace{3mm}
|
|
|
|
}
|
2011-07-17 21:20:55 +08:00
|
|
|
\newcommand{\rendering}[2]{\subfloat[#1]{\fbox{\includegraphics[width=0.47\textwidth]{images/#2}}}\hfill}
|
|
|
|
\newcommand{\unframedrendering}[2]{\subfloat[#1]{\includegraphics[width=0.47\textwidth]{images/#2}}\hfill}
|
2012-09-28 00:43:51 +08:00
|
|
|
\newcommand{\bigrendering}[2]{\subfloat[#1]{\fbox{\includegraphics[width=\textwidth]{images/#2}}}\hfill}
|
|
|
|
\newcommand{\unframedbigrendering}[2]{\subfloat[#1]{\includegraphics[width=\textwidth]{images/#2}}\hfill}
|
2011-09-08 05:01:29 +08:00
|
|
|
\newcommand{\medrendering}[2]{ \subfloat[#1]{\fbox{\includegraphics[width=0.31\textwidth]{images/#2}}}\hfill}
|
|
|
|
\newcommand{\unframedmedrendering}[2]{\subfloat[#1]{\includegraphics[width=0.31\textwidth]{images/#2}}\hfill}
|
2011-07-17 21:20:55 +08:00
|
|
|
\newcommand{\smallrendering}[2]{ \subfloat[#1]{\fbox{\includegraphics[width=0.2\textwidth]{images/#2}}}\hfill}
|
2011-07-27 09:40:13 +08:00
|
|
|
\newcommand{\tinyrendering}[2]{ \subfloat[#1]{\includegraphics[width=0.125\textwidth]{images/#2}}}
|
2011-07-02 23:03:57 +08:00
|
|
|
|
2011-06-26 09:29:50 +08:00
|
|
|
\newcommand{\parameter}[3]{
|
|
|
|
\otoprule
|
2011-07-11 07:34:17 +08:00
|
|
|
\small\texttt{#1} & \small #2 & \small #3 \\
|
2011-06-26 09:29:50 +08:00
|
|
|
}
|
|
|
|
|
2011-06-28 17:09:13 +08:00
|
|
|
\newcommand{\default}[1]{ (Default: #1)}
|