Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. %based on the following code
  2. %TeX by Topic unknown number of arguments p105
  3. %White(K1a,Q2b,3c,P4d)%
  4.  
  5. defendpiece{xxx}% a sentinel that ends the lists of inputs
  6. defdosomethingwithsplitofpiece#1{*#1}
  7.  
  8. defsep{,}
  9.  
  10. defxSplit#1,{deftemp{#1}% replace , by sep
  11. ifxtempendpiece% no more to process
  12. else%
  13. dosomethingwithsplitofpiece{#1}%
  14. expandafterxSplit%
  15. fi%
  16. }%
  17.  
  18. defSplit(#1){#1 transforms into xSplit#1,xxx,% >-- how this comma as a variable
  19. % that can be changed if necessary??
  20. }%
  21.  
  22. Split(4,5,6,7,9,10,11)
  23. % Split(4,5,6;7,9,10;11){1}
  24.  
  25. bye
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement