Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

By default in the Notebook interface the text wraps.

Is it possible to prevent this wrapping?

share|improve this question
add comment

2 Answers

up vote 10 down vote accepted

Mathematica graphics

You can also set option PageWidth -> Infinity for the Cell or Notebook, e.g.:

SetOptions[EvaluationNotebook[], PageWidth -> Infinity]
share|improve this answer
2  
To complement your answer: code cells don't wrap by default. Maybe that's what the OP wants. Enter code cells using Alt-8. –  Szabolcs Mar 14 '12 at 20:15
    
Thanks - I was searching for it in Preferences -> Editor –  my account_ram Mar 14 '12 at 20:17
    
@Mr.Wizard Is it possible to set PageWidth -> Infinity as the default value for all Notebooks? I thought SetOptions[$FrontEnd, PageWidth -> Infinity] should do this but it does not work. –  Alexey Popkov Mar 16 '12 at 2:59
1  
@Alexey ah, I see tkott answered that below. –  Mr.Wizard Jul 23 '12 at 2:38
add comment

There's also a way to do it programmatically with LineBreakWithin

SetOptions[$FrontEnd, LineBreakWithin -> False]

Recover the original with:

SetOptions[$FrontEnd, LineBreakWithin -> Automatic]

Warning:

This function has not been fully integrated into the long-term Mathematica system, and is subject to change.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.