Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 04-22-2006, 12:19 PM   #1
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380

Rep: Reputation: 30
latex: "Unable to read an entire line" when trying graphics


I keep getting a buffer error trying to compile my latex file:
(/usr/share/texmf/tex/latex/psnfss/omsptm.fd) [1]! Unable to read an entire line---bufsize=300000.
It is generated from this code:
\caption{Simulation Results}
any ideas?

Old 04-23-2006, 11: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.

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:
\DeclareGraphicsRule{.png}{eps}{.png}{.bb}{pngtopnm #1 | pnmtops}

Last edited by Simon Bridge; 04-24-2006 at 12:05 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:19 PM
lilo says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 10:33 PM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 01:17 PM
cdrecord command-line parentheses "(" ")" coolingtower Linux - Software 1 10-28-2005 12:49 PM
Trying to read "line in" toedoe Linux - Newbie 0 07-29-2005 08:44 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:36 AM.

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