# Tag Info

## New answers tagged page-breaking

1


0

Is it safe to use leaders to test am I on the top of page? What do experts think? Previously I tried check \pagegoal, \maxdimen and \pagetotal, but it worked not 100%. \documentclass{article} \usepackage[showframe,paperwidth=10cm,paperheight=5cm]{geometry} \usepackage{amsmath} \usepackage{etoolbox} \makeatletter %% leaders should be discarded at top of ...

2

The problem is not related to lists, and longtable doesn't make things "unbreakable". The source of the problem is a penalty inserted by longtable which forces a page break. One can avoid it by setting this penalty to a smaller value. But I don't know if this will have bad side effects, imho David Carlisle and Thomas Sturm will have to look into it. ...

2

as i said in a comment, don't do it. if you are submitting this document to a well-edited math journal, it will be reversed. however, if you must, this should work: \documentclass{article} \usepackage{amsmath} \begin{document} some text \vfill So that abutting triangles do not double-paint pixels, a bias of 1 is subtracted from edges that are top'' or ...

2

You have an empty chapter heading, i.e. the line saying \chapter*{}, the empty page actually contains that. Delete that one and you should be fine.

4

You could use the standalone class along with minipages: \documentclass[border=1cm,multi=minipage]{standalone} \usepackage{lipsum} \begin{document} \begin{minipage}{10cm} \lipsum \end{minipage} \begin{minipage}{15cm} \lipsum \end{minipage} \end{document}

0

I copied the start of the texbook.tex file, where a couple of ^L are used. Then this code will break pages at those tokens: \documentclass{article} \usepackage{fancyvrb} \def^^L{\par} % not outer \def\aftereject{\aftergroup\afterejectI} \def\afterejectI{\aftergroup\pagebreak} \begin{document} This will have page breaks ...

0

So far, I have been succeeding working around these complex alignment possibilities and strict requirements by combining tcolorbox longtable threeparttable This answer (http://tex.stackexchange.com/a/170767/69378) got me going in getting a base formatting and easily adjustable size structure in place. Then when I coupled it with the table packages ...

2

Honestly, I would avoid the letter class. It's not necessary, for most applications. You can get by without it and replace it with a regular article document class. Here is one such implementation: \documentclass{article} \usepackage{geometry} \geometry{margin=1.5in} \setlength{\parindent}{0pt}% No paragraph indent \pagestyle{plain} \begin{document} ...

3

In your markdown source code add the \suppressfloats command before the offending floats (tables, figures), and compile with pandoc -f markdown+raw_tex. Tested on this kantlip.md input ![Two plots placed side by side.](frog.jpg) \kant[2-3] \suppressfloats \begin{figure} \includegraphics[width=0.5\linewidth]{frog} ...

4

It seems that you need not the long tables breakable to the pages but your preprocessor uses this marking for all tables. In such case, you can define longtable as normal table. It means, don't load longtable package, i.e don't use \usepackage{longtable} but define this: \newenvironment{longtable}[2][c] {\table[h] \bgroup ...

0

1.In between longtable \end{table} and \lipsum command use \pagebreak command 2.Use minipage environment as shown below: \begin{minipage}[t]{0.5 \linewidth} \begin{tabular*}{0.9 \textwidth}{@{\extracolsep{\fill}}rr} and \begin{minipage}[b]{0.5 \linewidth} \begin{tabular*}{0.9 \textwidth}{@{\extracolsep{\fill}}lrrr} and end with \end{tabular*} in ...

1

I am responding to the "suitable alternative" part of this question. I have had the same question, and the best answer I've been able to find so far is the answer to the following question: Tikz - How to overlay Decorations over longtable Granted, this is far from ideal, but it is a possible alternative.

2

One way would be to use the needspace package Code: \documentclass[11pt]{article} \usepackage{lipsum} \usepackage{amsthm} \usepackage{needspace} \newenvironment{MyProof}{% \needspace{3\baselineskip}% \begin{proof}% }{% \end{proof}% }% \begin{document} \lipsum[1-4] \begin{MyProof} \lipsum[1] \end{MyProof} \end{document}

2

Since your appendix is just a list of tables, you don't really want them to float at all, simplest way to change them to being non-floats is to use H from the float package, (which is often over-used but works OK here) \documentclass{article} \usepackage{tikz} \usepackage{blindtext} \usepackage{float} \newcommand{\testtable}{\begin{table}[H] \tiny ...

1

Well, you can use the refcount package, that allows to check for equality of page numbers for different labels, as in this code: \documentclass[a4paper]{article} \usepackage{refcount} \usepackage{lipsum} \makeatletter \newcommand\Ifpagerefequal[4]{% \edef\IPRE@a{\getpagerefnumber{#1}}% store the pageref for #1 \edef\IPRE@b{\getpagerefnumber{#2}}% ...

Top 50 recent answers are included