Math & Science ⇒ Typesetting a Line over Text
Typesetting a Line over Text
- Attachments
-
- overbracket.png (20.81 KiB) Viewed 5467 times
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
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Typesetting a Line over Text
welcome to the board!
You could use the mathtools package and the command
\overbracket
. For example:Code: Select all
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\[
\overbracket{\text{Formula}}
\]
\end{document}
\overbracket[line thickness][bracket height]{formula}
Stefan
Typesetting a Line over Text
\redox
command:Code: Select all
\documentclass{article}
\usepackage{chemmacros}
\begin{document}
\ch{[\OX{a,Pt}(CH2)CH=CH\OX{b,C}(CH2)2(dppp)]}\redox(a,b){}
\end{document}
Typesetting a Line over Text
Code: Select all
\documentclass{article}
\usepackage{chemmacros}
\usepackage[version=3]{mhchem}
\usetikzlibrary{calc}
\begin{document}
\ce{[\OX{a,Pt}(CH2)CH=CH\OX{b,C}(CH2)2(dppp)]}\redox(a,b){}
\end{document}
Typesetting a Line over Text
\usetikzlibrary{calc}
? That would mean you must have an old (and obviously buggy) version of chemmacros.