My code:




The result compiling:

enter image description here


These commands are equivalent !?. Why are there differences?


for equidistant values it makes no difference. But \multido cannot work with something like 1, 1, 2, 3, 5, 8, ... and, of course, \multido uses some predefined macros:

\i   for integers
\n   for natural numbers
\r   for real

In your example it should be

  • In above question, \multido{\n=0.5+1}{6}, it has also equidistant values. So, can you explain more clearly?
    – user173875
    Dec 8 '18 at 10:55
  • see edited answer
    – user2478
    Dec 8 '18 at 11:05
  • for multido everything is declared in the documentation. For psforeach you can use any macro you like and which is not already defined.
    – user2478
    Dec 8 '18 at 11:27
  • please answer the above question!
    – user173875
    Dec 8 '18 at 11:29
  • @chishimotoji you can use for example \multido{\ri=0.5+1}{6}{\psline(0,\ri)(\ri,0)} or \multido{\ra=0.5+1}{6}{\psline(0,\ra)(\ra,0)}
    – user139826
    Dec 8 '18 at 12:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy