如何:按编号引用列表中的编号元素
Howto: Reference numbered elements of a list by their number
我想做这样的事情:
These are the problems:
1. Too much concrete
2. Too few plants
...
This was also stated in Problem 1 and Problem 2.
"Problem 1" 和 "Problem 2" 应该是上面列表的链接。
输出
语法
这些是问题:
. [[prob1, Problem {counter:prob}]] Too much concrete
. [[prob2, Problem {counter:prob}]] Too few plants
This was also stated in <<prob1>> and <<prob2>>.
说明
prob1
和 prob2
是问题的 ID。您可以自由选择它们。例如。 prob_concrete
和 prob_plants
。这样他们会更容易使用。
{counter:prob}
是对名为 prob
的计数器进行计数的语法。您可以自由选择反称。 (See "Counters" of the documentation)
Problem {counter:prob}
:这是定义引用在使用时如何显示的部分(见上图)。
我想做这样的事情:
These are the problems:
1. Too much concrete
2. Too few plants
...
This was also stated in Problem 1 and Problem 2.
"Problem 1" 和 "Problem 2" 应该是上面列表的链接。
输出
语法
这些是问题:
. [[prob1, Problem {counter:prob}]] Too much concrete
. [[prob2, Problem {counter:prob}]] Too few plants
This was also stated in <<prob1>> and <<prob2>>.
说明
prob1
和prob2
是问题的 ID。您可以自由选择它们。例如。prob_concrete
和prob_plants
。这样他们会更容易使用。{counter:prob}
是对名为prob
的计数器进行计数的语法。您可以自由选择反称。 (See "Counters" of the documentation)Problem {counter:prob}
:这是定义引用在使用时如何显示的部分(见上图)。