[texworks] How do I add figures in Texworks?

Joseph Wright joseph.wright at morningstar2.co.uk
Fri May 9 21:11:55 CEST 2014


On 09/05/2014 18:22, Jean-Claude Raoult wrote:
>>> \begin{figure}[h!]
>>> \centerline{\includegraphics[width=3.0in]{fig4.eps}}
>>> \caption{\small Fidelity plotted as a function of link loss.} \label{f1}
>>> \end{figure}

[snip]

>> Note also that in LaTeX you really shouldn't use \centerline, which is a
>> plain TeX command: use
>>
>>    \begin{figure}
>>      \centering
>>      \includgraphics
>>
>> instead.
> 
> I plead here for Plain TeX. Instead of
> 
> \begin{wesewese}
> \do several things
> blablabla
> \end{wesewese}
> 
> in PLain TeX, you just write
> 
> \centerline{XeTeXPDFfile "toto.pdf" [options]}
> 
> assuming your figure has name toto.pdf.
> 
>             Jean-Claude Raoult 

My comment applies to LaTeX users, of course. The OP posted a snippet
which strongly suggests the use of LaTeX, hence my statement about
\centerline. For plain, things are different!
-- 
Joseph Wright



More information about the texworks mailing list