Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The \rightleftarrows symbol is too short horizontally for my liking. My search engine finds no helpful results for "latex longrightleftarrows". Is there some way to extend the symbol horizontally?

\documentclass[12pt,letterpaper]{article}
\usepackage[utopia]{mathdesign}
\usepackage{amsmath}
\usepackage{mhchem}
\usepackage{gensymb}
 ...
\begin{document}
\ce{\rightleftarrows}
\end{document}
share|improve this question
1  
Welcome to TeX.SX! A tip: You can use backticks ` to mark your inline code as I did in my edit. –  Adam Liter Apr 7 at 2:04
1  
This answer might be helpful: tex.stackexchange.com/a/91524/32888 –  Adam Liter Apr 7 at 2:08
    
Thanks, Adam. Harish's edit at that link is the output closest to what I'm looking for. –  LaTeX2enub1336 Apr 7 at 3:07

2 Answers 2

If you are happy with harpoons, you can use xleftrightharpoons from mathtools

\documentclass[12pt,letterpaper]{article}
\usepackage[utopia]{mathdesign}
\usepackage{mathtools}
\usepackage{mhchem}
\usepackage{gensymb}

\begin{document}

\ce{A\rightleftarrows B}

\ce{A\xleftrightharpoons{\rule{2cm}{0pt}} B}

\ce{A\xleftrightharpoons{\hphantom{\hspace*{1cm}}} B}


\end{document}

enter image description here

\documentclass[12pt,letterpaper]{article}
\usepackage[utopia]{mathdesign}
\usepackage{mathtools}
\usepackage{mhchem}
\usepackage{gensymb}

\begin{document}

\ce{A\rightleftarrows B}

\ce{A\xleftrightharpoons{\text{my reaction}} B}



\end{document}

enter image description here

Another variant:

\documentclass[12pt,letterpaper]{article}
\usepackage[utopia]{mathdesign}
\usepackage{mathtools}
\usepackage{mhchem}
\usepackage{gensymb}
\newcommand{\myrightleftarrows}[1]{\mathrel{\substack{\xrightarrow{#1} \\[-.9ex] \xleftarrow{#1}}}}

\begin{document}

\ce{A\rightleftarrows B}

\ce{A\myrightleftarrows{\rule{2cm}{0cm}} B}    %%% change 2cm as you wish
\end{document}

enter image description here

share|improve this answer
    
That's exactly what I had in mind. Thank you, Harish. –  LaTeX2enub1336 Apr 7 at 5:03

If you are willing to use chemfig you can easily control the arrow attributes:

\documentclass[12pt,letterpaper]{article}
\usepackage[utopia]{mathdesign}
\usepackage{amsmath}
\usepackage{mhchem}
\usepackage{gensymb}
 \usepackage{chemfig}

\begin{document}

\ce{A\rightleftarrows B}

\schemestart
A\arrow{<=>}B 
\schemestop

\setarrowdefault{0,0.7,red,thick}
\schemestart
A\arrow{<=>}B 
\schemestop

\end{document}

enter image description here

share|improve this answer
    
I was really hoping for two arrows. Nevertheless, formatting arrows through chemfig is a revelation to me, so thanks for that. I think I'll go with Harish's "hack" linked to by Adam above. –  LaTeX2enub1336 Apr 7 at 3:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.