[texhax] in-section references

Donald Arseneau asnd at triumf.ca
Mon Oct 1 22:53:56 CEST 2007


martin f krafft <madduck at madduck.net> writes:

> also sprach Donald Arseneau <asnd at triumf.ca> [2007.09.30.1438 +0100]:
> > > >   \edef\curpart\thepart%
> > > >   \edef\curchap\thechapter%
> > > >   \edef\cursec\thesection%
> > > >   \edef\cursubsec\thesubsection%
> > > >   \edef\cursubsubsec\thesubsubsection%
> > > >   \edef\curref#2%
> > 
> > These definitions are all wrong - missing braces.
> 
> Thank you for taking the time to respond!!!
> 
> So you mean \edef\curpart{\thepart}?

Either that or \let\curpart\thepart

The \let is probably safer.


> and now I get the exact opposite effect: now it's always
> \refother... I still must be doing something wrong...

Insert some \show commanda to see what you are comparing,
like \show\curpart \show\curref


-- 
Donald Arseneau                          asnd at triumf.ca


More information about the texhax mailing list