I am writing a lengthy paper. So far I have been using \label{...} and \eqref{...}. This makes the counter of the referenced equations to be increased by one across all sections and subsections. But what I want, is that the counter of the references equations begins with the associated section and subsection number.
93636
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}
1875
I am trying to use the  package.  I have the following counters defined (hopefully this is the right way to do it!)  \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} \newtheorem{cor}[thm]{Corollary}   This works as I would like (i.e. Theorem 1.1, Corollary 1.2, Lemma 1.3, etc.)  My problem is \cref always returns Theorem 1.2, Theorem 1.3. I   Perhaps this is not right? (In my preamble)  \crefname{thm}{theorem}{theorem's} \crefname{lemma}{lemma}{lemma's}
17276
\documentclass[]{phstyle} \usepackage{latexsym,amsfonts,amssymb, undertilde} \usepackage[fleqn]{amsmath} \usepackage{makeidx}  %Preamble  \numberwithin{equation}{chapter} %\renewcommand{\theequation}{\thesection.\arabic{equation}}  \begin{document}  %\include{chapI}   these 2 lines are because the chapters are different tex files  %\include{chap1}  \renewcommand{\thechapter}{\Roman{chapter}}  %\setcounter{chapter}{0} %\renewcommand{\theequation}{\thechapter.\arabic{equation}}  \chapter{Introduction}  \section{Chap I Section1}  \begin{equation} this is equation I.1 \end{equation}  \begin{equation} this is equation I.2 \end{equation}  \section{Chap I Section2}  \begin{equation} this is equation I.3 \end{equation}  \chapter{Chapter 1}  \section{Chap 1 Section 1}  \begin{equation} this is equation 1.1.1 \end{equation}  \begin{equation} this is equation 1.1.2 \end{equation}  \end{document}     I have been typing Chapters 1-5 that contain sections and subsections and equations. The equations were numbered globally, i.e. if I had 3 equations in section 1 of Chap 1, they were numbered 1.1.1, 1.1.2, 1.1.3 and for Section 2, the equations were 1.2.4, 1.2.5, etc.  Recently I had to change Chap 1 and everything in it to Chapter I (roman number) and Chap 2 were renumbered to Chap 1, etc.  My problem is that LaTeX started numbering the equations in Chap I (the other chapters did not have this problem) according to the sections and not globally anymore. That is, the 3 equations in Chap I were I.1, I.2, I.3, and the equations in the second section of Chap I became I.1, I.2, etc instead of I.4, I.5, etc  I needed the prefix to be the chapter and not the sections. I don't understand why there is a change. I have never used \numberwithin in my book  Here are some of my codes  \documentclass[]{phstyle} \usepackage{latexsym,amsfonts,amssymb, undertilde} \usepackage[fleqn]{amsmath}   for the equation numbering in Chap I  \renewcommand{\thechapter}{\Roman{chapter}} \renewcommand{\theequation}{\thechapter.\arabic{equation}} **   Previously when Chap I was Chap 1, ** was  \renewcommand{\theequation}{\thesection.\arabic{equation}}   I have also tried the line below but it didn't work  \renewcommand{\theequation}{I.\arabic{equation}}   Thank you in advance
34059
How can I change the labelling of an equation? Instead of (1.1), (1.2) I want to have (Equation 1.1), (Equation 1.2), ...  Document class is scrbook.  I use the following related packages:  \usepackage{amsmath,amssymb,amsthm}   Example of an equation:  \begin{equation} \label{eqn:example} a+b=c \end{equation}
42997
I'm editing a book that includes about 25 papers written in LaTeX by different authors.  Since many of them use the same \label, to avoid collisions I redefined the \label command (and \ref and \pageref and \cite and \bibitem)  so that if the third paper has  \label{main_theorem} the aux file actually uses the tag "iii:main_theorem", and \ref{main_theorem} actually refers to the same tag.  I did a similar thing for \cite and \bibitem.  %*************** bib/cite hacks \let\TheReal@citex=\@citex \let\TheReal@bibitem=\@bibitem \let\TheReal@lbibitem=\@lbibitem \gdef\@lbibitem[#1]#2{\TheReal@lbibitem[{#1}]{#2\roman{chapter}}} \gdef\@bibitem#1{\TheReal@bibitem{#1\roman{chapter}}} \gdef\@citex[#1]#2{% \toks@={}\count@=0% \@for\@citec:=#2\do{% \advance\count@ 1 \ifnum\count@=1\edef\0{\the\toks@\expandafter\expandafter\noexpand\@citec\roman{chapter}}% \else\edef\0{\the\toks@,\expandafter\expandafter\noexpand\@citec\roman{chapter}} \fi% \toks@=\expandafter{\0}}% \TheReal@citex[#1]{\the\toks@}% } %************** label/ref/pageref hacks  %%%%%%%%%%%%% must be before ams pkgs \let\TheRealLabel=\label \let\TheRealRef=\ref \let\TheRealPageref=\pageref \gdef\label#1{\TheRealLabel{\roman{chapter}:#1}} \gdef\ref#1{\TheRealRef{\roman{chapter}:#1}} \gdef\pageref#1{\TheRealPageref{\roman{chapter}:#1}}   This all worked fine until I used hyperref, which seems to ignore the redefinition of \label, whether I load it before or after the above code.  Any suggestions?  It would be nice if the redefinition would work whether or not hyperref was loaded, so I don't want to just grab the defintion of \label out of the package and tweak it.  I'm also open to alternative methods.  Redefining \label and \ref just seemed the most straightforward (to me) solution.  Note that I also want to be able to refer to the inner labels from outside, as well.  For example, I might want to say "the main theorem of the third paper is  \ChapRef{iii}{main_theorem}  from within the introduction (a different chapter).
19544
If I am writing a LaTeX document on TexMaker and I want to number my equation but most probably I will be adding details later on and I do not want to fall into retyping it all over again. So if for example I have an equation and currently called equation (1.2) that I want to refer later as in the following sentence "As you can see in (1.2)" but then I had to edit my document in a way that it becomes (1.3) now instead of (1.2) what should I do in order to avoid editing large number of equations and my reference to them?
31592
Often in my papers I want to mention theorems in the introduction that are introduced in more detail and proved in a later section.  I'd like to include the statement of these theorems twice over, each time numbered as the theorem would naturally appear in its later section.  My current solution (using amsthm) is, e.g.  %(in the introduction) \newtheorem*{thm:associativity}{Theorem \ref{thm:associativity}} \begin{thm:associativity} Lorem ipsum ... \end{thm:associativity}  %(in a later section) \begin{thm} \label{thm:associativity} Lorem ipsum ... \end{thm}      Can anyone think of a cleaner solution?
16264
Possible Duplicate:          I have written my thesis in document class 'article' (don't ask me why). Now I want to number my equations by sections, i.e. in section 1 they should go 1.1, 1.2, ..., in section 2 they should go 2.1, 2.2, ...  I don't want to change the document class (e.g. to 'report') because then I would have to change all sections to chapters, subsections to sections and because I fear a lot of other unintended consequences.   How can solve this?  Thanks for any help!
124132
What's the proper way to reference a section with a counter in the title? The TOC generates correctly, but the cross references aren't so lucky.  MWE:  \documentclass[letterpaper, 12pt, twoside]{exam}  \usepackage{hyperref}  \newcounter{KSRLessonNumberCounter} \setcounter{KSRLessonNumberCounter}{1} \newcommand{\KSRSection}[2][\value{KSRLessonNumberCounter}]{         \setcounter{KSRLessonNumberCounter}{#1}         \section*{Lesson \arabic{KSRLessonNumberCounter}: #2}         \addcontentsline{toc}{section}{Lesson \arabic{KSRLessonNumberCounter}: {#2}}         \stepcounter{KSRLessonNumberCounter} } \newcommand{\KSRSubsection}[1]{         \subsection*{#1}         \addcontentsline{toc}{subsection}{#1} } \newcommand{\KSRLessonNumber}{ }  \begin{document}  \KSRSection{Sample}  This is the first lesson. The second lesson is \nameref{sec:blah}.  \KSRSection{Blah} \label{sec:blah}  This is the second section  \KSRSection{Lorem Ipsum}  Dollars are Set in \nameref{sec:blah}.  \end{document}
77277
I am trying to create a table with two columns of independently labelled equations (1-6). Unfortunately, everything I have found so far either has not worked or would number them as sub-equations (1a, 1b, etc).  My current attempt is:  \documentclass{article} \usepackage{graphicx, verbatim, tabularx} \usepackage{amsfonts} \usepackage{amsmath, amssymb}  \newcommand{\grad}{\vec{\nabla}}       \newcommand{\prtl}[2]{\frac{\partial #1}{\partial #2}}  \newcommand{\curl}{\grad\times} \begin{document}  \begin{tabular}{p{5cm}p{5cm}}  $\curl\vec{E} = -i\omega\mu\vec{H}$ &amp;   $\curl\vec{H} = i\omega\mu\vec{E}$ \\  \begin{equation}  \label{eq:curlHx}   \prtl{E_z}{y} +\gamma E_y= -i\omega\mu H_x  \end{equation}  &amp;  \begin{equation}  \label{eq:curlEx}    \prtl{H_z}{y} +\gamma H_y= i\omega\mu E_x  \end{equation}\\  \begin{equation}  \label{eq:curlHy}    -\prtl{E_z}{x} -\gamma E_x= -i\omega\mu H_y  \end{equation}  &amp;  \begin{equation}  \label{eq:curlEy}    -\prtl{H_z}{x} -\gamma H_x= -i\omega\mu E_y  \end{equation}  \\  \begin{equation}  \label{eq:curlHz}   \prtl{E_y}{x}-\prtl{E_x}{y} = -i\omega\mu H_z  \end{equation}  &amp;  \begin{equation}  \label{eq:curlEz}    \prtl{H_y}{x}-\prtl{H_x}{y} = -i\omega\mu E_z  \end{equation}  \end{tabular}  \end{document}   Is there an environment other than tabular that would make this work? Tabularx came close (got the numbering correct), but the formatting/spacing was horrific.
59394
I have a main document (manuscript) and a supplemental document.   I wonder if there is a way that I can "link" the two (make them recognize each other) so that section, equation, and figure references across documents are recognized?
40448
I have occasionally wanted to refer to a range of equations in my document.  So far, I've been using Equations~\eqref{firstEquation}~--~\eqref{lastEquation}, which produces something like "Equations (5) - (12)".  I recognize that this could make it harder to maintain the document if equations get shifted around, but I still prefer it to something like "Equations (5), (6), (7), (8), (9), (10), (11), and (12)".  Is there a standard or accepted way to refer to a range of equations like this?  Or should I just keep doing whatever looks best to me?
95804
I am writing a LaTeX document in which I number equations within sections.  Thus, in my preamble I have  \makeatletter     \@addtoreset {equation}{section}     \renewcommand{\theequation}{\thesection.\@arabic\c@equation} \makeatother   and this works the way I would like it to.  When I cross-reference an equation with "see Eq.\ (\ref{mylabel})" I get, for example, "see Eq. (3.4.15)" for the 15th equation in Sec. 3.4.    However, I would like to be able to cross-reference the equation from within the section where it resides and omit the section number.  In this case, I would like to obtain "see Eq. (15)"  I am using the hyperref package, so the information in the .aux file looks like  \newlabel{mylabel}{{3.4.15}{43}{GENERALIZED SPEEDS\relax }{equation.3.4.15}{}}   I gather that the \ref command looks in the .aux file for {mylabel}, finds {3.4.15}, and uses the string within the braces.  I am wondering if it is possible to define a new command, call it \myref, and have it discard "3.4."  So the result of "see Eq.\ (\myref{mylabel})" would be "see Eq. (15)"  The \hyperref command has the syntax  \hyperref[mylabel]{text}   so if I could figure out a way to use mylabel to go into the .aux file, bring back the string 3.4.15, and discard "\thesection.", I could use what remains as the argument {text} for \hyperref.    @Ricardo:  Thank you so very much for this solution.  It works very well without hyperref, but unfortunately I run into a problem with hyperref.  When I use  \renewcommand{\theequation}{\@arabic\c@equation}   to create abbreviated equation numbers in the home section, this leads to non-unique entries in the aux file, and I get the error   ! pdfTeX warning (ext4): destination with the same identifier (name{equation.1} ) has been already used, duplicate ignored   The problem is that each section has an equation (1).  I tried to fix the problem according to the advice on ``Subordinate counters'' in the hyperref README, but have been unsuccessful.  Here is a combination of your code and @Lockstep's example that should reproduce the problem:  \documentclass{book}  % The book class numbers equations within chapters. % We want to number these within sections.      \makeatletter     \@addtoreset {equation}{section}     \renewcommand{\theequation}{\@arabic\c@equation} \makeatother  \usepackage[colorlinks=true, linkcolor={blue}]{hyperref} \usepackage{smartref}  \addtoreflist{section}  \newcommand*{\srefaux}[1]{%   \issectionchanged{#1}% checks if section number has changed   \ifsectionchanged% if section is different   \sectionref{#1}.% put the section reference   \fi% else do nothing   \ref*{#1}%  &lt;-&lt;-&lt;--- we changed this to ref* }  \newcommand*\sref[1]{\hyperref[#1]{\hbox{\srefaux{#1}}}}  \begin{document}  \chapter{first} \section{bla}  If we include a first equation \begin{equation}\label{eq:xyz} x^2 + y^2 = z^2 \end{equation} in this section then hyperref will not be happy with another first equation in the  next section.  As shown in Eq.\ (\sref{eq:def}) \dots  \section{blubb}  As shown in Eq.\ (\sref{eq:abc}) \dots  \begin{equation}\label{eq:abc} a^2 + b^2 = c^2 \end{equation}  \begin{equation}\label{eq:def} d^2 + e^2 = f^2 \end{equation}  \section{foo}  As shown in Eq.\ (\sref{eq:abc}) \dots  \end{document}
28379
On  we expect answers to include a full list of references on which the answer was based at the bottom of the question. There are a few ways in which to format this list and we haven't decided on a preferred format yet.  One of the ideas is to wrap the list of references in &lt;sub&gt; tags as it .  This looks as follows:   Neher, A. (1991). Maslow's theory of motivation: A critique. Journal of Humanistic Psycholgoy, 31, 3.  Mahmoud A. Wahba, Lawrence G. Bridwell,  (1976),   In order to place the second reference on a new line, two spaces need to be added at the end of the first reference. Using (the more logical) return breaks markdown! Adding a first return only adds a space. Everything after a second return isn't subscript anymore.   Neher, A. (1991). Maslow's theory of motivation: A critique. Journal of Humanistic Psycholgoy, 31, 3.   Mahmoud A. Wahba, Lawrence G. Bridwell,  (1976),   Is this a bug?
5136
I'm aware of the cleveref package \cref which adds the correct reference name (see:  ). I have a few references which refer to the very next section and some find it odd to give the number in this case rather than just say "in the next section". Sometimes I've moved sections around and these references suddenly become quite broken. To have the best of both worlds, is there a way to automate this change?  E.g.: replace "this is discussed further in section 1.4" with "this is discussed further in the next section"
49339
I have quite a lot of labels and references (around 250 labels, 600 references to those) in my document. As I need to re-arrange parts of the document, I'd like to know which labels are referenced from which parts (and, transitively, which are referenced by the referenced label etc.). In other words, I'd like to have a graphical representation of my document which only shows the names/numbers of the environments (proofs, lemmas, etc.) and the corresponding labels and references.  Example:   Lemma 2 -> Proof A, Proof B, Lemma 1 Proof B -> Proof C Lemma 3 -> Lemma 2   How can I generate such a graph? I am only interested in the information conveyed by the graph, the graph itself will not be published and does not need to look nice.
91214
Say there is an equation:  \begin{equation} r^2 = x^2 + y^2 \text{.} \label{eq:circ} \end{equation}   I can change the autoref label by using:  \def\equationautorefname{Eq.}   Now, using   \autoref{eq:circ} something something \autoref{eq:circ}.   gives Eq. 1 something something Eq. 1.  However, I want the abbreviated versions to expand if they are at the beginning of a line. Essentially, I want this result here: Equation 1 something something Eq. 1. (all hyperlinked of-course). How do I make it happen?