| 1 | \documentclass{article} |
|---|
| 2 | \usepackage{ifthen} |
|---|
| 3 | \usepackage{times} |
|---|
| 4 | \usepackage{makeidx} |
|---|
| 5 | \usepackage{graphicx} |
|---|
| 6 | \usepackage{hyperref} |
|---|
| 7 | \usepackage{listings} |
|---|
| 8 | %\usepackage[shell]{dottex} |
|---|
| 9 | |
|---|
| 10 | \makeindex |
|---|
| 11 | |
|---|
| 12 | \lstset{language=c++,basicstyle=\small,frame=shadowbox,showstringspaces=false,numbers=left,numberstyle=\tiny,columns=fullflexible,breaklines} |
|---|
| 13 | |
|---|
| 14 | \newcommand{\figurejpg}[2]{\begin{figure}\caption{#1}\label{#2}\begin{center}\includegraphics[width=.9\columnwidth]{\topdir/docs/#2.jpg}\end{center}\end{figure}} |
|---|
| 15 | \newcommand{\figureeps}[2]{\begin{figure}\caption{#1}\label{#2}\begin{center}\includegraphics[width=.9\columnwidth]{\topdir/docs/#2.eps}\end{center}\end{figure}} |
|---|
| 16 | |
|---|
| 17 | \newcommand{\figurestart}[2]{\begin{figure}\caption{#1}\label{#2}\begin{center}} |
|---|
| 18 | \newcommand{\figureend}{\end{center}\end{figure}} |
|---|
| 19 | |
|---|
| 20 | \newcommand{\email}[1]{\href{mailto:#1}{$<$#1$>$}} |
|---|
| 21 | \newcommand{\website}[1]{\href{#1}{#1}} |
|---|
| 22 | |
|---|
| 23 | \newcommand{\lstsrcexample}[2]{\newpage\lstinputlisting[caption={#1}]{\topdir/example/#2}} |
|---|
| 24 | \newcommand{\lstsrctest}[2]{\newpage\lstinputlisting[caption={#1}]{\topdir/test/#2}} |
|---|
| 25 | \newcommand{\lstsrc}[2]{\newpage\lstinputlisting[caption={#1}]{\topdir/src/#2}} |
|---|
| 26 | \newcommand{\lstheader}[2]{\newpage\lstinputlisting[caption={#1}]{\topdir/include/#2}} |
|---|
| 27 | |
|---|
| 28 | \newcommand{\setpdfinfo}[2]{ |
|---|
| 29 | \hypersetup{ |
|---|
| 30 | bookmarks=true, % show bookmarks bar? |
|---|
| 31 | unicode=false, % non-Latin characters in bookmarks |
|---|
| 32 | pdftoolbar=true, % show in toolbar? |
|---|
| 33 | pdfmenubar=true, % show menu? |
|---|
| 34 | pdffitwindow=true,% page fit to window when opened |
|---|
| 35 | pdftitle={#1}, % title |
|---|
| 36 | pdfauthor={#2}, % author |
|---|
| 37 | pdfsubject={}, % subject of the document |
|---|
| 38 | pdfnewwindow=true,% links in new window |
|---|
| 39 | pdfkeywords={}, % list of keywords |
|---|
| 40 | colorlinks=true, % false: boxed links; true: colored links |
|---|
| 41 | linkcolor=blue, % color of internal links |
|---|
| 42 | citecolor=green, % color of links to bibliography |
|---|
| 43 | filecolor=magenta,% color of file links |
|---|
| 44 | urlcolor=cyan % color of external links |
|---|
| 45 | } |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | \newcommand{\jdkstitle}[4]{ |
|---|
| 49 | \begin{titlepage} |
|---|
| 50 | \begin{center} |
|---|
| 51 | %\includegraphics[width=.9\columnwidth]{\topdir/docs/jdks-logo.pdf}\\[1cm] |
|---|
| 52 | \textsc{\large J.D. Koftinoff Software, Ltd.}\\ |
|---|
| 53 | \website{http://www.jdkoftinoff.com/}\\[1cm] |
|---|
| 54 | \textsc{\large #1}\\[1cm] |
|---|
| 55 | \website{#4} |
|---|
| 56 | \vfill{ |
|---|
| 57 | #2 \email{#3}\\ |
|---|
| 58 | \textsc{\today} |
|---|
| 59 | } |
|---|
| 60 | \end{center} |
|---|
| 61 | \end{titlepage} |
|---|
| 62 | \tableofcontents |
|---|
| 63 | \listoftables |
|---|
| 64 | \listoffigures |
|---|
| 65 | \lstlistoflistings |
|---|
| 66 | \newpage |
|---|
| 67 | } |
|---|
| 68 | |
|---|
| 69 | % |
|---|