Questions tagged [samepage]

18 questions
4
votes
1 answer

Command and following content on the same page

I have a few commands which must be on the same page as following content. My LaTeX code is generated so I can't fix each problem manually. Imagine situation with this code \documentclass{article} \usepackage{lipsum} \newcommand{\heading}{ …
sssss
  • 177
1
vote
0 answers

How to keep description label together with first element of multiple nested environments?

I have this setup: \documentclass{article} \begin{document} \begin{description} \item [Heading]~ \begin{quote} \begin{enumerate} \item First \item Second \end{enumerate} \end{quote} \end{description} \end{document} I…
Daniel
  • 1,787
0
votes
1 answer

How to apply same page without changing distance between lines

I am trying to make sure the items in my list remain in the same page so I put them in a samepage environnment, but the line distance of the previous page automatically changed to fit the change that go with the samepage environment. Is there a way…