0

It is possible to have a pair of brackets adjust to their content by typing \left and \right before the respective brackets, whether they're round, square or curly, or even if they're special brackets like absolute value denoters, and so on.

The question: How to make virtually all brackets expand to the vertical size of their content automatically throughout an entire document, without having to type in \left and \right all the time? And how to occasionally escape this curse when I don't want this behaviour?

The reason I'm asking is because I use LaTeX for homework, which has proved out to work pretty good in terms of speed and effectiveness, as well as aesthetics. However, that expandable bracket thing is slowing me down quite a bit, and might eventually be the cause of me switching back to writing on good old paper.

GPWR
  • 267

1 Answers1

1

This a duplicate of this. Try using the nath package with \delimgrowth=1.

\documentclass{article}

\usepackage{amsmath, nath} \delimgrowth=1

\begin{document}

\begin{equation} [({1 + \frac{x}{y}})] \end{equation}

\end{document}

enter image description here

Jack
  • 71
  • 4
    $$..$$ is depreciated. https://tex.stackexchange.com/questions/503/why-is-preferable-to – Sebastiano Feb 07 '23 at 21:13
  • I've upvoted, because your code runs fine on its own. Unfortunately, I can't check this as the solution to my problem, because loading nath in any of my pre-existing documents results in tons of errors. Also have I noticed, by reading many other TeX.SE posts, that nath is a very stubborn and fragile package. Thank you for your clear and concise answer, though. I appreciate it. – GPWR Feb 07 '23 at 22:23
  • No problem. Maybe try using \qty from the physics package. – Jack Feb 07 '23 at 22:39