How can one create a symbol with a bar over it in brackets? As in:
Code: Select all
\bar{\nu}Code: Select all
\bar{\nu}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
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\begin{document}
\( \left[\bar{\nu}\right] \)
\end{document}Code: Select all
\overset{(-)}{\nu}Your original code has been a bit misleading. Try something with the help of the accents package.mjmottram wrote:I may have missed something, but your reply doesn't do what I asked about. […]
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{accents}
\newcommand*{\bbar}[1]{\accentset{[-]}{#1}}
\newcommand*{\pbar}[1]{\accentset{(-)}{#1}}
\begin{document}
\(
\bbar{\nu}
\)
\(
\pbar{\nu}
\)
\end{document}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