Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


"Please increase buf_size in texmf.cnf" error

LaTeX reads in files to process one line at a time.  Normally, this
works out okay, because a line with carriage returns is about 70
characters, and that's not too much for LaTeX to think about at one
time.  However, if you are creating your .tex file in an editor that
doesn't have word wrapping on, then one line can last for the entire
paragraph.  If the paragraph is very long, then this can be more than
LaTeX can handle at once, and you'll get an error message of
something like 

   ! Unable to read an entire line---bufsize=30000.
   Please increase buf_size in texmf.cnf.

(under LaTeX 2.09, it would say

   ! Unable to read an entire line---bufsize=30000.
   Please ask a wizard to enlarge me

but the meaning was the same).

Regardless of the error message, you shouldn't try to change the LaTeX
configuration to fix the buffer size - what you need to do is edit
your file to insert line breaks.  In emacs, you can "fill" a paragraph
by hitting M-q with the cursor in that paragraph, or type 

   M-< M-> M-x fill-region

to fill the entire document.  

Sometimes this error will be generated by the inclusion of a
postscript file, instead of by the .tex file itself.  This is most
frequently the case when the postscript was generated on a Mac; Macs
use ctrl-M for a line break where UNIX uses ctrl-J (and Windows/DOS
uses ctrl-M plus ctrl-J).  The simplest way to fix this is to load the
postscript file into emacs, and run
  
   M-x replace-string [RET]  C-q C-m [RET] C-q C-j [RET]
	   
to replace all the ctrl-M's with ctrl-J's. 

Last updated: 11/8/99

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.