Re: [NTG-context] Marking a textfragment for later reference
On 6 aug. 2012, Robert Blackstone
On 6 aug. 2012, Mon, 6 Aug 2012 14:16:09 +020 Wolfgang Schuster
wrote Am 06.08.2012 um 09:41 schrieb Robert Blackstone
: Thank you Marco. Another very useful tool for me. I realize now that many things with labels can be used as anchors for references, and I'm still a bit surprised that a delimited text with a label cannot be used that way.
Where has the delimited text in your example a label?
Wolfgang
I had not included a minimal example but I had run some trials. Since they did not work, and you gave me a good solution, I trashed them. I kept the pdf's though, in which I included the source. So I can reconstruct the examples. I'll try to make it again tomorrow morning. I would be interested to learn what sort of errors I committed. Kind regards, Robert Blackstone
Here follows my minimal example. I reasoned that the identifier [topica] might act as a label, or an anchor, or whatever the correct ConTeXt name is, for a reference. --------------------------------------------------------------------------- \definedelimitedtext[topica] \setupdelimitedtext[topica][left=,right=] %maybe superfluous? I do not need a layout different from the rest of the text. \starttext Some text. \starttopica Some text to explain a certain topic, called topica. \stoptopica Some more text about topica. (See discussion on \at{page}[topica]) \stoptext --------------------------------------------------------------------------- To avoid any misunderstanding: this is no longer a problem since I have been given excellent advice. But it intrigues me. Why can some identifiers, for example of figures, be used for internal references and others not? Best regards, Robert Blackstone
On Tue 07 Aug 2012, Robert Blackstone wrote:
Here follows my minimal example. I reasoned that the identifier [topica] might act as a label, or an anchor, or whatever the correct ConTeXt name is, for a reference. ---------------------------------------------------------------------------
\definedelimitedtext[topica] \setupdelimitedtext[topica][left=,right=] %maybe superfluous? I do not need a layout different from the rest of the text. \starttext
Some text.
\starttopica Some text to explain a certain topic, called topica. \stoptopica
Some more text about topica. (See discussion on \at{page}[topica])
\stoptext
--------------------------------------------------------------------------- To avoid any misunderstanding: this is no longer a problem since I have been given excellent advice. But it intrigues me. Why can some identifiers, for example of figures, be used for internal references and others not?
In this case, I'd say it's because you're defining a delimited text style which can be used in multiple places. Your document could have five hundred \starttopica...\stoptopica blocks on different pages. A figure identifier, on the other hand, is meant to be unique. Pont
Am 07.08.2012 um 09:42 schrieb Robert Blackstone
On 6 aug. 2012, Robert Blackstone
wrote On 6 aug. 2012, Mon, 6 Aug 2012 14:16:09 +020 Wolfgang Schuster
wrote Am 06.08.2012 um 09:41 schrieb Robert Blackstone
: Thank you Marco. Another very useful tool for me. I realize now that many things with labels can be used as anchors for references, and I'm still a bit surprised that a delimited text with a label cannot be used that way.
Where has the delimited text in your example a label?
Wolfgang
I had not included a minimal example but I had run some trials. Since they did not work, and you gave me a good solution, I trashed them. I kept the pdf's though, in which I included the source. So I can reconstruct the examples. I'll try to make it again tomorrow morning. I would be interested to learn what sort of errors I committed. Kind regards, Robert Blackstone
Here follows my minimal example. I reasoned that the identifier [topica] might act as a label, or an anchor, or whatever the correct ConTeXt name is, for a reference. ---------------------------------------------------------------------------
\definedelimitedtext[topica] \setupdelimitedtext[topica][left=,right=] %maybe superfluous? I do not need a layout different from the rest of the text.
Here you’re telling context to create the new delimitedtext environment \starttopica … \stoptopica. The first argument for both commands (\define and \setup) is the new of the environment which you want to create or change. Wolfgang
participants (3)
-
Pontus Lurcock
-
Robert Blackstone
-
Wolfgang Schuster