When I write something in LaTeX, I always try to create shortcuts for things I use a lot, so my code looks has semantically meaningful constructions like(adsbygoogle = window.adsbygoogle || []).push({}); \[\CountableUnion{U_n}{n}\]instead of complicated strings of symbols like\[\bigcup_{n=1}^{\infty}U_n\], for example. I have run into a difficulty in trying to create something to express sets with constraints such as the setB_Nin the image below:

[PLAIN]http://img401.imageshack.us/img401/6616/screenshot1rg.png [Broken]

The code I used for thatB_Nis

whereCode (Text):

Let us define the countable collection of sets $\CountableCollection{B_N}$ by

\[

\Defined

{B_N}

{\SetWithConstraint

{

\SetMember

{

\FiniteSum{a_i x^{n-i}}{i}{0}{n}

}

{

\Polynomials{\Integers}{x}

}

}

{

\FiniteSum{\AbsoluteValue{a_i}}{i}{0}{n} \neq 0

\quad\text{and}\quad n +

\FiniteSum{\AbsoluteValue{a_i}}{i}{0}{n} = N

}

}

\]

\Defined{a}{b}is translated toa := band\SetWithContraint{The_set}{The_constraint}is translated to{ The_set | The_constraint }. The command\SetWithConstraintis defined in my preamble as:

My main problem is sizing that center barCode (Text):

\newcommand{\SetWithConstraint}[2]{\left\{\,#1\ \left|\ #2\,\right.\right\}}

|between the set to draw elements from and the constraint the elements must satisfy. As I have it set up right now, its size is determined by the height of the expression in the constraint area (e.g., the expression on the rhs). However, this looks very bad on something like the setK'in the image below, where the expression on the lhs is taller:

[PLAIN]http://img199.imageshack.us/img199/445/screenshottc.png [Broken]

The relevant code there is

whereCode (Text):

Hence, we have now shown that $x$ is a limit point of $K$ if and only if

$x = 0$ or there is an integer $m > 0$ with $x = 1/m$. In other words,

\[

\LimitPoints{K} =

\Union

{\Singleton{0}}

{\SetWithConstraint{\frac{1}{m}}{\SetMember{m}{\PositiveIntegers}}}

\]

\LimitPoints{K}displaysK'. Does anyone know how to size this middle bar|in the\SetWithConstraintcommand I defined so that it will match the maximum of the height of the expression on the lhs and height of the expression on the rhs? Thanks!

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# LaTeX question about sizing

Loading...

Similar Threads - LaTeX question sizing | Date |
---|---|

Simple LaTeX question, line-spacing equations | Mar 16, 2015 |

Latex Question | Mar 2, 2015 |

Question About Latex | Feb 9, 2015 |

Concept and subject of latex and its usage and related questions on latex | Sep 25, 2014 |

Question about LaTeX | Jul 15, 2014 |

**Physics Forums - The Fusion of Science and Community**