[texhax] Question

Jo Goodger jo at ing.iac.es
Thu Jul 3 15:32:53 CEST 2003

Hi,

I have compiled this file about 6 times and still I have no contents in
to search the .tex file for sectioning and captions in tables and figures,
and write a \contentsline command to the .toc (or .lof, .lot) file.  I
have a .toc file containing this information but it is not appearing in
the postscipt file .ps

Here is the header files and initial part of my report with sections
included:

\documentclass[11pt]{article}
\usepackage{graphicx,amssymb,lscape,setspace,xspace}
\usepackage{latexsym}
\setlength{\topmargin}{-0.5in}
\setlength{\textheight}{9.5in}
\setlength{\textwidth}{6.5in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\parindent}{0in}
\setlength{\parskip}{\medskipamount}
\def\myitem{\vspace{-2mm}\item}
\markright{\it{J.Goodger, A Study of H {\sc ii} regions}}
\newcounter{append}
\setcounter{append}{1}
%\setcounter{page}{1}
%\renewcommand{\thepage}{A\theappend -- \arabic{page}}
\renewcommand{\baselinestretch}{1.2}
\RequirePackage{amssymb}
\RequirePackage{setspace}
\RequirePackage{graphicx}
%\RequirePackage{lscape}     ;
\RequirePackage{amssymb}
\RequirePackage{longtable}
\RequirePackage{fancyhdr}
\RequirePackage{xspace}
\RequirePackage{multicol}
\RequirePackage{fancybox}
\RequirePackage{calc}
\RequirePackage{plain}          %  allows doublespacing control
\RequirePackage{setspace}       %  allows doublespacing control
\newcommand{\etal}[0]{{\em et~al}.\@\xspace}
\newcommand{\eg}[0]{{\em e.g}.\@\xspace}
\DeclareRobustCommand{\ion}[2]{\relax\ifmmode
\ifx\testbx\f at series
{\mathbf{#1\,\mathsc{#2}}}\else
{\mathrm{#1\,\mathsc{#2}}}\fi
\else\textup{#1\,{\mdseries\textsc{#2}}}%
\fi}
\begin{document}
\begin{sloppypar}
\flushbottom

\vskip 250pt
\title{\huge{\textbf{A Study of the Complete Populations of \\ H {\sc ii}
Regions in Late-Type Spiral Galaxies}}}
\vskip 150pt
\author{{\textbf{Joanna Goodger}}\\ \\  Physics Department \\ Queen Mary,
University of London  \\  London, E1 4NS }
\date{$12^{th}$ June, 2003}
\maketitle
\vskip 250pt
\begin{tabbing}
Project Supervisors:    \= Dr. A. Zurita, ING, La Palma, Spain\\
\> Prof. G. Thompson, QMUL, London, UK\\
\end{tabbing}
\thispagestyle{empty}   % This to stop page no. on first page.

\newpage
\pagenumbering{roman}
\setcounter{page}{1}

\doublespacing
\begin{abstract}
A study of H$\alpha$ equivalent widths, H$_{\alpha}$ and continuum
luminosities of complete populations of H {\sc ii} regions in a sample
of 4 spiral galaxies, NGC 157, NGC 3359, NGC 1313 and NGC 1530 to
investigate evidence for density bounding and their evolution.  An in
depth analysis of the method used to calculate the equivalent width is
performed to probe how realistic the results are.
\end{abstract}

\begin{figure}[h]
\resizebox{\hsize}{!}{\includegraphics{fig1_N11_LMC.ps}}
\caption{N11 is a compact H{\sc ii} region in the Large Magellanic Cloud,
LMC.  This image was taken with the Hubble Space Telescope, HST, as is in
true colour.}
\label{fig:N11}
\end{figure}

\newpage
\tableofcontents
\listoffigures
\listoftables

\newpage
\pagenumbering{arabic}
\setcounter{page}{1}

\vspace*{0.5 true cm}
\begin{center}
{\huge {\bf A Study of the Complete Populations of \\ H {\sc ii}
Regions in Late-Type Spiral Galaxies}}
\end{center}
\vspace*{0.5 true cm}

\section{Introduction}

....

I hope that this helps,

Thanks, Joanna

On Thu, 3 Jul 2003, Philip G. Ratcliffe wrote:

> > ... I need some advise on the \tableofcontents command in LaTeX.
> > According to the liturature that I have read, this command produces the
> > true however, I cannot get the information to print to the postscipt file.
> > The .toc file contains the correct information, but on the document, as
> > seen in ghostview on Unix, there is the Title 'Contents' but no table.
>
> What you say is odd, but you give so little detail that it is impossible to
> say where the problem is (sorry, I left my crystal ball at home today).
>
> How about including the opening lines of your LaTeX file, i.e., up to and
> including the first \section command, say?
>
> Actually, gazing into the glass marble I keep in my pocket for emergencies,
> I see that you either
>
> 1.  didn't run LaTeX twice, necessary to read in the .toc file, or
> 2.  put the \tableofcontents in the preamble and ignored the error messages,
>
> right?
>
> Cheers,  Phil
>
>

*************************************************************************
Joanna Louise Goodger

Student Support Astronomer                Private number: +34 922 420 745
Isaac Newton Group of Telescopes          Office number:  +34 922 425 438
Apartado de Correos, 368                  UK number:      +44 7764 934645
Santa Cruz da La Palma
Canary Islands                            Other E-mail: ap0028 at qmul.ac.uk
Spain                   o'''o                      jo_goodger at hotmail.com
(o o)
********************oOO**(_)**OOo****************************************