Tag Info

6

you can prevent breaking by using \\* instead of \\. \documentclass{article} \usepackage[paperwidth=5cm, paperheight=3cm, margin=1mm, bottom=.5\baselineskip]{geometry} \usepackage{amsmath} \allowdisplaybreaks \begin{document} We have \begin{align*} A + B + C &= a + b + c + d \\ & \qquad \qquad + e + f ...

5

The macro \allowdisplaybreaks is to be used in two cases: the document is being prepared and we don't need to be fussy about page breaks the document is subject to automatic typesetting, so nobody can examine the page breaks The second case is irrelevant, because there is no control on the page breaks to begin with. The first case is what we're concerned ...

4

If lualatex is no obstacle \usepackage{luacolor} will preserve the colour stacks. (I changed the colour however to blue to make it more outstanding for this example) \documentclass[12pt]{report} \usepackage{luacolor} \usepackage[utf8]{inputenc} \usepackage[framemethod=TikZ]{mdframed} \setlength\parskip{\baselineskip} \usepackage{lipsum}% just to generate ...

4

Although the question was about mdframed, may be you can consider tcolorbox as an alternative solution. Next code doesn't show an example environment as complete as your one (see update), but a partial example which shows that the color problem doesn't appear with breakable tcolorboxes. In this case, the example form the upperbox while solutions are the ...

4

It's not elegant, but it works. \documentclass{book} \usepackage{showframe} \begin{document} top of page \vfill \noindent\begin{minipage}{\textwidth} \begin{itemize} \item item 1 \item item 2 \item item 3 (I'd like this to be aligned with the last line on the facing page) \end{itemize} \end{minipage} \end{document} Aha! I found the culprit! One can ...

3

I would accomplish this by combining Christian Hupfer's suggestion of \vspace{0.5\textheight} with a \vfill. First I would have the few lines thanking various people, then a \vfill, then In (loving) memory of then \vspace{0.5\textheight}. The \vspace{0.5\textheight} guarantees that underneath In (loving) memory of there is a space of half the height of the ...

3

The problem is \noindent \begin{align} you have a paragraph break there. Remove the blank line. The space at the top of the page is not dropped as it is not vertical space it is a one line blank paragraph. With blank line before equation: Without blank line: With the corrected version and the addition of \showoutput \showboxdepth5 The log ...

2

You should try the needspace package. Since it looks like 5 to 6 lines are occupied by the material that needs to be kept together, you might try: \documentclass{article} \usepackage{multicol,needspace} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} %% how is the "\vysl" macro defined? \begin{document} \begin{enumerate} \item \dots \item týden ...

2

As showed in comments and previous answer, for vertical spacing you can use \vspace, \vskip, \vfill or \vfil or their combinations. Only add that the first two are not exactly the same (see What is the difference between \vskip and \vspace?) and well as the later two, but \vspace or \vskip could be also rubber lengths (e.g \vskip 10em plus 1em minus .2em) ...

2

One solution may be to use \filbreak before the section, which is defined in plain TeX as \vfil\penalty-200\vfilneg. This suggests that the line is a favorable break location. It worked for a similar problem of mine, at least.

2

I played a little bit with your code and with a quick and dirty trick I got only two pages and a split in the footnote. I added some blank lines and played with the position of a \newpage in the footnote ... I also commented package fleqn to get rid of the message. Please try the following MWE (and see the line marked with % ============): ...

2

It might be dangerous in some situations but a simple \unskip works here. \documentclass{book} \begin{document} dummy page 1 (to easily see the problem in the double page view) \newpage top of page 2 \vfill bottom of page 2 \newpage top of page 3 \vfill \begin{itemize} \item item 1 \item item 2 \item item 3 (this should be aligned with the last line on the ...

1

If the manual page break should occur inside a paragraph, then the paragraph should be ended without \parfillskip to avoid a ragged last line: \begingroup\setlength{\parfillskip}{0pt}\par\endgroup \noindent prevents, that the new paragraph starts with indentation. The paragraph separation space \parskip is automatically removed at the start of the new ...

1

The package supertabular overestimates row heights in order to be sure to split the table before the page break. Here's a proof: \documentclass[11pt]{article} \usepackage{showframe} \usepackage{xtab} \usepackage{etoolbox} \makeatletter \patchcmd{\estimate@lineht}{1\p@}{-1.5\p@}{}{} \makeatother \begin{document} \begin{xtabular}{|l|l|} a & 0 \\ a & ...

1

You have to hook into \endtheindex, before it issues \clearpage at the end. \documentclass[a4paper,11pt]{book} \usepackage{makeidx} \usepackage{amssymb} \usepackage{etoolbox} \makeindex \preto\endtheindex{\par\nobreak\noindent\hfill$\blacksquare$} \begin{document} a\index{One} \newpage b\index{Two} \newpage c\index{Five} \printindex \end{document} ...

1

\vspace or \vspace* should do this. \documentclass{article} \usepackage{showframe} \begin{document} Foo \vspace*{0.5\textheight} In (loving) memory of \end{document}

Only top voted, non community-wiki answers of a minimum length are eligible