Sunday, February 26, 2012

Table and Figure sitting side by side

\newcommand{\specialcell}[2][c]{%
\begin{tabular}[#1]{@{}c@{}}#2\end{tabular}}


\begin{figure}[htb]
\centering
\begin{minipage}[c]{0.6\textwidth}
\centering
\includegraphics[width=0.99\linewidth]{boxplot1.png}
\end{minipage}
%\hspace{0.2in}
\begin{minipage}[c]{0.35\textwidth}
\centering
\begin{tabular}{|l|c|c|}
\hline
&\specialcell{Median \\ time (ms)} & \specialcell{Median \\ error (mm)} \\ \hline
% &Median time(ms) & Median error(mm) \\ \hline
\specialcell{Random \\ Forest }& 343 & 34 \\ \hline
%\parbox[c]{1.2cm}{Our method} & 5 & 38 \\ \hline
\specialcell{Our \\ method} & 5 & 38 \\ \hline
\end{tabular}
\end{minipage}
\newline
\label{fig:single_organ}
\vspace{-0.2in}
\caption{Our dataset consists of 3D CT scans from different body portions and pathologies.}
\end{figure}

Friday, April 22, 2011

Figure wrap around text

as in Adrian's lymph node paper

\begin{wrapfigure}{r}{0.5\textwidth}
%\vspace{2.5cm}
\begin{center}
\includegraphics[width=0.4\textwidth]{1}
\end{center}
\caption{The liver lesions are annotated with bounding boxes. The segmented liver is overlaid on the original volume in light red.}
\label {FG:ANNOTATE}
\end{wrapfigure}

Friday, February 4, 2011

Using Adobe Acrobat Reader with TeXnicCenter


From Build menu, choose Define Output Profiles.
Select the LaTeX => PDF and make the following changes in the Viewer tab.
Path of executable (depends on your system):
C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe
In View project’s output, select DDE command and enter the following:
Command: [DocOpen("%bm.pdf")][DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
Server: acroview
Topic: control
In Forward search, select DDE command and enter the following:
Command: [DocOpen("%bm.pdf")][DocOpen("%bm.pdf")][DocOpen("%bm.pdf")]
Server: acroview
Topic: control
In Close document before running LaTeX, select DDE command and enter the following:
Command: [DocOpen("%bm.pdf")][DocClose("%bm.pdf")]
Server: acroview
Topic: control