Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am working on a project where I need to built a number of enumerations. Each of the items of the enumerations has the form:

\item Name: description

Therefore I've written a small macro, I here give a minimal implementation, of course it has more arguments and functionality:

\newcommand{\givelist}[1]{\begin{enumeration}#1\end{enumeration}}

I thought it would be usefull to draw a small summary with a TikZ picture where all the Names would be nodes.

There are several problems: first of all a name can occur on several places in the report. In that case the name should only occur once in the TikZ picture.

Secondly it should be nice if I could reposition the nodes, draw line between them, ect.

Another problem is that only the text before the column (:) must be extracted.

Is there some way to do this?

Some tricks on how to solve one of these problems are welcome too.

share|improve this question
1  
The extraction could probably be avoided by \newcommand{\givelist}[2]{\begin{enumeration}#1 : #2\end{enumeration}} – Tom Bombadil Mar 17 '12 at 14:04
2  
I don't quite understand, it would be helpful if you composed a fully compilable MWE that illustrates the problems. That way those trying to help can focus on solution as opposed to setting up the problem test case, and will also ensure that the solution actually works for you. – Peter Grill Mar 17 '12 at 17:35

closed as too localized by percusse, lockstep, diabonas, egreg, Tom Bombadil Sep 28 '12 at 16:52

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.