Prev: Evaluating a sum from terms generated by the Array
Next: Front-end - a strange behaviour of Plot3D
From: fizzy on 3 May 2010 06:12 I came across a Notebook, from a Mathematica textbook, that I really like...it has a nice background color, etc. which makes it easier to see what I'm doing....however...when you have multiple lines of code in an Input cell , e.g. 2, the first output Cell is contiguous with the Input cell....however, the next Output cell is about an 1/8 th of an inch below the previous Output cell...also between them is the Notebook's Background color...I dont like this....is there a way to either (or both) (1) change the spacing between the Output cells or make them contiguous.... (2) change the background color between the Output cells only...to , say, white... thanks....Jerry Blimbaum
From: David Park on 3 May 2010 07:54 Try the CellMargins option in the style sheet? David Park djmpark(a)comcast.net http://home.comcast.net/~djmpark/ -----Original Message----- From: fizzy [mailto:fizzycist(a)knology.net] Sent: Monday, May 03, 2010 6:12 AM Subject: space between Output cels I came across a Notebook, from a Mathematica textbook, that I really like...it has a nice background color, etc. which makes it easier to see what I'm doing....however...when you have multiple lines of code in an Input cell , e.g. 2, the first output Cell is contiguous with the Input cell....however, the next Output cell is about an 1/8 th of an inch below the previous Output cell...also between them is the Notebook's Background color...I dont like this....is there a way to either (or both) (1) change the spacing between the Output cells or make them contiguous.... (2) change the background color between the Output cells only...to , say, white... thanks....Jerry Blimbaum
From: Larry Adelston on 4 May 2010 06:29 Yes, there are probably several ways to accomplish your objectives. First, you need to edit the style definition for Output. The option that controls the spacing above and below (as well as left and right) is called CellMargins. And the option for setting a background color is called Background. These are the options you will need to work with. There may be other options that can assist you. But CellMargins and Background are the basic building blocks. Yours, Larry On May 3, 2010, at 5:12 AM, fizzy wrote: > I came across a Notebook, from a Mathematica textbook, that I really > like...it has a nice background color, etc. which makes it easier to > see > what I'm doing....however...when you have multiple lines of code in an > Input cell , e.g. 2, the first output Cell is contiguous with the > Input > cell....however, the next Output cell is about an 1/8 th of an inch > below the previous Output cell...also between them is the Notebook's > Background color...I dont like this....is there a way to either (or > both) > > (1) change the spacing between the Output cells or make them > contiguous.... > > (2) change the background color between the Output cells only...to , > say, white... > > > > thanks....Jerry Blimbaum
From: David Reiss on 4 May 2010 06:29 Presumably the output cells are set up in that notebook to properly align with an input cell directly above it. Adjusting the output cell's cell margins and so on may then make its alignment with an input cell become misaligned. But the only way to find out is to experiment with the various settings... --David On May 3, 6:12 am, "fizzy" <fizzyc...(a)knology.net> wrote: > I came across a Notebook, from a Mathematica textbook, that I really > like...it has a nice background color, etc. which makes it easier to see > what I'm doing....however...when you have multiple lines of code in an > Input cell , e.g. 2, the first output Cell is contiguous with the Input > cell....however, the next Output cell is about an 1/8 th of an inch > below the previous Output cell...also between them is the Notebook's > Background color...I dont like this....is there a way to either (or > both) > > (1) change the spacing between the Output cells or make them > contiguous.... > > (2) change the background color between the Output cells only...to , > say, white... > > thanks....Jerry Blimbaum
From: David Annetts on 5 May 2010 06:03 Hi Jerry > I came across a Notebook, from a Mathematica textbook, that I really > like...it has a nice background color, etc. which makes it easier to see > what I'm doing....however...when you have multiple lines of code in an > Input cell , e.g. 2, the first output Cell is contiguous with the Input > cell....however, the next Output cell is about an 1/8 th of an inch > below the previous Output cell...also between them is the Notebook's > Background color...I dont like this....is there a way to either (or > both) > > (1) change the spacing between the Output cells or make them > contiguous.... > > (2) change the background color between the Output cells only...to , > say, white... > 1. you can alter this with CellMargins. You can set this to 0, a number or have control over left, right, top & bottom spacing if you want. 2. Cell backgrounds are changed using the Background option. To change the background between cells, you'll need to change this option in the Notebook style. I'd suggest starting with (eg.) NaturalColor.nb, and modifying styles based on these. Remeber that you should save the notebook in the proper place. YMMV, Dave.
|
Pages: 1 Prev: Evaluating a sum from terms generated by the Array Next: Front-end - a strange behaviour of Plot3D |