Thursday, December 16, 2010

multiple figures, subfigure

\begin{figure}[htp]
  \begin{center}
    \subfigure[Original image]{\label{fig:edge-a}\includegraphics[scale=0.75]{toucan.eps}}
    \subfigure[After Laplace edge detection]{\label{fig:edge-b}\includegraphics[scale=0.75]{laplace_toucan.eps}} \\
    \subfigure[After Sobel edge detection]{\label{fig:edge-c}\includegraphics[scale=0.75]{sobel_toucan.eps}}
  \end{center}
  \caption{Various edge detection algorithms}
  \label{fig:edge}
\end{figure}

Importing Graphics

http://en.wikibooks.org/wiki/LaTeX/Importing_Graphics

Printing in an EPS file:
  • Under Windows, PDFCreator is an open source software that can create PDF as well as EPS files. It installs a virtual printer that can be accessed from other software having a "print..." entry in their menu (virtually any program).
  •  

Creating Graphics

http://en.wikibooks.org/wiki/LaTeX/Creating_Graphics

unknown graphics extension .eps

In TeXnicCenter, top left corner, select
LaTeX=>PS=>PDF

instead of LaTeX=>PDF

Convert PPT to EPS


MUST use Apple Color LW printer driver!!! Doesn’t work with Adobe PDF driver, HP driver…
MUST set printer Preferences, POSTSCRIPT option to EPS, not “Optimize for speed”
Page Setup --> Select A4 Landscape paper
Print to File
“Scale to fit paper” à THIS IS THE KEY STEP !!!
Rename .prn to .ps
Inside ghostview, convert to eps.
If in gsview top is cut out, do NOT increase size of PPT page layout. Final figure in PDF will look correct. Don’t know why !!!!
If in final PDF paper, figure covers some text, then you should modify the PPT file, so that figure starts tightly on the top-left corner of PPT.

Sunday, October 10, 2010

error message: GUI framework cannot be initialized

I just did a fresh install of MiKTeX (basic version) and TeXnicCenter. Originally I selected "Ask me first" for the "Install missing packages on-the-fly" option and I received the "pdflatex.exe: GUI framework cannot be initialized." error. But, even after selecting "Yes" for the option, I still received the error. 

My solution - what worked for me - was to open a command prompt, `cd` into the directory containing my LaTeX file, and execute `latex` on the file. (Note: I still had "Yes" selected for the install-on-the-fly option.) `latex` installed a missing package (`translator`), and generated a DVI file. I was then able to use TeXnicCenter's "Build current file" and "Build and view current file" commands without receiving the error.