MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Text cell formating blues. LineBreakWithin, PageWidth, WordWrapping

for these purposes you can also go for the StyleSheet entitled Journal Article, which is 
very well suited for the kind of documents you seem to have in mind. 
It is in the Menu/Format/Stylesheet/Article/Journal Article. 

One problem with all these pdf files produced out of notebooks, is that if 
graphics is in, when transforming it into pdf you may get empty parts of some pages,
if there was an image on the corresponding place whose geometrical size was larger than 
the place on the page left for it. In this case it will be placed on the next page. In principle,
this problem may be solved by some formatting of the paper "by hand". 

By the way, does someone know a better way of dealing with the empty "half-pages"?

Have success, Alexei 


V7 on windows XP.

I normally use Mathematica just to do the computation/solving/verification 
part and then use Latex for actually writing my final homework and school 
report (I use Scientific workplace SW).

Today I decided to give Mathematica another try to see if I can write the 
whole thing in one document, i.e. code and report. This way everything is in 
one place and no need to copy and paste stuff between Mathematica and SW.

For the last hour and more I have been fighting with Mathematica to make 
Text cells look nice after exporting to PDF. i.e. i'd like lines to be of 
reasonably equal length.

Mathematica break lines in places where I do not want it to, so I end up 
with text paragraphs that looks like the following on the screen and also in 
PDF (notice the extra spaces even to the left of some lines)


So, this is what I tried, but I am about to give up, but I thought let me 
post this and may be there is simple solution that I am missing.

First I turned OFF the LineBreakWithin (i.e. set it to false from automatic 
in the option inspector, did this for Global, Notebook and Selection). btw, 
why does an "X" still show up sometime the the left of an option name after 
I change its value?

So, now my lines are very long and they are cut off when printing. I.e. they 
are like this


So, I select the text cell again, and did Format->WordWrapping->Wrap at 
paper width, but now it looks like

xxxxxxx| text here not showing
xxxxxxx| ......
xxxxxxx| .....
xxxxxxx| .....

and the rest of each line (if it longer than page width) is not visible on 
the screen and neither in PDF.

Next I went to option inspector and set "PageWidth" to paperWidth (it was 
infinity) I could only change this option in Global and not in notebook or 
Selection (the field was grayed out there). ?

But this did not help either. For lines that are too long, I can see the 
rest of the line on the screen and have to scroll horizontally to see it.

I tried many other things.

Does any one know what is the best combination of options/formatting to use 
so that text cells would looks the best for printing?  and which font to use 
for best results?

btw, I try to not hit carriage return when I write text in a text cell. 
Turning off LineBreakWithin seems to be the key option to play with, but I 
think I made things worst.

I tried also to change the cell style  to ItemParagraph from text, but this 
did not seem to help much.

I would love to use Mathematica to typeset my reports, but I still find 
Latex output via SW easier to work with.

ps. I use Report style sheet, but even default style sheet has the same 

I put the current notebook here that I am trying these things on, so you can 
see the mess I made with the text cells

thanks for any hints


Alexei Boulbitch, Dr., habil.
Senior Scientist

ZAE Weiergewan
11, rue Edmond Reuter
L-5326 Contern

Phone: +352 2454 2566
Fax:   +352 2454 3566


This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information. If you are not the intended recipient and have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal from your system. Thank you for your co-operation.

  • Prev by Date: Re: Suggestions on how to use standard engineering symbols
  • Next by Date: Re: Text cell formating blues. LineBreakWithin, PageWidth, WordWrapping
  • Previous by thread: Re: Text cell formating blues. LineBreakWithin, PageWidth, WordWrapping
  • Next by thread: Re: Text cell formating blues. LineBreakWithin, PageWidth, WordWrapping