Math & Science ⇒ overbar in parentheses
overbar in parentheses
Does anyone know how?
Cheers,
Steve
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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.