[tex-eplain] definexref and hanging indents

Adam Fenn acwfenn at hotmail.com
Thu Jan 10 13:14:31 CET 2008


> (It starts working if you put \smallskip
> before \hang... _and_ a \par at the end of the section word.)

Yes, that makes the hanging indentation work but it also puts the marker onto a new line.
However the hanging indent works without a \par in your \myref macro so not to worry.
I would like to modify it so that \mymacro passes on its second argument to become the sectionword.
In my attempt below only the argument from the last macro is passed on. Is this possible?

Thanks in advance,
Adam.


\def\myref#1{%
  \csname \getproperty{\xrlabel{#1}}{class}word\endcsname
  \reftie
  \refn{#1}%
}
  
\def\mymacro#1#2{%
#2
\def\sectionword{#2}%
\definexref{#1}{[marker]}{section}
}

\mymacro
{firstref}
{My first ref}

\mymacro
{secondref}
{My second ref}

\myref{firstref}
\myref{secondref}

\bye


_________________________________________________________________
Free games, great prizes - get gaming at Gamesbox. 
http://www.searchgamesbox.com


More information about the tex-eplain mailing list