I'd love to achieve a nice format for the following snippet:

$$Z_{eq}(j\omega) = R_0 + \left(R_1 + \frac{1}{j\omega C_1}\right) || \left(R_2 + \frac{1}{j\omega C_2}\right)$$

If printed as such, the || bars aren't tall enough to get a nice result.

I've also tried this solution but it doesn't work either.

$$Z_{eq}(j\omega) = R_0 + \left(R_1 + \frac{1}{j\omega C_1}\right)\parallel \left(R_2 + \frac{1}{j\omega C_2}\right)$$

Thank you!


As @DavidCarlisle has already noted in a comment, you may want to replace \parallel with \Vert. Importantly, the symbol produced by \Vert can be enlarged vertically with the help of the \big, \Big, \bigg, and \Bigg prefixes: \big\Vert, \Big\Vert, \bigg\Vert, and \Bigg\Vert. Finally, in case you need a bit of extra spacing around the double vertical lines, you could use the additional prefix element m: \bigm\Vert, \Bigm\Vert, \biggm\Vert, and \Biggm\Vert.

enter image description here

\usepackage{amsmath} % for 'split' environment
&= R_0 + \biggl(R_1 + \frac{1}{j\omega C_1}\biggr) 
   \bigg\Vert \biggl(R_2 + \frac{1}{j\omega C_2}\biggr)\\[1ex]
&= R_0 + \biggl(R_1 + \frac{1}{j\omega C_1}\biggr) 
   \biggm\Vert \biggl(R_2 + \frac{1}{j\omega C_2}\biggr)
|improve this answer|||||
  • 3
    I believe this is a case for equation and split rather than align. – egreg Feb 16 at 17:26
  • @egreg - Good idea. Done. – Mico Feb 16 at 18:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.