GeneralRemove variable spacing after sections

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
davidstvz
Posts: 2
Joined: Fri Apr 20, 2012 4:47 pm

Remove variable spacing after sections

Post by davidstvz »

In my document there is a variable amount of white space at the end of section and subsections (and maybe other breaks) which makes the lower margin a fixed size for all full pages of text. For the last page in a chapter, if the lowest text is too far from the margin, a consistent spacing is used instead. I need this consistent spacing for every page. Switch between page 2 and 3 of the MWE and you can see the affect of the varying space on page 2 vs. consistent on page 3.

I am using the packages below, and here is a 3 page PDF showing the problem between page 2 and 3.

http://csc.lsu.edu/~davidst/00-main.pdf
http://csc.lsu.edu/~davidst/thesis.sty
http://csc.lsu.edu/~davidst/setspace.sty

The behavior seems to come from thesis.sty which I did not write myself. If I use \doublespacing just before the \begin statement (instead of the custom \doublesize after \pagenumbering) the behavior remains...

...unless I also remove the thesis.sty package. Of course, removing thesis.sty completely breaks my title page and adds an enormous amount of white space before chapter titles making the document look entirely different. It may introduce other problems I'm not aware of yet. It may be easier to just fix those issues separately, but I have a very short time to get this corrected or I cannot graduate! Any help is much appreciated, thanks!

Code: Select all

\documentclass[12pt]{report}

\usepackage{setspace, thesis}

\oddsidemargin=.0in       %add margin on left (for binding)
\textwidth=6.5 in            %6.5 leaves 1" each side
\topmargin=-0.25in         %appeared off without: -0.25in
\textheight=8.83in          % 8.83in
\footskip=40pt                 %40pt
\headheight=12pt            %12pt
\headsep=10pt                 %10pt



\begin{document}

\newpage
\pagenumbering{arabic}
\doublesize

\chapter{Introduction}
\section{Overview of Wireless Sensor Networks}

A wireless sensor network (WSN) is a collection of wireless nodes that work together to collect a variety of sensory data and report it to a base station by transmitting data, node to node, through the network.  The nodes that make up a WSN generally have limited computing resources and limited energy reserves.  This presents a particular set of programming challenges that must be met in order to make efficient use of WSN hardware.

\subsection{Test A}

WSN node design has been characterized by a few common traits.  Nodes have been made at smaller and smaller sizes as developing technology allows.  Ideally, nodes will eventually be inexpensive enough to be deployed for one application and forgotten when energy reserves are drained or the hardware otherwise fails.  This would allow a wider range of practical applications.  Hence WSN nodes must be designed for long life.  The life span is currently limited primarily by battery power, which is extended by efficient communication algorithms.  CPU efficiency is also important, but the wireless transmitter consumes 2 to 3 times as much energy per second as a typical WSN CPU.

\subsection{Test B}

With the primary goals of miniaturization, low cost, disposability and a low duty cycle, a WSN node is expected to have limited computational resources (CPU, memory, power consumption).  Indeed, the less demanding WSN algorithms are, the less costly it is to miniaturize WSN node hardware with existing technology.  Consequently, developing efficient algorithms for WSN has an immediate effect on the speed at which WSN nodes can be miniaturized.  While efficiency is prized, minimum standards of performance, functionality, and security must still be met by a WSN according to the demands of the application.

\subsection{Applications}

It is not hard to envision a wide variety of WSN applications based on the capabilities of existing and theoretical hardware \cite{he00, bu09}.  A WSN may be deployed to monitor and report stimuli in almost any environment imaginable if the hardware and software are advanced enough.

\subsection{Test A}

Generalized applications in environmental observation are numerous.  A WSN could be placed among important resources to monitor for fire, flood, weather phenomenon, a variety of pollutants, sound or anything relevant to the resources supported by the WSN.

\subsection{Test B}

WSNs may be used in scientific research to take regular data samples in difficult to reach areas and route the information for convenient access.  As an example, this has been done in California redwood trees with the purpose of determining climate conditions at a variety of elevations simultaneously.  Using a WSN, scientists were able to take the samples simultaneously and repeatedly with minimal intrusion into the eco system \cite{to05}.  In a similar example, scientists monitored the habitat of seabirds on a difficult to reach island off the coast of Maine \cite{ma02}.

\subsection{Test C}

Military and security applications include real-time surveillance and other intelligence.  A zone covered by a properly equipped WSN could track movement of an entity, determine attributes of the entity (size, speed, direction), monitor for chemical agents, or determine an optimal path through an area according to chosen parameters (maximum aerial cover).  Network security is clearly important in military applications.

\subsection{Test D}

If nodes become small enough, future applications may include analogous data collecting scenarios in biological systems (such as human or animal bodies).  Important data could be collected regarding nutrition and disease, new avenues of research may be opened and restorative functions might be performed \cite{sc02}.

\subsection{Test E}

The needs of the sensing application determine the design of WSN hardware and software.  Real-time monitoring may require high or variable bandwidth and low multi-hop latency while highly active, dense networks may require consistent performance under heavy traffic loads at the expense of optimal latency and bandwidth.  We note that the definition of high bandwidth and heavy traffic can be quite low compared to typical wired and wireless networking.

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

davidstvz
Posts: 2
Joined: Fri Apr 20, 2012 4:47 pm

Re: Remove variable spacing after sections

Post by davidstvz »

Ah.. sorry to ask a question and solve it myself. I was expecting this behavior to be governed by many complex lines in thesis.sty (which is a mess) and I thought it might take me a long time to figure it out myself... but it turns out a single line was causing the problem. \flushbottom (as opposed to \raggedbottom ).

So uh.. crisis averted. Maybe someone else will Google this some day and be relieved to find the problem has such a simple answer :)
Post Reply