LyXHow to put text at the top/bottom of a bigcup

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
User avatar
anta40
Posts: 38
Joined: Thu Sep 11, 2008 2:36 pm

How to put text at the top/bottom of a bigcup

Post by anta40 »

This is an example:
Image

How to put text at the top/bottom of the bigcup visually in lyx?
I couldn't find such option.
Last edited by anta40 on Fri Jul 09, 2010 5:31 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

How to put text at the top/bottom of a bigcup

Post by meho_r »

1. Alt+M, M to open a math environment, then Ctrl+Shift+M to make it display math environment

2. Type the following (where <space> is a spacebar key press):

Code: Select all

D=\bigcup<space>_i=0<space>^b-1<space>{d_i<space>}
Attachments
example.lyx.zip
(640 Bytes) Downloaded 350 times
User avatar
anta40
Posts: 38
Joined: Thu Sep 11, 2008 2:36 pm

Re: How to put text at the top/bottom of a bigcup

Post by anta40 »

OK, I got it work.
But I'm still wondering, could it be done in inline math mode, and not display math mode?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

How to put text at the top/bottom of a bigcup

Post by frabjous »

In case it wasn't obvious, the stuff that goes above and below a "big operator" are treated as subscripts and superscripts in LaTeX. You can insert these just by inserting the "big operator" along with the normal LyX functions for superscripts and subscripts immediately afterwards.

Not just in LyX, but in LaTeX generally, subscripts and superscripts are written next to, not above/below big operators in inline math rather than display math. If you want to get the superscripts and subscripts above/below in inline math, you need to use the \displaystyle command. LyX has a button for that under "Styles". You then have to click inside the little box it creates and insert the big operator in there.

Here's a little animation showing how it works. Let's see if this works on the forum (scroll to the bottom to see what buttons I'm pressing):
lyx.gif
lyx.gif (178.58 KiB) Viewed 12369 times
Last edited by frabjous on Fri Jul 09, 2010 5:37 am, edited 1 time in total.
User avatar
anta40
Posts: 38
Joined: Thu Sep 11, 2008 2:36 pm

How to put text at the top/bottom of a bigcup

Post by anta40 »

Ah, I didn't know the \displaystyle command.
It works nicely, BTW.
Many thanks. :)
Post Reply