2

I have this equation:

$$P^{-1}(C) = \{\vec{x} = (x_{1:n},x_{n+1}) \in \mathbf{R}^{n+1} \mid \frac{x_{1:n}}{x_{n+1}} \in C , x_{n+1} > 0\}$$

but the {} brackets and the | sizes aren't auto adjusted, I found a post which doesn't work, and even $\sfrac$ doesn't work for me.

0x90
  • 195

1 Answers1

5

The size of curly braces and the vertical bar is not automatically adjusted because you're not using \left and \right (and \middle, here). Try this and I think it will work as you want it (you should consider inserting some horizontal space, see @Mico's comment):

\[
P^{-1}(C) = \left\{
              \vec{x} = (x_{1:n},x_{n+1}) \in \mathbf{R}^{n+1}
            \middle|
              \frac{x_{1:n}}{x_{n+1}} \in C , x_{n+1} > 0
            \right\}
\]

result

I don't think that the packages you have installed are related to your problem. In any case, if you want to see the exact packages that your latex file uses, you have to look at the log file.

If you want to use \sfrac you will have to use the xfrac package. Add the following line to your preamble:

\usepackage{xfrac}
egreg
  • 1,121,712
nickie
  • 4,378