Removing White-space between Enviroments
I'm currently working with different enviroments on a LaTeX file and for the life of me, I can't find out how to remove the self-generated white space between enviroments.
I'm defining my enviroments with the following:
\newenvironment{intro}{
\chapter*{Introduction}
\addcontentsline{toc}{chapter}{\protect\numberline{} Introduction}
}{}
I've tried adding negative vspace after the new enviroment, I've tried adding ignore spaces inside and outside the definition and nothing works. I'm at a loss on what to do.
Posted Apr 8, 2020, 1:58 PM UTC
28
See the reference. You want \topsep, which is v0 in the drawing.
But you are doing something very strange. Why are you following the starred version of chapter with an addition to the table of contents?
Thanks for the guidance.
I'm not entirely sure. If I'm being completely honest, I have no idea what I'm actually doing. I used a template provided by my university but my professor decided that he would prefer not to have the spacing that the template provides, so I've been tampering with the class file in order to "fix" the issue.
What is it that you want to fix?
Here's an example of how my output pdf is looking like. Basically, that white space between sections (that I defined as enviroments) is what I want to remove. I tried adding \vtopspace, but I realized that corresponds to the space between the title and the parragraph, which is fine.
Basically, I want that last parragraph of that enviroment and the title and first parragraph of the second enviroment to be in the same page.
So, you want the new chapter to not involve a page break?