1 \ProvidesPackage{opencv}
4 language=Python, % choose the language of the code
5 %basicstyle=\footnotesize, % the size of the fonts that are used for the code
6 %numbers=left, % where to put the line-numbers
7 %numberstyle=\footnotesize, % the size of the fonts that are used for the line-numbers
8 %stepnumber=2, % the step between two line-numbers. If it's 1 each line will be numbered
9 %numbersep=5pt, % how far the line-numbers are from the code
10 %backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
11 showspaces=false, % show spaces adding particular underscores
12 showstringspaces=false, % underline spaces within strings
13 showtabs=false, % show tabs within strings adding particular underscores
14 %frame=single, % adds a frame around the code
15 %tabsize=2, % sets default tabsize to 2 spaces
16 %captionpos=b, % sets the caption-position to bottom
17 %breaklines=true, % sets automatic line breaking
18 %breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
19 %escapeinside={\%*}{*)} % if you want to add a comment within your code
22 \newcommand{\cvclass}[1]{
23 \ifthenelse{\equal{\targetlang}{cpp}}
26 %\addcontentsline{toc}{subsection}{#1}
31 %\addcontentsline{toc}{subsection}{#1}
36 \newcommand{\cvfunc}[1]{
38 %\addcontentsline{toc}{subsection}{#1}
42 \newcommand{\cvstruct}[1]{
44 %\addcontentsline{toc}{subsection}{#1}
48 \newcommand{\cvmacro}[1]{
50 %\addcontentsline{toc}{subsection}{#1}
54 \newcommand{\cvarg}[2]{
58 \newcommand{\cvFunc}[2]{
59 \ifthenelse{\equal{\targetlang}{c}}
60 {\subsection{cv#1}\index{cv#1}\label{cfunc.#1}}
61 {\ifthenelse{\equal{\targetlang}{cpp}}
62 {\subsection{cv::#2}\index{cv::#2}\label{cppfunc.#2}}
63 {\subsection{cv.#1}\index{cv.#1}\label{pyfunc.#1}}}}
65 \newcommand{\cvCPyFunc}[1]{\cvFunc{#1}{}}
66 \newcommand{\cvCppFunc}[1]{\cvFunc{}{#1}}
68 \newcommand{\cvCross}[2]{
69 \ifthenelse{\equal{\targetlang}{c}}
70 {\hyperref[cfunc.#1]{cv#1}}
71 {\ifthenelse{\equal{\targetlang}{cpp}}
72 {\hyperref[cppfunc.#2]{cv::#2}}
73 {\hyperref[pyfunc.#1]{cv.#1}}}}
75 \newcommand{\cvCPyCross}[1]{\cvCross{#1}{}}
76 \newcommand{\cvCppCross}[1]{\cvCross{}{#1}}
78 \newcommand{\cvdefC}[1]{
79 \ifthenelse{\equal{\targetlang}{c}}{
82 \setlength{\parindent}{1in}
89 \newcommand{\cvdefCpp}[1]{
90 \ifthenelse{\equal{\targetlang}{cpp}}{
93 \setlength{\parindent}{1in}
100 \newcommand{\cvdefPy}[1]{
101 \ifthenelse{\equal{\targetlang}{python}}{
104 \setlength{\parindent}{1in}
111 \newcommand{\cvC}[1]{
112 \ifthenelse{\equal{\targetlang}{c}}{#1}{}
115 \newcommand{\cvCpp}[1]{
116 \ifthenelse{\equal{\targetlang}{cpp}}{#1}{}
119 \newcommand{\cvPy}[1]{
120 \ifthenelse{\equal{\targetlang}{python}}{#1}{}}
122 \newcommand{\cvCPy}[1]{
123 \ifthenelse{\equal{\targetlang}{c}\or\equal{\targetlang}{python}}{#1}{}
126 \newcommand{\cvcode}[1]{
129 \setlength{\parindent}{1in}
135 %\newcommand{\cross}[1]{#1 (page \pageref{#1})}
136 \newcommand{\cross}[1]{ \hyperref[#1]{#1} }
138 \newcommand{\matTT}[9]{
140 \left|\begin{array}{ccc}
148 \newcommand{\fork}[4]{
154 \newcommand{\forkthree}[6]{
162 \newcommand{\vecthree}[3]{
170 \newcommand{\vecthreethree}[9]{
178 % allow special plastex handling