combining references to several targets
Hi, say that I have four tables with lables tab:A ... tab:D. Now, I would like to say something like \in{Tables}[tab:A,tab:B,tab:C,tab:D] and the output should be "Tables 2, 7-9". How can this be done? Greetings, -- Eckhart
Eckhart Guthöhrlein wrote:
Hi,
say that I have four tables with lables tab:A ... tab:D. Now, I would like to say something like \in{Tables}[tab:A,tab:B,tab:C,tab:D] and the output should be "Tables 2, 7-9".
\in{Tables}[tab:A], \in[tab:B]--\in[tab:D] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Sun, 08 May 2005 at 22:47:32+0200, Hans Hagen wrote:
Eckhart Guthöhrlein wrote:
Hi,
say that I have four tables with lables tab:A ... tab:D. Now, I would like to say something like \in{Tables}[tab:A,tab:B,tab:C,tab:D] and the output should be "Tables 2, 7-9".
\in{Tables}[tab:A], \in[tab:B]--\in[tab:D]
Of course, this solution works, but it can easily break. So there is no automatic sorting and combining? If I don't know that table B--D have continuous numbers, or if this changes in the course of writing, those references will become wrong. -- Eckhart
Eckhart Guthöhrlein wrote:
On Sun, 08 May 2005 at 22:47:32+0200, Hans Hagen wrote:
Eckhart Guthöhrlein wrote:
Hi,
say that I have four tables with lables tab:A ... tab:D. Now, I would like to say something like \in{Tables}[tab:A,tab:B,tab:C,tab:D] and the output should be "Tables 2, 7-9".
\in{Tables}[tab:A], \in[tab:B]--\in[tab:D]
Of course, this solution works, but it can easily break. So there is no automatic sorting and combining? If I don't know that table B--D have continuous numbers, or if this changes in the course of writing, those references will become wrong.
implementing this is not complex, but the tricky part is in the prefixes (1.4, 2.5) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Mon, 09 May 2005 at 22:40:03+0200, Hans Hagen wrote:
say that I have four tables with lables tab:A ... tab:D. Now, I would like to say something like \in{Tables}[tab:A,tab:B,tab:C,tab:D] and the output should be "Tables 2, 7-9".
\in{Tables}[tab:A], \in[tab:B]--\in[tab:D]
Of course, this solution works, but it can easily break. So there is no automatic sorting and combining? If I don't know that table B--D have continuous numbers, or if this changes in the course of writing, those references will become wrong.
implementing this is not complex, but the tricky part is in the prefixes (1.4, 2.5)
Not complex... ;-) I admit that I didn't think of prefixes since I never used them so far. Anyway, I think this would be a very useful feature, even if some restrictions concerning prefixes had to be accepted. If you have the opportunity to implement it sometime - great. -- Eckhart
participants (2)
-
Eckhart Guthöhrlein
-
Hans Hagen