[tex-eplain] definexref and hanging indents
Adam Fenn
acwfenn at hotmail.com
Wed Jan 2 11:58:53 CET 2008
I would like to define a cross reference that uses a lot of text in the value of the label and typeset as a hanging indent. My attempt below only works if another reference immediately follows, any space following the ref causes the hanging indent to fail. I would also like to remove the final s. Alternatively I could use refn instead of refs but this makes the entire label a hyperlink and I want only the marker to be active.
Any ideas?
Thanks in advance.
Adam Fenn.
\input eplain
\enablehyperlinks
\beginpackages
\usepackage{color}
\usepackage{graphicx}
\endpackages
\hsize = 9cm
\def\sectionword{\hangindent=1em\hangafter=1\smallskip\noindent A lot of text here which requires a hanging indent, also how do I get rid of that extra s at the end?}
\definexref{myref}{[marker]}{section}
\refs{myref}
\refs{myref}
\definexref{anotherref}{\hangindent=1em\hangafter=1\smallskip\noindent A lot of text here which requires a hanging indent but I only want the marker to act as a hyperlink [marker]}{}
\refn{anotherref}
\refn{anotherref}
\bye
_________________________________________________________________
Fancy some celeb spotting?
https://www.celebmashup.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/tex-eplain/attachments/20080102/90be0cc1/attachment.html
More information about the tex-eplain
mailing list