Take the 2-minute tour ×  I have been trying to write a macro
where I can specify the number of terms of a series and it would
then print:   It is important for my work that I can print any
number of terms. I have tried but loops are beyond my current
understanding of TeX.  Thanks in advance for the help.
share|improve this question Should the ... be also printed like
shown or all terms without the dots? –  Martin Scharrer Apr 1
'11 at 15:12 @Martin with ... please. Thanks for your answers.
–  mathspasha Apr 1 '11 at 18:29 add comment  7 Answers  up vote
9 down vote accepted  This is a slightly different solution to
that offered by Martin generalizing the problem. In order to
provide some flexibility, I would first define a "setup" macro
that you can call as:   The reason, why I would generalize it is
that you might not only want "n-series", but you may want to
define other type of series.  This setup command would create
automaticaly a command called \<symbol>series that will typeset
the required number of