Message Boards Message Boards

0
|
6372 Views
|
7 Replies
|
8 Total Likes
View groups...
Share
Share this post:

Adjusting the space between two paragraphs individually

Is there an easy way to adjust the space between two paragraphs (of either the same or different styles) individually for some singular cases, without changing the style definition? Similarly to how the font, colour, font size etc. can be modified individually?

The background of the question is that I am doing my slides in Mathematica, with a style file I modified from an existing SlideShow template (Steel), which tries to imitate LaTeX style. Sometimes I have several equations in a sequence with some single words such as "and" in between. For such cases it would be beneficial to decrease the spacing, to be able to put more equations on one slide, and have a more aesthetic appearance.

I enclose a screen shot here where I would like to decrease the spacing both before and after the line containing "with" for better looks and better use of space. Any suggestions? Thanks in advance. ________________________________________________________________________________ Parts of a slide where change of spacing between certain lines would be useful

POSTED BY: Imre Pazsit
7 Replies

This is indeed very versatile, and the framed header looks terrific. Thank you for the tips, I am going to experiment with it!

POSTED BY: Imre Pazsit

Exactly. I didn't know your level (and also for others that don't know about editing the Cell expression directly) so I went the Option Inspector route.

Happy to be able to help...

POSTED BY: David Reiss

1) Select the Cell in question.

2) Open the Option Inspector with its scope set to "Selection"

3) Search for CellMargins using the search box.

4) Adjust the values in the CellMargins option to change the spacings on any one (or more) of the four sides of the selected Cell. The items in the list are of the form {{left,right},{bottom,top}}

The CellMargins documentation, http://reference.wolfram.com/language/ref/CellMargins.html, gives you detailed information on this Option.

POSTED BY: David Reiss

Thanks a lot, this works perfectly. Actually now that I learned the concept of CellMargins, I can edit my paragraph much faster by opening the cell in question by Shift-Command-E and edit the CellMargins data there manually. Thank you!

POSTED BY: Imre Pazsit

Something like this?

Column[{
  aaa,
  xxx,
  "with",
  yyy,
  zzz},
 Spacings -> {Automatic, {1, 1, 0, 0, 1}}
 ]

Copy and evaluate to see the result. The expressions aaa et cetera would be Row constructs.

Thanks a lot, I see how this works, but I do not know how to combine it with formatted text.However, I got another tips as you might have seen, and it solves the problem. Thank you for your comment anyway.

POSTED BY: Imre Pazsit
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract