Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have quite long verbatim, which I don't want to be split by table, which is present in source document before verbatim. I have my table wrapped by \begin{table}[h].

Any suggestions?

share|improve this question

2 Answers 2

Try changing the placement specifier: instead of simply [h] use [!hb] or [!ht]. If the problem persists, please add to your question a minimal working example illustrating the problem.

share|improve this answer

Do not put the verbatim code into a table environment. Use

\captionof{table}{ ... caption ...}
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.