2

How to set the equation no with quad space to equation content (centered) like below

Sample Text  Sample Text   Sample Text

             (1.1)  A + b = 20

Sample Text

Can anyone suggest how to get these output.

2

As a once-off, you can set it manually using the construction below with \numeq:

enter image description here

\documentclass{article}
\renewcommand{\theequation}{\thesection.\arabic{equation}}
\newcommand{\numeq}{\refstepcounter{equation}\textup{(\theequation)}\quad}
\begin{document}
\section{A section}
Sample text sample text sample text
\[
  \numeq A + b = 20 \label{eqn:stuff}
\]
Sample text and see~(\ref{eqn:stuff}).
\end{document}

For an automated way of adding these to equations, you could add

\makeatletter
\g@addto@macro{\[}{\numeq}
\makeatother

to your document preamble. This would make all formerly unnumbered equations now numbered. But without more detail, I'm not sure what scope we're talking about.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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