Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid page breaking right after start of example #89

Open
kopeckyf opened this issue Sep 13, 2018 · 1 comment
Open

Avoid page breaking right after start of example #89

kopeckyf opened this issue Sep 13, 2018 · 1 comment
Assignees

Comments

@kopeckyf
Copy link
Contributor

Install some \nopagebreak commands such that langsci-gb4e handles page breaking in a smart way, i.e. does not break after the first line of a (sub-)example env.

@kopeckyf kopeckyf self-assigned this Sep 13, 2018
@kopeckyf
Copy link
Contributor Author

It is actually pretty easy to do this using the newline command that prevents page breaks, or \\*.

Observe how the following leads to a page break:

\documentclass{article}
\usepackage{langsci-gb4e}
\usepackage{kantlipsum}
\begin{document}
\kant[7-9]

\ea  Kantian Philosophese\\
\gll As is evident upon close examination\\
     As is evident upon close examination\\
\glt `As is evident upon close examination'
\z
\end{document}

But using \\* in the \ea line prevents that:

\documentclass{article}
\usepackage{langsci-gb4e}
\usepackage{kantlipsum}
\begin{document}
\kant[7-9]

\ea  Kantian Philosophese\\*
\gll As is evident upon close examination\\
     As is evident upon close examination\\
\glt `As is evident upon close examination'
\z
\end{document}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant