You are not logged in.
Pages: 1
i can not get numbering my equations by sections to work. i added this
\numberwithin{equation}{section}
to the Document->Settings-> Latex preamble. when i try to view the documents using dvi i get the following message
Undefined control sequence.
Latex Error: Missing \begin{document}
here is a copy of my /home/user_name_here/.lyx/templates/defaults.lyx
#LyX 1.5.2 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass article
\begin_preamble
\numberwithin{equation}{section}
\end_preamble
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family sfdefault
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\spacing single
\papersize a4paper
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author ""
\author ""
\end_header
\begin_body
\begin_layout Standard
\end_layout
\end_body
\end_document
any ideas?
EDIT: found the answer to my question i needed to change Document->Settings->Math options
from "Use AMS math package automatically" change that to "Use AMS math package"
Last edited by delacruz (2008-07-04 00:26:50)
Offline
Pages: 1