Generallisting sections only causes text to run off bottom of page

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
cslatex
Posts: 2
Joined: Mon Sep 27, 2010 10:01 pm

listing sections only causes text to run off bottom of page

Post by cslatex »

Hello,
A client just sent me a tex file that has a total of 28 \section, \subsection, and \subsubsection commands and their arguments, but no text within the sections themselves. This causes the typeset output to run off of the bottom of the page, without flowing to a new page. Is there a way to typeset only the \section commands with their titles and flow that text across multiple pages? I tried \tableofcontents, and it worked okay, except that the last page of the file was the sections that flowed off of the bottom of the page again.

I've posted the file below. My apologies for the long post, and thanks beforehand for your help.

Code: Select all

\documentclass[twoside,12pt]{article}
 \usepackage{graphicx}
 \usepackage{times}
\usepackage{geometry}
%\usepackage{ssub}
\setlength{\topmargin}{-.6in}
 \setlength{\textwidth}{6.5in}  
  \setlength{\textheight}{9in} 
   \renewcommand{\baselinestretch}{1.25}
 \setlength{\oddsidemargin}{.25in}
 \setlength{\evensidemargin}{0.25in}

%\makeatletter
%\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}{4.25ex plus
%-1ex minus -.2ex}{.25ex plus .2ex}{\normalsize\itshape}}
%\makeatother

\makeatletter
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}{4.25ex plus
-1ex minus -.2ex}{.25ex plus .2ex}{\normalsize\itshape}}
\makeatother
\newcommand{\sect}{\subsubsection*}

\setlength{\parskip}{12pt}
\edef\temp{\the\parindent}
%\raggedright
\setlength{\parindent}{\temp} 
\setlength{\hoffset}{-.27in}
%\setlength{\parindent}{1.5em}
\setlength{\parindent}{0em}

\pagestyle{empty}
%\markboth{Getting to {\it It}}{}
\begin{document}

\title {Parts Outline: Quanta, Symmetry, and Topology}
\date{}
\author{}

\maketitle
\thispagestyle{empty}

\frenchspacing
\bigskip
\maketitle

\section{Geometry and Topology in Elementary Quantum Mechanics}
\subsection{The Simplest Level Crossing}
\subsection{Adiabatic Evolution}
\subsection{Connection Matrix and Gauge Symmetry}
\subsection{Complex Crossings and Magnetic Monopoly}
\subsection{Time Reversal and Kramers Doublets}
\subsection{Crossing of Kramers Doublets}
\subsection{Topological Invariants in Gauge Structure}
\subsection{Group Theory of Level Crossing}
\subsection{Level Mergers at Enhanced Symmetry Points}
\subsection{Supplement: Clifford Algebra, Rotations, and Spinors}
\section{Charge Re-quantization}
\subsection{The Simplest Solitons}
\subsection{Zero Modes and Half-Integer Charge}
\subsection{Gradient Expansion of Current Response}
\subsection{Fractional Charge from Vacuum Polarization}
\subsection{Domain Walls}
\subsection{Re-quantization: Mixing and Locking}
\subsection{Schrieffer Counting Argument}
\subsection{Superconducting Variant: Majorana Modes}
\subsection{Superconducting Variant: Vacuum Polarization}
\subsection{Supplement: Peierls Instability and Coleman-Weinberg Theory} 
\section{Fractional Angular Momentum and Fractional Quantum Statistics}
\subsection{Particle on a Ring}
\subsection{}
\section{Nonabelian Anyons}
\section{Quantum Hall Effects}
\section{Topological Insulators}
\end{document}
Last edited by cslatex on Tue Sep 28, 2010 4:45 pm, edited 2 times in total.

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

listing sections only causes text to run off bottom of page

Post by frabjous »

Please, when posting source code to the forums, use the [ code ] and [ /code ] tags (no spaces) to set it inside a code box.

But this is a mess in more ways than one. Why are you trying to typeset this? This looks like a skeleton of a document that is yet to be written. Do you just want an outline for a table of contents with no actual content? What are the circumstances?

And the document has lots of other problems. There are obsolete packages being used like times (use txfonts or mathptmx instead); commands like \author and \date and \title are put in the wrong place (they belong in the preamble), the \maketitle command is duplicated mysteriously. The geometry package is loaded, but then, rather than making use of its features and options, lots of lengths are set manually that would be best handled in different ways. I rather think the whole thing should be scrapped, and you should begin from scratch.

