METAPOST: using loop variables in labels <p>Dear stackoverflowers,</p> <p>recently, while playing around with the METAPOST enviroment, I encountered a problem. While drawing something using the loop 'for' macro I needed the <strong>value</strong> of the loop variable to be correctly displayed inside a label, however I could not figure out how to do that and Mr.Google was unable to help me. Below is an example of the code I used:</p> <pre><code>for i=1 upto N: label(btex $here should be the value of i$, some_position); endfor; </code></pre> <p>Any kind of help will be appreaciated :]</p>