I have this frac
$\cfrac{\cfrac{a}{b}}{c}$
Now i want to make clip around the upper frac (for a and b). Like this:
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI have this frac
$\cfrac{\cfrac{a}{b}}{c}$
Now i want to make clip around the upper frac (for a and b). Like this:
You can either use \left(...\right)
to have brackets with a size automatically adjusted to the content, or use one of the macros \big
, \Big
, \bigg
, \Bigg
to manually choose the size of the brackets. Closest to your sketch comes, in my opinion, the use of \Big(...\Big)
:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\cfrac{\Big(\cfrac{a}{b}\Big)}{c}$
\end{document}
Edit: If you want to center this expression with respect to other math symbols (e.g. =
), you can use the \raisebox
macro to do that (see e.g. here). The easiest way is to try to adjust the raising by hand, for example:
$\raisebox{-5pt}{$\cfrac{\Big(\cfrac{a}{b}\Big)}{c}$}=0$
Note that you need to insert dollar signs again inside the second argument of \raisebox
. If you want to do that a lot of times for different expressions, you can define a macro that does the raising for you. I tried to do that in a general way - the result is a good approximation, but not perfect. Using a boxes dimension as described here and length calculus as described here, I raise it by the symbols depth (to get the full symbol on the baseline), then lower it by half the symbols totalheight (to have the baseline at the symbol's center), and finally add half the height of a =
(to have the =
centered on the symbol, not the baseline). The result looks like this:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\setbox100=\hbox{$=$}
\newcommand{\Raise}[1]{\mathord{\raisebox{\dimexpr0.5\depth-0.5\height+0.5\ht0\relax}{$\displaystyle#1$}}}
\begin{document}
$\Raise{\cfrac{\Big(\cfrac{a}{b}\Big)}{c}}=0$
\end{document}
\Bigl( ... \Bigr)
, not \Big( ... \Big)
.
– GuM
Jun 12 '17 at 18:35