I want to put text above and below a symbol (\cup) just like I would for a summation. caret and underscore doesn't work. Anyone know a way to do this?
Thanks,
Scott
Math & Science ⇒ text above and below like summation
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: text above and below like summation
Use \bigcup. Unless it is a $$...$$$ formula you also have to use \displaystyle{...}.
Re: text above and below like summation
Worked perfect. Thank you!
text above and below like summation
Hi,
Please refer to the amsmath documentation for details (section 5 Operator Names, pages 17 and 18).
As drowsy suggested, using \bigcup allows the placement of subscripts and superscripts; however, using the starred form of the \DeclareMathOperator command (provided by the amsmath package), you can get subscripts and superscripts working with a command that emulates \cup, as the following example suggests:stargoo wrote:I want to put text above and below a symbol (\cup) just like I would for a summation. caret and underscore doesn't work. Anyone know a way to do this?...
Code: Select all
\documentclass{report}
\usepackage{amsmath}
\DeclareMathOperator*{\mycup}{\cup}
\begin{document}
text text $\mycup_{i=1}^{n-2}$ text text text
text text $\mycup\limits_{i=1}^{n-2}$ text text text
\[ \mycup_{i=1}^{n-2} \]
\end{document}
The $$...$$ construct is obsolete and shouldn't be used anymore (see reasons in l2tabu); in its stead it is preferable to use \[...\].drowsy wrote:...Unless it is a $$...$$$ formula you also have to use \displaystyle{...}.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: text above and below like summation
I like the DeclareMathOperator. Very nice. I hadn't seen l2tabu. I'd say that it's an essential read for any newbie or advanced user. I've been using doublespace and the old version of caption for the last year (still rather newbie-ish in all this) and never realized they were obsolete.
text above and below like summation
I know... sigh... I just wanted to say it fast.The $$...$$ construct is obsolete and shouldn't be used anymore
Kind of boring to type begin{equation} and \[\] looks ugly and confusing.
text above and below like summation
Precision is preferable to rapidness. And, what could be more confusing than $$...$$?. At least \[...\] gives you the idea of opening and closing an environment.drowsy wrote:I know... sigh... I just wanted to say it fast.The $$...$$ construct is obsolete and shouldn't be used anymore
Kind of boring to type begin{equation} and \[\] looks ugly and confusing.
1,1,2,3,5,8,13,21,34,55,89,144,233,...