Text Formattingpifont | Dingbat Symbol inside '\underbrace'

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

pifont | Dingbat Symbol inside '\underbrace'

Post by ghostanime2001 »

How can one put a \ding{192} symbol in underbrace{}_{} particularly in the second curly brace in the \underbrace command? Surrounding the symbol with $ $ does not seem to work :S
Last edited by ghostanime2001 on Tue Dec 06, 2011 4:37 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

pifont | Dingbat Symbol inside '\underbrace'

Post by localghost »

Code: Select all

\documentclass{article}
\usepackage{mathtools}   % loads »amsmath«
\usepackage{pifont}

\begin{document}
  \[
    \underbrace{x+y}_{\text{\ding{192}}}
  \]
\end{document}

Thorsten
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Re: pifont | Dingbat Symbol inside '\underbrace'

Post by ghostanime2001 »

Is there a way to customize the curly underbrace?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

pifont | Dingbat Symbol inside '\underbrace'

Post by localghost »

ghostanime2001 wrote:Is there a way to customize the curly underbrace?
Why do you always come bit by bit with your questions and don't ask them right out at once? In which way do you want to customize the brace?
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

Re: pifont | Dingbat Symbol inside '\underbrace'

Post by ghostanime2001 »

to control the vertical spacing between the top item and the bottom and how wide should the braces "embrace" the item it's bracing
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

pifont | Dingbat Symbol inside '\underbrace'

Post by localghost »

Code: Select all

\documentclass{article}
\usepackage{mathtools}   % loads »amsmath«
\usepackage{pifont}

\begin{document}
  \[
    \underbrace{\makebox[4em]{$x+y$}\strut}_{\strut\text{\ding{192}}}
  \]
\end{document}
Post Reply