Code: Select all
\documentclass{article}
% Available from CTAN
\usepackage{paralist}
\usepackage{hyperref}
\usepackage{nameref}
% I copied this from
% http://tex.stackexchange.com/questions/1230/reference-name-of-description-list-item-in-latex%
\makeatletter
\let\orgdescriptionlabel\descriptionlabel
\renewcommand*{\descriptionlabel}[1]{%
\let\orglabel\label
\let\label\@gobble
\phantomsection
\edef\@currentlabel{#1}%
%\edef\@currentlabelname{#1}%
\let\label\orglabel
\orgdescriptionlabel{#1}%
}
\makeatother
% Here is an example of what I can do right now
\begin{document}
% Ideally, I'd like this to be generated from the detail list
\section{List of Actions}
\begin{compactdesc}
\item \ref{itm:login}
\item \ref{itm:logout}
\item \ref{itm:update}
\end{compactdesc}
\section{Definitions}
\begin{compactdesc}
\item [Log in\label{itm:login}] The user logs into the database.
\item [Log out\label{itm:logout}] The user logs out of the database.
\item [Update records\label{itm:update}] A user changes information in a record. Requires \ref{itm:login}.
\end{compactdesc}
% I'd also like to drop the red boxes
The item `\ref{itm:login}' is listed on page~\pageref{itm:login} in section~\nameref{itm:login}.
\end{document}
Does anyone have a good idea about how to get the short list from the detail list? Do I need to use something like makeindex? And is there an easy way to get rid of those boxes? I looked for a parameter for nameref that would allow me to turn these off, but I didn't see anything obvious.
I would like this to work nicely with the paralist package, but I am willing to use something besides hyperref. I'm not sure if I'm taking the right approach.
This is by far the most complicated thing I've tried to do in LaTeX, but I would like to use it as an opportunity to learn some new things, so even suggesting which tool to use would be extremely helpful. Thank you.
**EDIT: Okay, I guess this should have occurred to me sooner, but I got rid of the boxes by turning the color links on and setting the link color to black.
Code: Select all
\usepackage[colorlinks, linkcolor=black]{hyperref}