Wow !
The result appears to be very nice.
I'll play a bit with this solution, to see if it fits my needs (without any compatibility issue...)
Math & Science ⇒ Thinner Braces in Math Mode
Thinner Braces in Math Mode
I changed a bit some parameters. I didn't printed an example yet, to see how fine it is, but when I zoom the PDF document, it appears to be very nice :
A preview :
Now, is there a way to simplify the code above ? It's pretty messy to my eyes. 
Code: Select all
\documentclass[12pt,letterpaper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathtools}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}
\makeatletter
\def\underbrace#1{%
\@ifnextchar_{\tikz@@underbrace{#1}}{\tikz@@underbrace{#1}_{}}}
\def\tikz@@underbrace#1_#2{%
\tikz[baseline=(a.base)] {\node[inner sep=2] (a) {\(#1\)};
\draw[line cap=round,decorate,decoration={brace,amplitude=4pt}]
(a.south east) -- node[pos=0.5,below,inner sep=7pt] {\(\scriptstyle #2\)} (a.south west);}}
\def\overbrace#1{%
\@ifnextchar^{\tikz@@overbrace{#1}}{\tikz@@overbrace{#1}^{}}}
\def\tikz@@overbrace#1^#2{%
\tikz[baseline=(a.base)] {\node[inner sep=2] (a) {\(#1\)};
\draw[line cap=round,decorate,decoration={brace,amplitude=4pt}]
(a.north west) -- node[pos=0.5,above,inner sep=7pt] {\(\scriptstyle #2\)} (a.north east);}}
\makeatother
\begin{document}
Test with braces:
\begin{equation}
\underbrace{ABCD}_{\text{this is a test}} + DEFG = \overbrace{HIJK}^{\text{this is a test}}
\end{equation}
\end{document}

Thinner Braces in Math Mode
The code isn't messy at all! It is pretty straightforward, IMHO. There is not much you can do...Cham wrote:Now, is there a way to simplify the code above ? It's pretty messy to my eyes.
Regards
site moderator & package author