# Two stacked elements after a }

I'd like to express a set of vectors by {a_n} followed by a little column with two elements, the size of the set and n=1, as they usually are in some books. How can I create that column? I've tried with \stackrel{N}{n=1}, but it looks very big. Is there any other way?

-
Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Jubobs Jun 22 '14 at 19:28
I tried, but strangely I couldn't find any elpful image that could ilustrate my question. Anyway, I got my answer :-) – carllacan Jun 23 '14 at 20:27

Do you mean something like the following?

\documentclass{article}
\begin{document}
$\{a_n\}_{n=1}^{N}$
\end{document}


-
That's so simple I didn't even think it would work. Thank you :-) – carllacan Jun 23 '14 at 20:37

Or maybe this?

\documentclass{article}
\begin{document}
$a_n \big\vert^{N}_{n=1}$
\end{document}

-
I prefer your solution than mine :) – Mario S. E. Jun 22 '14 at 20:26

Without a MWE, perhaps what you want is something like this?:

\documentclass{article}
\begin{document}
$\left. \right|^{N}_{n=1}$
\end{document}


Or using the a_n vector:

\documentclass{article}

\begin{document}
$a_n\left.\right|^{N}_{n=1}$
\end{document}


-
Why not a_n\bigr|_{n=1}^{N}? That way you leave no unwanted space. – Manuel Jun 22 '14 at 20:32
@Manuel ahhhh, I didn't know that :). thanks for the tip! – Mario S. E. Jun 22 '14 at 20:33
@Manuel what is the difference between \bigr| and \vert? – Mario S. E. Jun 22 '14 at 20:34
@MarioS.E. - The symbols produced by \vert and | are identical. The former, though, is more "LaTeX-y" since it focuses more on the symbol's meaning than its concrete shape. – Mico Jun 22 '14 at 20:38
@MarioS.E. Well, I used | but you can use a_n\bigr\vert_{n=1}^{N} if you prefer. – Manuel Jun 22 '14 at 20:40