Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to manually label equation number ? For example I want to label this equation 3.1 instead of (1) which automatically pops up. Is it also possible in split environment as well or not ?

\begin{equation}
    \log \mu_{ijk}= \lambda + \lambda_i ^I + \lambda_j ^J+\lambda_k ^K+\lambda_{ij} ^{IJ}+\lambda_{ik} ^{IK}+\lambda_{jk} ^{JK}+\lambda_{ijk} ^{IJK} \label{eq:3.1}
    \end{equation}
share|improve this question
2  
try tag{\thesection.\theequation}; I think this has been asked before somewhere... –  cmhughes Mar 10 at 2:21

3 Answers 3

You can use \tag:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
    \log \mu_{ijk}= \lambda + \lambda_i ^I + \lambda_j ^J+\lambda_k ^K+\lambda_{ij} ^{IJ}+\lambda_{ik} ^{IK}+\lambda_{jk} ^{JK}+\lambda_{ijk} ^{IJK} \tag{3.1}\label{eq:3.1}
    \end{equation}
\end{document}

enter image description here

share|improve this answer
    
Excellent !! How to do the exact same thing in equation and split environment together ? –  user35571 Mar 10 at 2:36

I guess you are looking for a way to number your equations "within" sections, that is, add the section number before the equation number.

This can be done automatically if you add the line

\numberwithin{equation}{section}

in your preamble, without any manual intervention.

MWE:

\documentclass{article}
\usepackage{amsmath}
\numberwithin{equation}{section}

\begin{document}

\section{Test}
Some text

\section{Another Test}
Some text

\section{An equation}
\begin{equation}
\log \mu_{ijk}= \lambda + \lambda_i ^I + \lambda_j ^J+\lambda_k ^K+\lambda_{ij} ^{IJ}+\lambda_{ik} ^{IK}+\lambda_{jk} ^{JK}+\lambda_{ijk} ^{IJK} \label{eq:3.1}
\end{equation}

\end{document}

Output:

enter image description here

share|improve this answer
up vote 1 down vote accepted

THis worked for me Thank you

\documentclass{article}
    \usepackage{amsmath}
    \begin{document}
    \begin{equation}\tag{3.1}
    \begin{split}
        \log \mu_{ijk}= \lambda + \lambda_i ^I + \lambda_j ^J+\lambda_k ^K+\lambda_{ij} ^{IJ}+\lambda_{ik} ^{IK}+\lambda_{jk} ^{JK}+\lambda_{ijk} ^{IJK} \tag{3.1}\label{eq:3.1}

    \end{split}
        \end{equation}
    \end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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