runemadsen / Magic-Book-Project

DEPRECATED: We are reviving the Magic Book project as a node package: https://github.com/magicbookproject/magicbook
http://itp.nyu.edu
620 stars 62 forks source link

Keep elements together (no page break) #131

Closed shiffman closed 11 years ago

shiffman commented 11 years ago

Using this issue to track a list of things I'm noticing where we don't want a page break.

1) Example header and code, i.e.

[example]*Example I.1: Traditional Random Walk*
[source,java]
----
void setup() {
  size(640,360);
  // Create the Walker.
  w = new Walker();  // [bold]
  background(0);
}
----

There should never be a page break between Example I.1 and the first line of code.

2) Code comment

There should never be a page break between the line of code and it's corresponding comment.

3) Section heading and text below it (section heading should always go to next page)

[[chapter01_section10]]

=== 1.10 Interactivity with acceleration

To finish out this chapter, let’s try something a bit more complex and a great deal more useful.

4) Table should have no page break

runemadsen commented 11 years ago

This should all be fixed now in master.