[texworks] How do I add figures in Texworks?
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu May 8 23:06:51 CEST 2014
On 08/05/2014 15:42, McKinstrie, Colin wrote:
> For several years, I have been using Miktex and Winedt. I added figures (in eps) using the following command.
>
> \begin{figure}[h!]
> \centerline{\includegraphics[width=3.0in]{fig4.eps}}
> \caption{\small Fidelity plotted as a function of link loss.} \label{f1}
> \end{figure}
>
> When I tried the same command using Texworks, space was left for the figures, but the figures did not display. Using pdf figures did not help. (I got a no bounding box error.)
>
> What should I do?
(Not really a TeXworks issue)
TeXworks uses a PDF-based workflow: in any case, you should never use an
extension with \includegraphics:
\includegraphics[width=3.0in]{fig4}
Assuming a recent MiKTeX or TeX Live, auto-magic conversion will then
take place.
Note also that in LaTeX you really shouldn't use \centerline, which is a
plain TeX command: use
\begin{figure}
\centering
\includgraphics
instead.
--
Joseph Wright
More information about the texworks
mailing list