<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2>Bob Wilson has explained what Christian Aastrup wants in equation notation, but I think it's<br>perverse: it will give the same reference to different equations in different chapters if they<br>happen to share the same section number. Margenau and Murphy's classic "The Mathematics of<br>Physics and Chemistry" uses mm-nnn throughout for chapter-eqn no (e.g., 2-113) without<br>introducing any difficulties at all for finding the equation (in 600 pages). Does Aastrup have so<br>many equations that they really need so much subdivision?<br><br>Best.<br>Arnold<br><br><br><div><br></div><font color="#990099">-----texhax-bounces@tug.org wrote: -----<br><br></font><blockquote style="border-left: 2px solid #000000; padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">To: "Robert Wilson" <millstadtf@gmail.com>, "Tom Schneider" <toms@ncifcrf.gov><br>From: "Christian H. Aastrup" <c@aastrup.org><br>Sent by: texhax-bounces@tug.org<br>Date: 03/13/2009 05:03PM<br>cc: texhax <texhax@tug.org><br>Subject: Re: [texhax] Help on cross-references<br><br>
<div><font size="2" face="Arial">Hi Bob and everyone
</font></div>
<div><font size="2" face="Arial"></font>
</div>
<div><font size="2" face="Arial">You've understood exactly what I'm looking for and
perhaps you've explained better.
</font></div>
<div><font size="2" face="Arial"></font>
</div>
<div><font size="2" face="Arial">I sure hope that someone out there knows how to
implement this.
</font></div>
<div><font size="2" face="Arial"></font>
</div>
<div><font size="2" face="Arial">- Christian
</font></div>
<blockquote style="border-left: 2px solid #000000; padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message -----
</div>
<div style="background: #e4e4e4 none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:
</b>
<a title="millstadtf@gmail.com" href="mailto:millstadtf@gmail.com">Robert
Wilson
</a>
</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:
</b>
<a title="toms@ncifcrf.gov" href="mailto:toms@ncifcrf.gov">Tom Schneider
</a>
</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Cc:
</b>
<a title="texhax@tug.org" href="mailto:texhax@tug.org">texhax
</a> ;
<a title="c@aastrup.org" href="mailto:c@aastrup.org">Christian H. Aastrup
</a>
</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:
</b> Friday, March 13, 2009 9:42
PM
</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:
</b> Re: [texhax] Help on
cross-references
</div>
<div><br></div>What Christian wants (I believe) is for Equations to be labeled
as (1), (2), ..., and within the same section in which they are first
displayed, they would be referred to as Equation (1), etc. When referring to
Equations in a different section, but in the same chapter, it would display
Equation (1.2) for the second equation in the first section. When referring to
equations in a different chapter, it would display Equation (1.2.3) for the
third equation in the second section of the first chapter.<br><br>Although I'm
out of my league here, I envision a solution wherein you redefine the
\theequation command, and use the ifthen package to exame the \section and
\chapter of the current location, compare with the location of the equation,
and display different results accordingly. Something
like:<br><br>\def\theequation {%<br>\ifthenelse{ \equal{\chapter}{\Eq_chapter}
}% If same chapter<br> {\ifthenelse{ \equal{\section}{\Eq_section}
}% and same section<br> {\equation}% print just
the number.<br> {\Eq_section.\equation}% If
different section, print section number as well<br> }% If
different chapter, print the chapter and section numbers<br>
{\Eq_chapter.\Eq_section.\equation} }<br><br>Hopefully I closed all my
brackets. The only thing that you're missing now is how to figure out in what
chapter/section an equation begins (I made up the commands \Eq_chapter and
\Eq_section). Hopefully someone else can post that
information.<br><br>Cheers,<br>Bob Wilson<br><br>
<div class="gmail_quote">On Fri, Mar 13, 2009 at 1:10 PM, Tom Schneider
<span dir="ltr"><
<a href="mailto:toms@ncifcrf.gov">toms@ncifcrf.gov
</a>>
</span>
wrote:<br>
<blockquote class="gmail_quote">Christian:<br>
<div class="im"><br>> Chapter 1<br>><br>> text text text text<br>>
text text text text<br>><br>> Section 1<br>><br>> An
equation<br>><br>> 2+2 < 5
(1)<br>><br>> A reference to the equation<br>>
now looks like: (1)<br>><br>> Section 2<br>><br>> text text text
text<br>> text text text text<br>><br>> A ref to the
equation<br>> is now (1.1)<br><br></div>This probably would give some
readers a bit of confusion since the<br>notation has changed. I would
design it to have the first reference<br>be (1.1) [section.equation] in all
cases.<br>
<div class="im"><br>> Chapter 2<br>><br>> text text text text<br>>
text text text text<br>><br>> A ref to the equation<br>> is now
(1.1.1)<br><br></div>At this point I'm completely confused. The third
time one<br>would cite it as (1.1.1.1) and the fourth time
(1.1.1.1.1)?<br><br>(I'll let others say how to do these things
technically.)<br><br>Tom<br><br> Dr. Thomas D.
Schneider<br> National Institutes of Health<br> National Cancer
Institute<br> Center for Cancer Research Nanobiology
Program<br> Molecular Information Theory Group<br> Frederick,
Maryland 21702-1201<br>
<a href="mailto:toms@ncifcrf.gov">toms@ncifcrf.gov
</a><br> permanent
email:
<a href="mailto:toms@alum.mit.edu">toms@alum.mit.edu
</a><br>
<a href="http://www.ccrnp.ncifcrf.gov/%7Etoms/" target="_blank">http://www.ccrnp.ncifcrf.gov/~toms/
</a><br>_______________________________________________<br>TeX
FAQ:
<a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq
</a><br>Mailing list archives:
<a href="http://tug.org/pipermail/texhax/" target="_blank">http://tug.org/pipermail/texhax/
</a><br>More links:
<a href="http://tug.org/begin.html" target="_blank">http://tug.org/begin.html
</a><br><br>Automated subscription
management:
<a href="http://tug.org/mailman/listinfo/texhax" target="_blank">http://tug.org/mailman/listinfo/texhax
</a><br>Human mailing
list managers:
<a href="mailto:postmaster@tug.org">postmaster@tug.org
</a><br></blockquote></div><br>
<p>
</p><hr>
<p></p>_______________________________________________<br>TeX FAQ:
http://www.tex.ac.uk/faq<br>Mailing list archives:
http://tug.org/pipermail/texhax/<br>More links:
http://tug.org/begin.html<br><br>Automated subscription management:
http://tug.org/mailman/listinfo/texhax<br>Human mailing list managers:
postmaster@tug.org
</blockquote><font size="3" face="Courier New,Courier,monospace">_______________________________________________<br>TeX FAQ: <a href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a><br>Mailing list archives: <a href="http://tug.org/pipermail/texhax/">http://tug.org/pipermail/texhax/</a><br>More links: <a href="http://tug.org/begin.html">http://tug.org/begin.html</a><br><br>Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax">http://tug.org/mailman/listinfo/texhax</a><br>Human mailing list managers: postmaster@tug.org</font>
</blockquote><br></FONT>