METAPOST: using loop variables in labels
问题 Dear stackoverflowers, recently, while playing around with the METAPOST enviroment, I encountered a problem. While drawing something using the loop 'for' macro I needed the value 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: for i=1 upto N: label(btex $here should be the value of i$, some_position); endfor; Any kind of help will be appreaciated :] 回答1: at