Math & Science ⇒ text above and below like summation
text above and below like summation
Thanks,
Scott
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: text above and below like summation
Re: text above and below like summation
text above and below like summation
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{...}.
Re: text above and below like summation
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.