I have the following code
\documentclass{book}
\usepackage[fleqn]{amsmath}
\usepackage{amsmath,amssymb}
\usepackage{mathrsfs}
\usepackage{imakeidx}
\makeindex
\begin{document}
\chapter{Preface}
\chapter{Some set theory}
\end{document}
But now I'm getting Preface numbered as a chapter 1. How can I avoid this ?
To make things faster I have 2 not completely related questions :
How can I insert a TeX source A.tex without \begin{document} to a master file and how can I number
equations generally and consistently for all such inserted documents ?
I.e. if the Chapter number is 2, then the equation in it should be
`2.3.1
2.3.2` etc.
\begin{document}insert\frontmatter, and just before the first\chapter, insert\mainmatter. (2) Enter the preface as\chapter*. Off topic: you have loadedamsmathtwice; it''s a good thing the optionfleqnwas entered with the first load, otherwise it would be ignored. – barbara beeton May 20 '23 at 19:211.1. ZF1.2 ZF....1.3 for some finitely many elements1.4.for all other i. So I need that every equation in a chapter 1 is preceeded by1 .and that a second coordinate is always increased by 1 in that chapter 1. – user2925716 May 20 '23 at 20:38\chapter, you can incorporate it with\include{A}. If the file begins with something else, use\input{A}. To number equations withing sections, specify\counterwithin{equation}{section}. You should really look at a reference manual. There are some good xuggestions here: Which manuals are on your "TeX Reference" shelf? – barbara beeton May 20 '23 at 22:29\counterwithin{equation}{section}it doesn't seem to work properly. – user2925716 May 21 '23 at 09:25enumeratenoteqyation. – user2925716 May 21 '23 at 09:31include{A}and under and above the chapter. Nothing works. – user2925716 May 21 '23 at 09:38enumeratecan't be done withcounterwithin. Please ask a new question about that. – barbara beeton May 21 '23 at 14:42