<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6001.18203" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Bob and everyone</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>You've understood exactly what I'm looking for and
perhaps you've explained better. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I sure hope that someone out there knows how to
implement this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>- Christian</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=millstadtf@gmail.com href="mailto:millstadtf@gmail.com">Robert
Wilson</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=toms@ncifcrf.gov
href="mailto:toms@ncifcrf.gov">Tom Schneider</A> </DIV>
<DIV style="FONT: 10pt arial"><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: 10pt arial"><B>Sent:</B> Friday, March 13, 2009 9:42
PM</DIV>
<DIV style="FONT: 10pt arial"><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
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">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>
<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></BODY></HTML>