2

This question already has an answer here:

Here is my code:

\documentclass[letterpaper,10pt,fleqn]{article}

\setlength{\mathindent}{1cm}    
\usepackage{geometry}
\geometry{textheight=9in, textwidth=6.5in}
\usepackage{amssymb}                                         
\usepackage{amsmath}                                         

\numberwithin{equation}{section}

\parindent = 0.0in
\parskip = 0.2in

\begin{document}

\section*{New Section}
\hrule

Text    

\begin{align}
 \phi =& \int_S \mathrm{d}a\\     
 =& \int_S f(u, v) |\mathbf{T}_u \times \mathbf{T}_v| \mathrm{d}u\mathrm{d}v
\end{align}

\end{document}

I don't want the number to be in front of "New Section", so I am using the asterisk \section*{New Section} but I do want the equations to be numbered as (1.1) and (1.2) etc. However, I have found that using the asterisk sets the equation numbers to (0.1) and (0.2) and I have yet to find a way around this.

marked as duplicate by David Carlisle, Werner, mafp, barbara beeton, Mensch Oct 9 '13 at 22:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 5
    How will the reader know that you are in section 1, etc. without section numbers? – Joseph Wright Oct 9 '13 at 21:15
  • Maybe this tex.stackexchange answer is what you are looking for, although it doesn't automatically number the equations. Another option may be this answer. – ph0t0nix Oct 9 '13 at 21:16
  • No section number? The equations can't be numbered according to a number that doesn't exist. Leave out the \numberwithin instruction which doesn't make sense. – egreg Oct 9 '13 at 21:29
3

Add

\newcommand{\mysection}[1]{\addtocounter{section}{1}\section*{#1}}

before your first section. Then use

\mysection{New Section}

This code works:

\documentclass[letterpaper,10pt,fleqn]{article}
\setlength{\mathindent}{1cm}
\usepackage{geometry}
\geometry{textheight=9in, textwidth=6.5in}
\usepackage{amssymb}                                         
\usepackage{amsmath}                                         

\numberwithin{equation}{section}

\parindent = 0.0in
\parskip = 0.2in

\newcommand{\mysection}[1]{\addtocounter{section}{1}\section*{#1}}

\begin{document}
\mysection{New Section}
\hrule
Text

\begin{align}
 \phi =& \int_S \mathrm{d}a\\     
 =& \int_S f(u, v) |\mathbf{T}_u \times \mathbf{T}_v| \mathrm{d}u\mathrm{d}v
\end{align}

\end{document}

Not the answer you're looking for? Browse other questions tagged or ask your own question.