Home Forums HCL Reviews Tutorials Articles Register Search Today's Posts Mark Forums Read
 LinuxQuestions.org latex: "Unable to read an entire line" when trying graphics
 Linux - Software This forum is for Software issues. Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

 04-22-2006, 12:19 PM #1 hedpe Member   Registered: Jan 2005 Location: Pittsburgh Distribution: Ubuntu Posts: 378 Rep: latex: "Unable to read an entire line" when trying graphics Hi, I keep getting a buffer error trying to compile my latex file: Code: (/usr/share/texmf/tex/latex/psnfss/omsptm.fd) [1]! Unable to read an entire line---bufsize=300000. It is generated from this code: Code: \begin{figure} \centering \includegraphics[width=2.5in]{single_comp.png} \caption{Simulation Results} \label{fig_sim} \end{figure} any ideas? Thanks! George
 04-23-2006, 11:44 PM #2 Simon Bridge LQ Guru   Registered: Oct 2003 Location: Waiheke NZ Distribution: Ubuntu Posts: 9,211 Rep: You specified LaTeX, not pdfLaTeX... the script is mostly correct, except for the graphics file type. To be specific I need to know what graphics package you are using ... I'll assume "graphicx" here. LaTeX will try to read the .png file as a post-script file. It will look like one really long line - too long to be read. http://theoval.sys.uea.ac.uk/~nlct/l...es/node43.html AFAIK: unless you are using pdfLaTeX, you won't be able to include .png graphics in your documents using standard packages. Convert the png file to eps. Use the GIMP. Or you could use: Code: \DeclareGraphicsRule{.png}{eps}{.png}{.bb}{pngtopnm #1 | pnmtops} \begin{figure} [etc] http://tex.loria.fr/english/prod-graph.html Last edited by Simon Bridge; 04-24-2006 at 12:05 AM.

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is Off HTML code is Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post stalefries Linux - Software 6 03-24-2010 04:19 PM clausawits Linux - General 3 12-31-2007 10:33 PM sundialsvcs Linux - Newbie 2 03-01-2006 01:17 PM coolingtower Linux - Software 1 10-28-2005 12:49 PM toedoe Linux - Newbie 0 07-29-2005 08:44 PM

All times are GMT -5. The time now is 07:59 PM.

 Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap -