LaTeX forum ⇒ Math & ScienceCustomize arrow

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
bstex
Posts: 27
Joined: Mon Oct 23, 2017 10:22 am

Customize arrow

Postby bstex » Sat Nov 04, 2017 5:51 pm

Hi,
I have already this:
  1. \documentclass[a4paper,11pt]{book}
  2.  
  3. \usepackage{tikz}
  4. \usetikzlibrary{arrows.meta}
  5. \usepackage[version=4]{mhchem}
  6.  
  7. \begin{document}
  8. \mhchemoptions{arrows=pgf{Straight Barb[left]}{0.12ex}}
  9. \ce{A + B <--> C + D}
  10. \end{document}


which is this:
Screen Shot 2017-11-04 at 17.50.44.png
Screen Shot 2017-11-04 at 17.50.44.png (12.85 KiB) Viewed 206 times


and I'd like to change the distance between two arrows and the total length of the arrows.
Is it possible?

User avatar
Stefan Kottwitz
Site Admin
Posts: 8460
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sat Nov 04, 2017 6:48 pm

First idea for changing the length: add white space as an option in square brackets to the arrow:

\ce{A + B <-->[\hspace{30pt}] C + D}

Stefan
Site admin

bstex
Posts: 27
Joined: Mon Oct 23, 2017 10:22 am

Postby bstex » Sun Nov 05, 2017 4:34 pm

Thank you for your reply, Stefan.
Well, I forgot to mention that I'd like the arrow to be shorter, not longer.


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 2 guests