Back then, I requested a way to custom-label a displayed element, and then refer back to that element using a \ref that gives the custom label, as in:
(This kind of thing is useful in "analytic" philosophy.)Consider example (E):(E) clearly illustrates principle (P) ...(E) An example of what I was talking about.
Back then I was given this environment, which I understood very poorly but which has served me well in my preamble since then:
Code: Select all
\makeatletter
\newcommand{\displabel}[1]{(#1)\hfill}
\newenvironment{disp}
{\begin{list}{}%
{\renewcommand{\makelabel}{\displabel}%
\let\olditem=\item%
\renewcommand*{\item}[1][]{%<<add test for empty arg (ifmtarg.sty)
\protected@edef\@currentlabel{(##1)}%
\olditem[##1]}
\setlength{\leftmargin}{.5in}
\setlength{\rightmargin}{.5in}}}%
{\end{list}}
\makeatother
Note I do not want a Roman enumeration - I want to be able to label these mnemonically, instead; as 'D' for 'dromedary' and then 'L' for llama. (What? Aids to memory? Must not be a math paper.)Consider Definition (D):Clearly (D) is inadequate as a definition, as it applies to many a mother-in-law.Definition D: A creature is a dromedary just in case
- it has humps
- it is ill-tempered
- it spits.
I have pored over the web and The LaTeX Companion, and toyed with variations for hours, but come up short - and my paper is due all too soon. Any assistance - even references for places to go to understand this '\protected@edef\@currentlabel{(##1)}' business - would be appreciated.
Thanks!
Steve