Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ames!orion.arc.nasa.gov!ogawa From: ogawa@orion.arc.nasa.gov (Arthur Ogawa) Newsgroups: comp.text.tex Subject: Re: Misc. math constructs in LaTeX - questions Message-ID: <1991Mar6.003834.24258@news.arc.nasa.gov> Date: 6 Mar 91 00:38:34 GMT References: <1991Mar5.201318.9776@usenet.ins.cwru.edu> Sender: usenet@news.arc.nasa.gov (USENET Administration) Organization: NASA Ames Research Center, Moffett Field, CA Lines: 56 In article <1991Mar5.201318.9776@usenet.ins.cwru.edu> bxi@po.CWRU.Edu (Bruce Ikenaga) writes: | | A colleague of mine would like to know how to do the |following things in LaTeX. I use Plain TeX myself, and |don't know anything about LaTeX. I've given the plain TeX |source which does the things he wants to do. | |% ---------- | |\def\blank{\vskip 8pt} | |Here is an attempt at a display: |${\int \int \cdots \int} \atop | { {\scriptstyle x_1 + \ldots + x_n \le 1} \atop | {\scriptstyle x_1 \ge 0} } $ |This should have come out in the middle of a sentence. Did it? |\blank | |Next, we'll try to display it: |\blank |$$ |{\displaystyle \int \int \cdots \int} \atop | { {\scriptstyle x_1 + \ldots + x_n \le 1} \atop | {\scriptstyle x_1 \ge 0} } |$$ |\blank | |Here is something else: $\max_{ {1 \le i \le n} \atop |{1 \le j \le n} } f(i,j) = 4$. Did it work? |\blank | |Now we'll display it: |$$ |\max_{ {1 \le i \le n} \atop |{1 \le j \le n} } f(i,j) = 4 |$$ | | |What about binomial coefficients on top of sums? |$$\sum_{i=0}^{n \choose k} {{n + 2} \choose i}\ x^i y^{n-i}$$ |\blank Simply prepend: \documentstyle{book} \begin{document} and append: \end{document} No other changes need be made, so far as I can see. However, there are a number of optional changes you could make if you prefer LaTeX's markup: $...$ -> \(...\) and $$...$$ -> \[...\]; don't use \blank, etc. Cheers, Art