LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 04-22-2006, 11:19 AM   #1
hedpe
Member
 
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380

Rep: Reputation: 30
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
 
Old 04-23-2006, 10:44 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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-23-2006 at 11:05 PM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting "Short read in buffer_copy" error with "dpkg" stalefries Linux - Software 6 03-24-2010 03:19 PM
lilo says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 09:33 PM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 12:17 PM
cdrecord command-line parentheses "(" ")" coolingtower Linux - Software 1 10-28-2005 11:49 AM
Trying to read "line in" toedoe Linux - Newbie 0 07-29-2005 07:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration