Math & Science ⇒ overbar in parentheses
overbar in parentheses
Does anyone know how?
Cheers,
Steve
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: overbar in parentheses
Re: overbar in parentheses
Kinda like this:
(-)
p
overbar in parentheses
perhaps you are looking for something like the following?
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[ \overset{(-)}{p} \]
\end{document}
Re: overbar in parentheses
overbar in parentheses
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\usepackage{relsize}
\begin{document}
\[ \overset{\text{\relsize{-1}(}-\text{\relsize{-1})}}{p} \]
\end{document}
Re: overbar in parentheses
overbar in parentheses
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\usepackage{graphicx}
\newcommand\mysymb{\scalebox{.3}{(}\raisebox{-1.7pt}{$-$}\scalebox{.3}{)}}
\begin{document}
\[ \overset{\mysymb}{p} \]
\end{document}
overbar in parentheses
Code: Select all
\documentclass{article}
\usepackage{lmodern}
\usepackage{amsmath}
\begin{document}
\[ \overset{\textbf{\fontsize{3pt}{3pt}\selectfont(---)}}{p} \]
\end{document}
overbar in parentheses
I've managed to get approximately what I was after using a combination of \raisebox and \scalebox. it doesn't look the best (it doesn't render properly in the dvi file either), but it's most functional for basic things like pbars. More exotic particle names that involve superscripts don't look so good.
The command I'm using is this;
Code: Select all
\newcommand\brabar{\raisebox{-4.0pt}{\scalebox{.2}{
\textbf{(}}}\raisebox{-4.0pt}{{\_}}\raisebox{-4.0pt}{\scalebox{.2}{\textbf{)
}}}}
Code: Select all
$\overset{\brabar}{p}$

If i could get the superscript 0 to sit properly as though the bar wasn't there, it would be a bit nicer. Also the right bracket is a bit to close to the bar.