Colin J. Williams wrote:
Here is a small extract which illustrates the problem. Without the Table of Contents, I can produce a dvi View. With the TOC, View -> DVI gives the seven errors.
You simply put the TOC in the description environment. Change it to "Standard" and eveything will work.
regards Uwe
#LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \begin_preamble \usepackage{array} \usepackage{longtable} \usepackage{shortvrb} \usepackage{tabularx} \usepackage{longtable} \setlength{\extrarowheight}{2pt} \usepackage{graphicx} \usepackage{color} \usepackage{multirow} \usepackage{ifthen} \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage[DIV8]{typearea} %% generator Docutils: http://docutils.sourceforge.net/ \newlength{\admonitionwidth} \setlength{\admonitionwidth}{0.9\textwidth} \newlength{\docinfowidth} \setlength{\docinfowidth}{0.9\textwidth} \newlength{\locallinewidth} \newcommand{\optionlistlabel}[1]{\bf #1 \hfill} \newenvironment{optionlist}[1] {\begin{list}{} {\setlength{\labelwidth}{#1} \setlength{\rightmargin}{1cm} \setlength{\leftmargin}{\rightmargin} \addtolength{\leftmargin}{\labelwidth} \addtolength{\leftmargin}{\labelsep} \renewcommand{\makelabel}{\optionlistlabel}} }{\end{list}} % begin: floats for footnotes tweaking. \setlength{\floatsep}{0.5em} \setlength{\textfloatsep}{\fill} \addtolength{\textfloatsep}{3em} \renewcommand{\textfraction}{0.5} \renewcommand{\topfraction}{0.5} \renewcommand{\bottomfraction}{0.5} \setcounter{totalnumber}{50} \setcounter{topnumber}{50} \setcounter{bottomnumber}{50} % end floats for footnotes % some commands, that could be overwritten in the style file. \newcommand{\rubric}[1]{\subsection*{~\hfill {\it #1} \hfill ~}} \newcommand{\titlereference}[1]{\textsl{#1}} % end of "some commands" \title{Part2} \author{} \date{} \hypersetup{ pdftitle={Part2} } \raggedbottom
\usepackage{babel}
\end_preamble
\language english
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default
\layout Title
An Introduction to PyMatrix
\layout Author
Colin J.
Williams
\layout Description
The purpose of this note is to outline matrix algebra and then to show how
PyMatrix provides similar functionality, either interactively, through
the Python interpreter or as a batch oriented program.
\layout Standard
\begin_inset LatexCommand \tableofcontents{}
\end_inset
\layout Section
Introduction
\layout Paragraph
\series medium
PyMatrix is a Python package, in other words, it is a collection of programs
using the Python programming language
\begin_inset Foot
collapsed false
\layout Standard
\begin_inset LatexCommand \htmlurl[Python]{http://www.python.org}
\end_inset
\end_inset
.
PyMatrix uses other Python packages, including numarray
\begin_inset Foot
collapsed false
\layout Standard
\begin_inset LatexCommand
\htmlurl[numarray]{http://www.stsci.edu/resources/software_hardware/numarray}
\end_inset
\end_inset
.
\layout Paragraph
Those who are familiar with matrix algebra should skip section 2.
\layout Section
The Basics of Matrix Algebra
\layout Subsection
Matrix
\layout Paragraph
\series medium
A
\series default
\series medium
\emph on
matrix
\series default
\emph default
\series medium
is a rectangular array of numbers.
Wikipedia
\begin_inset Foot
collapsed false
\layout Standard
\begin_inset LatexCommand
\htmlurl[Matrix]{http://en.wikipedia.org/wiki/Matrix_theory}
\end_inset
\end_inset
provides a good overview and is the source for some of the examples below.
The University of Melbourne has a whimsical introduction
\begin_inset Foot
collapsed false
\layout Standard
\begin_inset LatexCommand
\htmlurl[Matrix]{http://www.tutor.ms.unimelb.edu.au/matrix}
\end_inset
\end_inset
.
\layout Paragraph
\series medium
The horizontal lines in a matrix are called rows and the vertical lines
are called columns.
A matrix with m rows and n columns is called an m-by-n matrix (or m
\begin_inset Formula $�$
\end_inset
n matrix).
m and n are called its dimensions.
For example B is a 4-by-3 matrix:\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
\SpecialChar ~
B\SpecialChar ~
=\SpecialChar ~
\begin_inset Formula $\left[\begin{array}{ccc}
1 & 2 & 3\\
1 & 2 & 7\\
4 & 9 & 2\\
4 & 1 & 5\end{array}\right]$
\end_inset
\layout Paragraph
\series medium
The entry in B that lies in the
\series default
\series medium
\emph on
i
\emph default
th row and the
\series default
\series medium
\emph on
j
\emph default
th column is called the
\series default
\series medium
\emph on
i,j
\series default
\emph default
\series medium
entry of B.
This is written as B[
\emph on
i, j
\emph default
] or, more commonly as
\begin_inset Formula $b_{ij}$
\end_inset
, for any values i in the range 1..4 and of j in the range 1..3.
In the example above B[2,3]=7.
\layout Subsection
Vector
\layout Paragraph
A
\series medium
\emph on
vector
\series default
\emph default
\series medium
is a simple list of numbers
\series default
.
\layout Comment
A section on installation is needed.
\the_end
