4
votes
1answer
95 views

How to prevent a page break between paragraphs

I would like to typeset something like a "quote plus attribution", e.g. at the beginning of a book chapter. It should look like this: CHAPTER TITLE This is an introductory quote. ...
24
votes
7answers
733 views

How to replace a large block of text by an empty block of the same size?

I know there exists the \phantom command, but does it work on large blocks of text (containing several paragraphs or even several pages)? What I want is to have some commands, call them \hide and ...
2
votes
1answer
166 views

Can I write a macro for placing a vertical, breakable rule along arbitrary paragraphs without an output routine?

I answered a question last week about creating a continuous but breakable rule next to an arbitrary number of paragraphs in Plain TeX. My solution gathered the paragraphs to rule in a vbox; my output ...
2
votes
1answer
206 views

Insert text before end of page, and at the begining of the next page

I'm putting a template together and I have created a custom command which I'm going to use to set specific margins on the text passed to its argument and a few more formatting things, like this: ...
3
votes
1answer
83 views

How can I create a macro that does nothing if it appears at the top of a page?

How can I define a macro that does nothing if it is the first item on a page, but does something (e.g. inserts a rule or a space) if it appears elsewhere? Something along these lines is discussed in ...
10
votes
1answer
372 views

How do I check whether the text will fit in one page?

I am trying to typeset a page that varies in length. Sometimes it's just shorter than A4, but sometimes it exceeds the length of A4. My question is, how can I check whether the text will fit in one ...
2
votes
1answer
357 views

Macro after heading shall not allow page break.

In a previous question I needed a solution for the following problem: I had defined a command for inserting special custom notes in my document with the fixme package and if those notes followed a ...
4
votes
2answers
216 views

Ending all pages with period/fullstop

I want to have LaTeX (LyX) make its pages end at a fullstop (.). In other words no broken sentences carried to next page. I hope to use \raggedbottom so that pages will be shortened by a few lines ...