LaTeX forum ⇒ Math & ScienceArrow for multiple consecutive reactions

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Sonntag
Posts: 13
Joined: Sun May 24, 2015 3:37 pm

Arrow for multiple consecutive reactions

Postby Sonntag » Sun May 24, 2015 5:28 pm

Hi!

There's a possibility to get an arrow like on the attached graphic?

Sonntag
Attachments
arrow.png
arrow.png (491 Bytes) Viewed 3254 times

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun May 24, 2015 6:59 pm

TikZ; used by chemmacros, chemexec and mhchem; has an own arrow-library. It is likely that this kind of arrow is included. Unfortunately, the documentation is quite big and intimidating and always slowing down my machine to an almost standstill.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Sonntag
Posts: 13
Joined: Sun May 24, 2015 3:37 pm

Postby Sonntag » Sun May 24, 2015 7:26 pm

Thank you! Went through them but couldn't find any arrow like that yet.

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun May 24, 2015 9:18 pm

In your picture are two very simple arrows. Or are you referring to the unit of both as an arrow?

Can you give examples and references where this is used? If this is a sensible issue, i am sure Clemens will add this to chemformula.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Sonntag
Posts: 13
Joined: Sun May 24, 2015 3:37 pm

Postby Sonntag » Mon May 25, 2015 4:34 pm

I refer to the unit.

It is an abbreviation that you use if you skip reaction steps to get to the written products (outgoing from the written educts.)

User avatar
Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue May 26, 2015 10:04 pm

Please add some references where this is actually used. I am not a chemist, i have seen this here for the first time. In order to make a feature request, we need some backup.



Since my Tikz-foo is very very limited, i could only come up with the following.
  1. \listfiles
  2. \documentclass{article}
  3. \usepackage{chemmacros}
  4. \ExplSyntaxOn
  5. \NewChemArrow { =>>> }
  6. {
  7. \draw[chemarrow,-cf]
  8. ([yshift=.15ex]cf_arrow_start) -- ([yshift=.15ex]cf_arrow_end) ;
  9. \draw[chemarrow,-cf]
  10. ([yshift=-.35ex,xshift=.7em]cf_arrow_start) -- ([yshift=-.35ex,xshift=.7em]cf_arrow_end) ;
  11. }
  12. \ExplSyntaxOff
  13. \begin{document}
  14. \begin{reaction}
  15. a =>>> D
  16. \end{reaction}
  17. \end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Wed May 27, 2015 11:05 am

chemformula and its \NewChemArrow is the right choice here, IMHO. I am reluctant to add this arrow to chemformula but the command \NewChemArrow is provided for exactly such purposes.

There is no need for \ExplSyntaxOn in order to use it, by the way.

Personally I'd set the arrows a little bit closer to each other but that is probably a matter of personal taste…

  1. \documentclass{article}
  2. \usepackage{chemformula}
  3.  
  4. \NewChemArrow{>>}{
  5. \draw[chemarrow,-cf]
  6. ([yshift=.2ex]cf_arrow_start) -- ([yshift=.2ex]cf_arrow_end) ;
  7. \draw[chemarrow,-cf,]
  8. ([yshift=-.2ex,xshift=.3em]cf_arrow_start) -- ([yshift=-.2ex,xshift=.3em]cf_arrow_end) ;
  9. }
  10.  
  11. \begin{document}
  12.  
  13. \ch{A >> B >>[above][below] C}
  14.  
  15. \end{document}


chemarrow.png
chemarrow.png (14.09 KiB) Viewed 3214 times
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

Sonntag
Posts: 13
Joined: Sun May 24, 2015 3:37 pm

Postby Sonntag » Sun May 31, 2015 12:01 pm

Thank you!


Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 2 guests