Text FormattingComplement in Latex

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
helllo
Posts: 44
Joined: Sat Jun 05, 2010 5:20 pm

Complement in Latex

Post by helllo »

Hi guys,

I'm trying to type the intersection of complement of sets (with a "c" on the top right) in latex but it doesn't work well with the following:

Code: Select all

$\cap_{i \in I} ^{c}G_i
any suggestions?

Thanks!
Last edited by helllo on Wed Jun 01, 2011 12:47 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Complement in Latex

Post by localghost »

What is not working well in your opinion? Be more precise in your problem description.


Thorsten
helllo
Posts: 44
Joined: Sat Jun 05, 2010 5:20 pm

Re: Complement in Latex

Post by helllo »

Hmm ... I'm not sure how to explain it but basically the "c" is closer to the intersection than to the G_i's if that makes sense.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Complement in Latex

Post by localghost »

So, if you want some kind of left superscript, have a look at the \prescript command from the mathtools package.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Complement in Latex

Post by Stefan Kottwitz »

Or use the leftidx package. Don't put the c as superscript to the intersection, it's logically wrong. You may consider to use an upright c instead of an italic c which looks like a variable.

Code: Select all

\documentclass{article}
\usepackage{leftidx}
\begin{document}
$\cap_{i \in I}\leftidx{^{\mathrm{c}}}{G}{_i}$
\end{document}
Stefan
LaTeX.org admin
helllo
Posts: 44
Joined: Sat Jun 05, 2010 5:20 pm

Re: Complement in Latex

Post by helllo »

Ok thanks!
Post Reply