To have "breaks" in Markdown documents

2

0

I am trying to use Markdown as a substitute for LaTex in my documents which do not have Mathematical formulee.

I assume that the number of rows in one A4 is 80.

Problem: to not to have two H1 headings in the same page

If the problem occurs, rows should be added to the beginning of the second H1 such that it starts at the new page.

The program should

  • calculate the number of rows before the second H1
  • divide that number by 80 and take the remainder
  • add enters as much as the remainder to the beginning of the second H1

How can you calculate the number of rows in a document where there is no pictures?

Léo Léopold Hertz 준영

Posted 2009-07-25T21:09:10.220

Reputation: 4 828

Answers

2

There is a perl script here that puts a page break comment before each H1 heading (except the first). The page break comment is then processed when the output is passed through html2ps. This may not be precisely the solution you need but it may lead you in the right direction.

Paused until further notice.

Posted 2009-07-25T21:09:10.220

Reputation: 86 075