4
votes
1answer
77 views

Prevent page break after first line of example

I would like to find a way to prevent a page break between the first line of the example in following code. \documentclass{article} \usepackage{lipsum} \usepackage{gb4e} \begin{document} ...
16
votes
2answers
851 views

A special example environment

How can I define an environment named "example" so that: can be broken over pages has a horizontal line above "Example \chap.\no" (e.g. Example 4.10), and vertical line that is spread to the whole ...
0
votes
1answer
255 views

How to prevent pagebreaking before example environment?

In my document, the page happens to break right after the line that introduces an example environment: \documentclass{article} \usepackage{gb4e} \begin{document} \noindent Here are my results: ...
7
votes
1answer
392 views

defining a new breakable colored environment for examples

I want to define a new colored environment for my examples. There is two title bars at top of this environment, side by side. One is filled by green color and there is a word "Example" in it. Another ...