I don't really understand the point of using \section, \subsection, etc., if these aren't actually used to create sections in the document. But I suppose one way around that would to redefine them to produce list items instead. A guess a minimally altered version of your document would be something like this (making use of the enumitem, etc.)

Code: Select all

\documentclass[twoside,12pt]{article}
\usepackage{graphicx}
\usepackage{mathptmx}
\usepackage{geometry}
%\usepackage{ssub}
\setlength{\topmargin}{-.6in}
\setlength{\textwidth}{6.5in}
\setlength{\textheight}{9in}
\renewcommand{\baselinestretch}{1.25}
\setlength{\oddsidemargin}{.25in}
\setlength{\evensidemargin}{0.25in}

%\makeatletter
%\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}{4.25ex plus
%-1ex minus -.2ex}{.25ex plus .2ex}{\normalsize\itshape}}
%\makeatother

\makeatletter
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}{4.25ex plus
-1ex minus -.2ex}{.25ex plus .2ex}{\normalsize\itshape}}
\makeatother

\newcommand{\sect}{\subsubsection*}

\setlength{\parskip}{12pt}
\edef\temp{\the\parindent}
%\raggedright
\setlength{\parindent}{\temp}
\setlength{\hoffset}{-.27in}
%\setlength{\parindent}{1.5em}
\setlength{\parindent}{0em}

\pagestyle{empty}
%\markboth{Getting to {\it It}}{Frank Wilczek}

\title{Parts Outline: Quanta, Symmetry, and Topology}
\date{}
\author{}
\usepackage{enumitem}
\renewcommand*{\section}[1]{\item #1 \begin{enumerate}\end{enumerate}}
\renewcommand*{\subsection}[1]{\begin{enumerate}[resume,nolistsep,label*=\arabic*] \item #1 \end{enumerate}}
\begin{document}


\frenchspacing


\maketitle

\thispagestyle{empty}
\begin{enumerate}[nolistsep]

\section{Geometry and Topology in Elementary Quantum Mechanics}

\subsection{The Simplest Level Crossing}

\subsection{Adiabatic Evolution}

\subsection{Connection Matrix and Gauge Symmetry}

\subsection{Complex Crossings and Magnetic Monopoly}

\subsection{Time Reversal and Kramers Doublets}

\subsection{Crossing of Kramers Doublets}

\subsection{Topological Invariants in Gauge Structure}

\subsection{Group Theory of Level Crossing}

\subsection{Level Mergers at Enhanced Symmetry Points}

\subsection{Supplement: Clifford Algebra, Rotations, and Spinors}

\section{Charge Re-quantization}

\subsection{The Simplest Solitons}

\subsection{Zero Modes and Half-Integer Charge}

\subsection{Gradient Expansion of Current Response}

\subsection{Fractional Charge from Vacuum Polarization}

\subsection{Domain Walls}

\subsection{Re-quantization: Mixing and Locking}

\subsection{Schrieffer Counting Argument}

\subsection{Superconducting Variant: Majorana Modes}

\subsection{Superconducting Variant: Vacuum Polarization}

\subsection{Supplement: Peierls Instability and Coleman-Weinberg Theory}

\section{Fractional Angular Momentum and Fractional Quantum Statistics}

\subsection{Particle on a Ring}

\subsection{}

\section{Nonabelian Anyons}

\section{Quantum Hall Effects}

\section{Topological Insulators}

\end{enumerate}

\end{document}
But I really don't understand what your goals are with this document.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

listing sections only causes text to run off bottom of page

Post by localghost »

The problem will settle as soon as you fill those (sub)sections with content. Page and paper dimensions are better set up with the geometry package.


Best regards and welcome to the board
Thorsten
cslatex
Posts: 2
Joined: Mon Sep 27, 2010 10:01 pm

Re: listing sections only causes text to run off bottom of p

Post by cslatex »

Thanks for the feedback frabjous and localghost. I've relayed your advice to my clients, and they have corrected the issues that you've pointed out. Now the file tex's correctly.

thanks again.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: listing sections only causes text to run off bottom of p

Post by localghost »

So, please be so kind and mark the topic accordingly as you have already been directed. Please keep that in mind for the future so that a reminder will not be necessary anymore. Furthermore please catch up on tagging the code according to the directions in my last reply.
Post Reply