Update to 2.0.0 tree from current Fremantle build
[opencv] / doc / opencv.sty
1 \ProvidesPackage{opencv}
2
3 \newcommand{\cvfunc}[1]{
4 \subsubsection{#1}
5 %\addcontentsline{toc}{subsubsection}{#1} 
6 \index{cv...!#1}
7 }
8
9 \newcommand{\cvstruct}[1]{
10 \subsubsection{#1}
11 %\addcontentsline{toc}{subsubsection}{#1} 
12 \index{cv...!#1}
13 }
14
15 \newcommand{\cvmacro}[1]{
16 \subsubsection{#1}
17 %\addcontentsline{toc}{subsubsection}{#1} 
18 \index{cv...!#1}
19 }
20
21 \newcommand{\cvarg}[2]{
22 \item[\texttt{#1}] #2
23 }
24
25 \newcommand{\cvexp}[3]{
26 \ifthenelse{\equal{\genc}{true}\and\equal{\genpy}{true}}{\noindent In C:}{}
27 \ifthenelse{\equal{\genc}{true}}{
28 \begin{shaded}
29 \begin{alltt}
30 \setlength{\parindent}{1in}
31 #1
32 \end{alltt}
33 \end{shaded}
34 }{}
35 \ifthenelse{\equal{\genpy}{true}}{
36 \ifthenelse{\equal{\genc}{true}\and\equal{\genpy}{true}}{\noindent In Python:}{}
37 \begin{shaded}
38 \begin{alltt}
39 #3
40 \end{alltt}
41 \end{shaded}
42 }{}
43 }
44
45 \newcommand{\cvC}[1]{
46 \ifthenelse{\equal{\targetlang}{c}}{
47 #1
48 }{}
49 }
50
51 \newcommand{\cvPy}[1]{
52 \ifthenelse{\equal{\targetlang}{python}}{
53 #1
54 }{}
55 }
56
57 \newcommand{\cvcode}[1]{
58 \begin{shaded}
59 \begin{alltt}
60 #1
61 \end{alltt}
62 \end{shaded}
63 }
64
65 %\newcommand{\cross}[1]{#1 (page \pageref{#1})}
66 \newcommand{\cross}[1]{ \hyperref[#1]{#1} }
67
68 \newcommand{\matTT}[9]{
69 \[
70 \left|\begin{array}{ccc}
71  #1 & #2 & #3\\
72  #4 & #5 & #6\\
73  #7 & #8 & #9
74 \end{array}\right|
75 \]
76 }
77
78 \newcommand{\fork}[4]{
79   \left\{
80   \begin{array}{l l}
81   #1 & \mbox{#2}\\
82   #3 & \mbox{#4}\\
83   \end{array} \right.}
84 \newcommand{\forkthree}[6]{
85   \left\{
86   \begin{array}{l l}
87   #1 & \mbox{#2}\\
88   #3 & \mbox{#4}\\
89   #5 & \mbox{#6}\\
90   \end{array} \right.}
91
92 \newcommand{\vecthree}[3]{
93 \begin{bmatrix}
94  #1\\
95  #2\\
96  #3
97 \end{bmatrix}
98 }
99
100 \newcommand{\vecthreethree}[9]{
101 \begin{bmatrix}
102  #1 & #2 & #3\\
103  #4 & #5 & #6\\
104  #7 & #8 & #9
105 \end{bmatrix}
106 }
107
108 % allow special plastex handling
109 \newif\ifplastex
110 \plastexfalse
111