I would like to number equations in the following way:
Chapter 1
x^2 + y^2 = z^2 (1.1)
x^3 + y^3 \neq z^3 (1.2)
Section 1.1
a^2 + b^2 = c^2 (1.1.1)
\sqrt{-1} = - \sqrt{-1} (1.1.2)
etc.
Currently the best I can achieve is to have (1.0.1), (1.0.2), etc., before the first section in the chapter. Aesthetically I find the unnecessary 0's quite ugly. Is there a way to tidy it up?
MWE:
\documentclass{report}
\numberwithin{equation}{section}
\begin{document}
\chapter{First}
\begin{equation}
x^2 + y^2 = z^2
\end{equation}
\begin{equation}
x^3 + y^3 \neq z^3
\end{equation}
\section{Next}
\begin{equation}
a^2 + b^2 = c^2
\end{equation}
\begin{equation}
\sqrt{-1} = - \sqrt{-1}
\end{equation}
\end{document}

\renewcommand{\thechapter}{A.\arabic{chapter}}after\appendix. Does it fit your problem? - General: If you have a new question, please ask it by clicking the Ask Question button. Include a link to this question if it helps provide context. – Bobyandbob Feb 07 '18 at 15:32