In latex pseudocode, if you have function calls inside another function with many arguments, lets say more than 4, would you still put the arguments everywhere, omit them or use some kind of abreviation that i am not aware of? The problem is that it may produce long lines and repeat argument passing from main function to subfunctions. In the worse case, if i have to stick with many arguments, can we add some sort of line wrap macro?



 \State $var1 \gets \Call{fun2}{x,y,z,a,b,c}$

 \State $var2 \gets \Call{fun3}{a,b,c,d,e,f}$


I think I can add myself one answer: increase the margins:


this solves the problem for now, (and slighty reduce argument names of course, but not always possible)

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.