MathGroup Archive 1997

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

Search the Archive

Re: cell spacing

  • To: mathgroup at smc.vnet.net
  • Subject: [mg7840] Re: cell spacing
  • From: Stephen P Luttrell <luttrell at signal.dra.hmg.gb>
  • Date: Mon, 14 Jul 1997 03:01:20 -0400
  • Organization: Defence Research Agency
  • Sender: owner-wri-mathgroup at wolfram.com

> I have the following formatting question for Mma3.0:
> 
> How can I decrease the vertical distance of cells?
> 
> I have to print out (automatically generated) notebooks
> with a lot of text cells, each cell containing only one line.
> In the printout (as on screen) it looks like having
> an empty line between the lines, which I want to avoid.
> 
> So far I always merged all the cells into one before printing,
> to make the lines dense, but this is no solution for
> me, since the cell group structure is very nested and I
> want to print the cell brackets for displaying this structure.
> 
> I tried several of the options from the option inspector,
> but did not find the one who does it :-(
> 
> Thank you for any help,
> please email me a copy of your answer, since I often
> have problems reading news on my system.

You choose can edit the style sheet. the steps are as follows:

1. Open the notebook in question.

2. Click on the menu entry Format/Edit Style Sheet..., and choose to
import a private copy of the style sheet (to play safe!). If you are
brave enough, then you can edit the global style sheets if you want.

3. If you want to change the vertical spacing above (below) a
heading, such as a Section, then open the cell "Styles for Headings".

4. Now select (don't open it) the prototype cell "Section".

5. Do Ctrl+Shift+E (i.e. menu entry Format/Show Expression)
to show exactly what's in this cell.

6. You will see CellMargins->{{25, Inherited}, {8, 24}}, or
something similar.

7. The {8,24} is the {bottom margin, top margin} of all Section
cells in the notebook you origonally opened (unless you have
overridden them in the notebook itself).

8. Edit the {8,24} to be what you require.

9. Do Ctrl+Shift+E again, to reverse the effect of step 5 above,
and you will see the spacing above/below the Section cells in
your notebook change appropriately.

This procedure can be applied to any type of cell in the style
sheet.

================================================================

Dr Stephen P Luttrell                  luttrell at signal.dra.hmg.gb
Adaptive Systems Theory                01684-894046 (phone)
Room EX21, Defence Research Agency     01684-894384 (fax)           
Malvern, Worcs, WR14 3PS, U.K.        
http://www.dra.hmg.gb/cis5pip/Welcome.html


  • Prev by Date: Elevations in 3D
  • Next by Date: Re: recovering from forgetfulness
  • Previous by thread: cell spacing
  • Next by thread: Bayesian: Markov chain Monte Carlo