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?