GeneralCant insert the figure in picture environment

General information and discussion about TeXnicCenter
Post Reply
pban92
Posts: 54
Joined: Sat Aug 09, 2008 9:34 am

Cant insert the figure in picture environment

Post by pban92 »

I am practising to enter figure by the following codes with no success. The jpg file and the class file are attached. Any suggestion pls? Many thanks!

Code: Select all

\documentclass[twocolumn,10pt]{asme2e}

\begin{document}
\begin{figure}[t]
\begin{center}
\setlength{\unitlength}{0.012500in}%
\begin{picture}(115,35)(255,545)
\put(115,35){\includegraphics{kochcurve.jpg}}
\end{picture}
\end{center}
\caption{THE FIGURE CAPTION USES CAPITAL LETTERS.}
\label{kochcurve} 
\end{figure}
\end{document}
Attachments
kochcurve.jpg
kochcurve.jpg (3.52 KiB) Viewed 4113 times
asme2e.cls
(45.76 KiB) Downloaded 308 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Cant insert the figure in picture environment

Post by localghost »

View topic: Errors in picture


Best regards
Thorsten
pban92
Posts: 54
Joined: Sat Aug 09, 2008 9:34 am

Re: Cant insert the figure in picture environment

Post by pban92 »

Thanks Thorsten. The latest problem arrived due to two columns document unlike the previous problem (View topic: Errors in picture from your post) was for single column document. May be I am missing something very basic rule about inserting figure.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Cant insert the figure in picture environment

Post by localghost »

pban92 wrote:[...] May be I am missing something very basic rule about inserting figure.
You have to use the figure* environment instead. Note that this will generate a full-width figure which spreads over the two columns.
pban92
Posts: 54
Joined: Sat Aug 09, 2008 9:34 am

Re: Cant insert the figure in picture environment

Post by pban92 »

Ok solved it! Thanks!
Post Reply