Drawing Benzene resonance mechanism, and reaction mechanism + curly arrowsSide reaction arrows: in and...

Does the time required to copy a spell into a spellbook have to be consecutive, or is that just the cumulative time required?

Why is Thanos so tough at the beginning of "Avengers: Endgame"?

If 1. e4 c6 is considered as a sound defense for black, why is 1. c3 so rare?

If Melisandre foresaw another character closing blue eyes, why did she follow Stannis?

Who died in the Game of Thrones episode, "The Long Night"?

What is the most remote airport from the center of the city it supposedly serves?

Can fracking help reduce CO2?

Password expiration with Password manager

Unidentified items in bicycle tube repair kit

Historically, were women trained for obligatory wars? Or did they serve some other military function?

What is the word which sounds like "shtrass"?

What are the spoon bit of a spoon and fork bit of a fork called?

LT Spice Voltage Output

Can a cyclic Amine form an Amide?

How to get SEEK accessing converted ID via view

How do I tell my manager that his code review comment is wrong?

The barbers paradox first order logic formalization

How do you center multiple equations that have multiple steps?

Does hiding behind 5-ft-wide cover give full cover?

Selecting a secure PIN for building access

How to avoid grep command finding commented out strings in the source file?

Was Unix ever a single-user OS?

Public Salesforce Site and Security Review

What word means "to make something obsolete"?



Drawing Benzene resonance mechanism, and reaction mechanism + curly arrows


Side reaction arrows: in and outDistance between arrow and reaction productDrawing organic reaction?Vertical alignment of reaction mechanismWorking with chemfig (and Benzene)Increasing distance between the reversible reaction arrowsA problem with benzene ring and chemfigCharge positioning and reaction arrows in chemfigWhat's causing this problem with reaction arrows (chemfig)?Chemfig: reaction mechanism problem: arrow position













6















I am new to LaTeX and there are few things at which I am stuck.



I can draw benzene with alternate double bonds but I don't know how to draw curly arrows to show bond shifting and electrophile attack.



Benzene Bond Shifting



I would like to show reaction mechanism of benzene like this:



Nitration of benzene Part 1
(source: chemguide.co.uk)



Nitration of benzene Part 1
(source: chemguide.co.uk)



and



Detailed reaction mechanism
(source: ucla.edu)



EDIT



There is one another thing I need an expert opinion. I wanted to show covalent bonding in comparison with excited and grounded state of electron. This is the code that I have written. Is there any better way to show Cl sharing its electron than what I have done (adding lots of space in my opinion is not a best way)?



And is possible to draw a curly arrow from the second box to the third to show that an electron is given energy to go to a higher energy level?



Covalent sharing



documentclass [11pt] {book}
usepackage[utf8x]{inputenc}
usepackage{ucs}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{chemfig}
usepackage{tikz}
begin{document}
$_4$Be~: 1s$^2$~2s$^2$
\
\
Ground State:
begin{tabular}{|c|}
hline $upharpoonleft$$downharpoonright$ \
hline
end{tabular}
begin{tabular}{|c|}
hline $upharpoonleft$$downharpoonright$ \
hline
end{tabular}
begin{tabular}{|c|c|c|}
hline ~~~&~~~&~~~\
hline
end{tabular}
\
\
Excited State:begin{tabular}{|c|}
hline $upharpoonleft$$downharpoonright$ \
hline
end{tabular}
begin{tabular}{|c|}
hline $upharpoonleft$~ \
hline
end{tabular}
begin{tabular}{|c|c|c|}
hline $upharpoonleft$~~&~~~&~~~\
hline
end{tabular}

~~~~~~~~~~~~~~~~~~~~~~~~$uparrow$~~~~~$uparrow$

~~~~~~~~~~~~~~~~~~~~~~~Cl~~~~Cl

end{document}









share|improve this question





























    6















    I am new to LaTeX and there are few things at which I am stuck.



    I can draw benzene with alternate double bonds but I don't know how to draw curly arrows to show bond shifting and electrophile attack.



    Benzene Bond Shifting



    I would like to show reaction mechanism of benzene like this:



    Nitration of benzene Part 1
    (source: chemguide.co.uk)



    Nitration of benzene Part 1
    (source: chemguide.co.uk)



    and



    Detailed reaction mechanism
    (source: ucla.edu)



    EDIT



    There is one another thing I need an expert opinion. I wanted to show covalent bonding in comparison with excited and grounded state of electron. This is the code that I have written. Is there any better way to show Cl sharing its electron than what I have done (adding lots of space in my opinion is not a best way)?



    And is possible to draw a curly arrow from the second box to the third to show that an electron is given energy to go to a higher energy level?



    Covalent sharing



    documentclass [11pt] {book}
    usepackage[utf8x]{inputenc}
    usepackage{ucs}
    usepackage{amsmath}
    usepackage{amsfonts}
    usepackage{amssymb}
    usepackage{chemfig}
    usepackage{tikz}
    begin{document}
    $_4$Be~: 1s$^2$~2s$^2$
    \
    \
    Ground State:
    begin{tabular}{|c|}
    hline $upharpoonleft$$downharpoonright$ \
    hline
    end{tabular}
    begin{tabular}{|c|}
    hline $upharpoonleft$$downharpoonright$ \
    hline
    end{tabular}
    begin{tabular}{|c|c|c|}
    hline ~~~&~~~&~~~\
    hline
    end{tabular}
    \
    \
    Excited State:begin{tabular}{|c|}
    hline $upharpoonleft$$downharpoonright$ \
    hline
    end{tabular}
    begin{tabular}{|c|}
    hline $upharpoonleft$~ \
    hline
    end{tabular}
    begin{tabular}{|c|c|c|}
    hline $upharpoonleft$~~&~~~&~~~\
    hline
    end{tabular}

    ~~~~~~~~~~~~~~~~~~~~~~~~$uparrow$~~~~~$uparrow$

    ~~~~~~~~~~~~~~~~~~~~~~~Cl~~~~Cl

    end{document}









    share|improve this question



























      6












      6








      6


      1






      I am new to LaTeX and there are few things at which I am stuck.



      I can draw benzene with alternate double bonds but I don't know how to draw curly arrows to show bond shifting and electrophile attack.



      Benzene Bond Shifting



      I would like to show reaction mechanism of benzene like this:



      Nitration of benzene Part 1
      (source: chemguide.co.uk)



      Nitration of benzene Part 1
      (source: chemguide.co.uk)



      and



      Detailed reaction mechanism
      (source: ucla.edu)



      EDIT



      There is one another thing I need an expert opinion. I wanted to show covalent bonding in comparison with excited and grounded state of electron. This is the code that I have written. Is there any better way to show Cl sharing its electron than what I have done (adding lots of space in my opinion is not a best way)?



      And is possible to draw a curly arrow from the second box to the third to show that an electron is given energy to go to a higher energy level?



      Covalent sharing



      documentclass [11pt] {book}
      usepackage[utf8x]{inputenc}
      usepackage{ucs}
      usepackage{amsmath}
      usepackage{amsfonts}
      usepackage{amssymb}
      usepackage{chemfig}
      usepackage{tikz}
      begin{document}
      $_4$Be~: 1s$^2$~2s$^2$
      \
      \
      Ground State:
      begin{tabular}{|c|}
      hline $upharpoonleft$$downharpoonright$ \
      hline
      end{tabular}
      begin{tabular}{|c|}
      hline $upharpoonleft$$downharpoonright$ \
      hline
      end{tabular}
      begin{tabular}{|c|c|c|}
      hline ~~~&~~~&~~~\
      hline
      end{tabular}
      \
      \
      Excited State:begin{tabular}{|c|}
      hline $upharpoonleft$$downharpoonright$ \
      hline
      end{tabular}
      begin{tabular}{|c|}
      hline $upharpoonleft$~ \
      hline
      end{tabular}
      begin{tabular}{|c|c|c|}
      hline $upharpoonleft$~~&~~~&~~~\
      hline
      end{tabular}

      ~~~~~~~~~~~~~~~~~~~~~~~~$uparrow$~~~~~$uparrow$

      ~~~~~~~~~~~~~~~~~~~~~~~Cl~~~~Cl

      end{document}









      share|improve this question
















      I am new to LaTeX and there are few things at which I am stuck.



      I can draw benzene with alternate double bonds but I don't know how to draw curly arrows to show bond shifting and electrophile attack.



      Benzene Bond Shifting



      I would like to show reaction mechanism of benzene like this:



      Nitration of benzene Part 1
      (source: chemguide.co.uk)



      Nitration of benzene Part 1
      (source: chemguide.co.uk)



      and



      Detailed reaction mechanism
      (source: ucla.edu)



      EDIT



      There is one another thing I need an expert opinion. I wanted to show covalent bonding in comparison with excited and grounded state of electron. This is the code that I have written. Is there any better way to show Cl sharing its electron than what I have done (adding lots of space in my opinion is not a best way)?



      And is possible to draw a curly arrow from the second box to the third to show that an electron is given energy to go to a higher energy level?



      Covalent sharing



      documentclass [11pt] {book}
      usepackage[utf8x]{inputenc}
      usepackage{ucs}
      usepackage{amsmath}
      usepackage{amsfonts}
      usepackage{amssymb}
      usepackage{chemfig}
      usepackage{tikz}
      begin{document}
      $_4$Be~: 1s$^2$~2s$^2$
      \
      \
      Ground State:
      begin{tabular}{|c|}
      hline $upharpoonleft$$downharpoonright$ \
      hline
      end{tabular}
      begin{tabular}{|c|}
      hline $upharpoonleft$$downharpoonright$ \
      hline
      end{tabular}
      begin{tabular}{|c|c|c|}
      hline ~~~&~~~&~~~\
      hline
      end{tabular}
      \
      \
      Excited State:begin{tabular}{|c|}
      hline $upharpoonleft$$downharpoonright$ \
      hline
      end{tabular}
      begin{tabular}{|c|}
      hline $upharpoonleft$~ \
      hline
      end{tabular}
      begin{tabular}{|c|c|c|}
      hline $upharpoonleft$~~&~~~&~~~\
      hline
      end{tabular}

      ~~~~~~~~~~~~~~~~~~~~~~~~$uparrow$~~~~~$uparrow$

      ~~~~~~~~~~~~~~~~~~~~~~~Cl~~~~Cl

      end{document}






      diagrams arrows chemfig substitution






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 hours ago









      Glorfindel

      303139




      303139










      asked Oct 24 '13 at 14:31









      UzairUzair

      1406




      1406






















          1 Answer
          1






          active

          oldest

          votes


















          9














          chemfig allows to add explizit node names to either bonds or atoms in its formulae by using the @{<name>} syntax. These names can be used in a tikzpicture with the options remember picture, overlay to draw the curved arrows. chemfig provides the wrapper chemmove for this. So a combination of chemfig and TikZ can be used to draw the schemes. (BTW: the chemfig manual actually has quite a few examples of such schemes...)



          Here is something that might get you started:



          documentclass{article}
          usepackage{chemfig}
          tikzset{
          elmove/.style={->,shorten >=3pt, shorten <=3pt}
          }
          begin{document}

          schemestart
          chemfig{*8(-[@{sb1}]=[@{db1}]-[@{sb2}]=[@{db2}]-[@{sb3}]=[@{db3}]-[@{sb4}]=[@{db4}])}
          arrow{<->}
          chemfig{*8(=-=-=-=-)}
          schemestop
          chemmove[red,elmove]{
          draw (db1) .. controls +(90:5mm) and +(45:5mm) .. (sb1) ;
          draw (db2) .. controls +(180:5mm) and +(135:5mm) .. (sb2) ;
          draw (db3) .. controls +(270:5mm) and +(225:5mm) .. (sb3) ;
          draw (db4) .. controls +(0:5mm) and +(315:5mm) .. (sb4) ;
          % similar the others
          }

          bigskip

          schemestart
          chemfig{**6(----[@{b}]--)}
          arrow(benzene.base east--.base west){->[][][15pt]}
          chemfig{**[120,420,dashed]6(---(-[,-1,,,draw=none]{+})-(-[:120]H)(-[:60]NO_2)--)}
          arrow(@benzene.45--){0}[45,.2]
          chemfig{@{N}chemabove{N}{+}O_2}
          schemestop
          chemmove[blue,elmove]{
          draw[shorten <=-5pt] (b) .. controls +(30:5mm) and +(-90:1cm) .. (N) ;
          }

          end{document}


          enter image description here





          My package modiagram can be used to draw the electronic state diagram. IMHO It doesn't fit perfectly and a TikZ-only solution may be preferable. On the other hand the code is rather easy:



          documentclass[11pt]{book}
          usepackage[utf8]{inputenc}
          usepackage{chemformula,modiagram,chemfig}

          % necessary due to stupid bug in `modiagram':
          newcommand*makecolonother{catcode`:=12 }

          begin{document}
          ch{_4Be}: 1s$^2$~2s$^2$

          ground state:
          begin{MOdiagram}[style=square,AO-width=8pt]
          AO(0pt){s}{0;pair}
          AO(12pt){s}{0;pair}
          AO(24pt){s}{0;}
          AO(34pt){s}{0;}
          AO(44pt){s}{0;}
          draw[overlay,red,->]
          (AO2.north) .. controls +(0,.5) and +(0,.5) .. (AO3.north) ;
          end{MOdiagram}

          excited state:
          begin{MOdiagram}[style=square,AO-width=8pt]
          AO(0pt){s}{0;pair}
          AO(12pt){s}{0;up}
          AO(24pt){s}{0;up}
          AO(34pt){s}{0;}
          AO(44pt){s}{0;}
          makecolonother
          draw[<-,overlay]
          (AO2.south) -- ++(-100:3mm) node[below] {Cl} ;
          draw[<-,overlay]
          (AO3.south) -- ++(-80:3mm) node[below] {Cl} ;
          end{MOdiagram}

          end{document}


          enter image description here






          share|improve this answer


























          • Ok thanks for your answer. I have downloaded modiagram.sty, but I cant't seem to find the location for texmf home directory. I have tried to use kpsewhich -var-value=TEXMFHOME, but it yields no result. What should I do?

            – Uzair
            Oct 24 '13 at 19:25













          • @user38857 modiagram is on CTAN since 2011/09/25 (is and part of both TeX Live and MiKTeX since then). There should be no need to install it manually when you have an up to date TeX distribution.

            – clemens
            Oct 24 '13 at 19:29











          • I Can't compile it on texstudio

            – Uzair
            Oct 24 '13 at 21:34













          • I get: line 13: Undefined control sequence AO(0pt){s}{0;pair}line 14: Undefined control sequence AO(10pt){s}{0;pair}line 15: Undefined control sequence AO(20pt){s}{0;}line 16: Undefined control sequence AO(30pt){s}{0;}line 17: Undefined control sequence AO(40pt){s}{0;}line 24: Undefined control sequence AO(0pt){s}{0;pair}line 25: Undefined control sequence AO(10pt){s}{0;up}line 26: Undefined control sequence AO(20pt){s}{0;up}\

            – Uzair
            Oct 24 '13 at 21:37











          • line 27: Undefined control sequence AO(30pt){s}{0;}line 28: Undefined control sequence AO(40pt){s}{0;}: No file texstudio_gq5576.aux.\

            – Uzair
            Oct 24 '13 at 21:38












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f140452%2fdrawing-benzene-resonance-mechanism-and-reaction-mechanism-curly-arrows%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          9














          chemfig allows to add explizit node names to either bonds or atoms in its formulae by using the @{<name>} syntax. These names can be used in a tikzpicture with the options remember picture, overlay to draw the curved arrows. chemfig provides the wrapper chemmove for this. So a combination of chemfig and TikZ can be used to draw the schemes. (BTW: the chemfig manual actually has quite a few examples of such schemes...)



          Here is something that might get you started:



          documentclass{article}
          usepackage{chemfig}
          tikzset{
          elmove/.style={->,shorten >=3pt, shorten <=3pt}
          }
          begin{document}

          schemestart
          chemfig{*8(-[@{sb1}]=[@{db1}]-[@{sb2}]=[@{db2}]-[@{sb3}]=[@{db3}]-[@{sb4}]=[@{db4}])}
          arrow{<->}
          chemfig{*8(=-=-=-=-)}
          schemestop
          chemmove[red,elmove]{
          draw (db1) .. controls +(90:5mm) and +(45:5mm) .. (sb1) ;
          draw (db2) .. controls +(180:5mm) and +(135:5mm) .. (sb2) ;
          draw (db3) .. controls +(270:5mm) and +(225:5mm) .. (sb3) ;
          draw (db4) .. controls +(0:5mm) and +(315:5mm) .. (sb4) ;
          % similar the others
          }

          bigskip

          schemestart
          chemfig{**6(----[@{b}]--)}
          arrow(benzene.base east--.base west){->[][][15pt]}
          chemfig{**[120,420,dashed]6(---(-[,-1,,,draw=none]{+})-(-[:120]H)(-[:60]NO_2)--)}
          arrow(@benzene.45--){0}[45,.2]
          chemfig{@{N}chemabove{N}{+}O_2}
          schemestop
          chemmove[blue,elmove]{
          draw[shorten <=-5pt] (b) .. controls +(30:5mm) and +(-90:1cm) .. (N) ;
          }

          end{document}


          enter image description here





          My package modiagram can be used to draw the electronic state diagram. IMHO It doesn't fit perfectly and a TikZ-only solution may be preferable. On the other hand the code is rather easy:



          documentclass[11pt]{book}
          usepackage[utf8]{inputenc}
          usepackage{chemformula,modiagram,chemfig}

          % necessary due to stupid bug in `modiagram':
          newcommand*makecolonother{catcode`:=12 }

          begin{document}
          ch{_4Be}: 1s$^2$~2s$^2$

          ground state:
          begin{MOdiagram}[style=square,AO-width=8pt]
          AO(0pt){s}{0;pair}
          AO(12pt){s}{0;pair}
          AO(24pt){s}{0;}
          AO(34pt){s}{0;}
          AO(44pt){s}{0;}
          draw[overlay,red,->]
          (AO2.north) .. controls +(0,.5) and +(0,.5) .. (AO3.north) ;
          end{MOdiagram}

          excited state:
          begin{MOdiagram}[style=square,AO-width=8pt]
          AO(0pt){s}{0;pair}
          AO(12pt){s}{0;up}
          AO(24pt){s}{0;up}
          AO(34pt){s}{0;}
          AO(44pt){s}{0;}
          makecolonother
          draw[<-,overlay]
          (AO2.south) -- ++(-100:3mm) node[below] {Cl} ;
          draw[<-,overlay]
          (AO3.south) -- ++(-80:3mm) node[below] {Cl} ;
          end{MOdiagram}

          end{document}


          enter image description here






          share|improve this answer


























          • Ok thanks for your answer. I have downloaded modiagram.sty, but I cant't seem to find the location for texmf home directory. I have tried to use kpsewhich -var-value=TEXMFHOME, but it yields no result. What should I do?

            – Uzair
            Oct 24 '13 at 19:25













          • @user38857 modiagram is on CTAN since 2011/09/25 (is and part of both TeX Live and MiKTeX since then). There should be no need to install it manually when you have an up to date TeX distribution.

            – clemens
            Oct 24 '13 at 19:29











          • I Can't compile it on texstudio

            – Uzair
            Oct 24 '13 at 21:34













          • I get: line 13: Undefined control sequence AO(0pt){s}{0;pair}line 14: Undefined control sequence AO(10pt){s}{0;pair}line 15: Undefined control sequence AO(20pt){s}{0;}line 16: Undefined control sequence AO(30pt){s}{0;}line 17: Undefined control sequence AO(40pt){s}{0;}line 24: Undefined control sequence AO(0pt){s}{0;pair}line 25: Undefined control sequence AO(10pt){s}{0;up}line 26: Undefined control sequence AO(20pt){s}{0;up}\

            – Uzair
            Oct 24 '13 at 21:37











          • line 27: Undefined control sequence AO(30pt){s}{0;}line 28: Undefined control sequence AO(40pt){s}{0;}: No file texstudio_gq5576.aux.\

            – Uzair
            Oct 24 '13 at 21:38
















          9














          chemfig allows to add explizit node names to either bonds or atoms in its formulae by using the @{<name>} syntax. These names can be used in a tikzpicture with the options remember picture, overlay to draw the curved arrows. chemfig provides the wrapper chemmove for this. So a combination of chemfig and TikZ can be used to draw the schemes. (BTW: the chemfig manual actually has quite a few examples of such schemes...)



          Here is something that might get you started:



          documentclass{article}
          usepackage{chemfig}
          tikzset{
          elmove/.style={->,shorten >=3pt, shorten <=3pt}
          }
          begin{document}

          schemestart
          chemfig{*8(-[@{sb1}]=[@{db1}]-[@{sb2}]=[@{db2}]-[@{sb3}]=[@{db3}]-[@{sb4}]=[@{db4}])}
          arrow{<->}
          chemfig{*8(=-=-=-=-)}
          schemestop
          chemmove[red,elmove]{
          draw (db1) .. controls +(90:5mm) and +(45:5mm) .. (sb1) ;
          draw (db2) .. controls +(180:5mm) and +(135:5mm) .. (sb2) ;
          draw (db3) .. controls +(270:5mm) and +(225:5mm) .. (sb3) ;
          draw (db4) .. controls +(0:5mm) and +(315:5mm) .. (sb4) ;
          % similar the others
          }

          bigskip

          schemestart
          chemfig{**6(----[@{b}]--)}
          arrow(benzene.base east--.base west){->[][][15pt]}
          chemfig{**[120,420,dashed]6(---(-[,-1,,,draw=none]{+})-(-[:120]H)(-[:60]NO_2)--)}
          arrow(@benzene.45--){0}[45,.2]
          chemfig{@{N}chemabove{N}{+}O_2}
          schemestop
          chemmove[blue,elmove]{
          draw[shorten <=-5pt] (b) .. controls +(30:5mm) and +(-90:1cm) .. (N) ;
          }

          end{document}


          enter image description here





          My package modiagram can be used to draw the electronic state diagram. IMHO It doesn't fit perfectly and a TikZ-only solution may be preferable. On the other hand the code is rather easy:



          documentclass[11pt]{book}
          usepackage[utf8]{inputenc}
          usepackage{chemformula,modiagram,chemfig}

          % necessary due to stupid bug in `modiagram':
          newcommand*makecolonother{catcode`:=12 }

          begin{document}
          ch{_4Be}: 1s$^2$~2s$^2$

          ground state:
          begin{MOdiagram}[style=square,AO-width=8pt]
          AO(0pt){s}{0;pair}
          AO(12pt){s}{0;pair}
          AO(24pt){s}{0;}
          AO(34pt){s}{0;}
          AO(44pt){s}{0;}
          draw[overlay,red,->]
          (AO2.north) .. controls +(0,.5) and +(0,.5) .. (AO3.north) ;
          end{MOdiagram}

          excited state:
          begin{MOdiagram}[style=square,AO-width=8pt]
          AO(0pt){s}{0;pair}
          AO(12pt){s}{0;up}
          AO(24pt){s}{0;up}
          AO(34pt){s}{0;}
          AO(44pt){s}{0;}
          makecolonother
          draw[<-,overlay]
          (AO2.south) -- ++(-100:3mm) node[below] {Cl} ;
          draw[<-,overlay]
          (AO3.south) -- ++(-80:3mm) node[below] {Cl} ;
          end{MOdiagram}

          end{document}


          enter image description here






          share|improve this answer


























          • Ok thanks for your answer. I have downloaded modiagram.sty, but I cant't seem to find the location for texmf home directory. I have tried to use kpsewhich -var-value=TEXMFHOME, but it yields no result. What should I do?

            – Uzair
            Oct 24 '13 at 19:25













          • @user38857 modiagram is on CTAN since 2011/09/25 (is and part of both TeX Live and MiKTeX since then). There should be no need to install it manually when you have an up to date TeX distribution.

            – clemens
            Oct 24 '13 at 19:29











          • I Can't compile it on texstudio

            – Uzair
            Oct 24 '13 at 21:34













          • I get: line 13: Undefined control sequence AO(0pt){s}{0;pair}line 14: Undefined control sequence AO(10pt){s}{0;pair}line 15: Undefined control sequence AO(20pt){s}{0;}line 16: Undefined control sequence AO(30pt){s}{0;}line 17: Undefined control sequence AO(40pt){s}{0;}line 24: Undefined control sequence AO(0pt){s}{0;pair}line 25: Undefined control sequence AO(10pt){s}{0;up}line 26: Undefined control sequence AO(20pt){s}{0;up}\

            – Uzair
            Oct 24 '13 at 21:37











          • line 27: Undefined control sequence AO(30pt){s}{0;}line 28: Undefined control sequence AO(40pt){s}{0;}: No file texstudio_gq5576.aux.\

            – Uzair
            Oct 24 '13 at 21:38














          9












          9








          9







          chemfig allows to add explizit node names to either bonds or atoms in its formulae by using the @{<name>} syntax. These names can be used in a tikzpicture with the options remember picture, overlay to draw the curved arrows. chemfig provides the wrapper chemmove for this. So a combination of chemfig and TikZ can be used to draw the schemes. (BTW: the chemfig manual actually has quite a few examples of such schemes...)



          Here is something that might get you started:



          documentclass{article}
          usepackage{chemfig}
          tikzset{
          elmove/.style={->,shorten >=3pt, shorten <=3pt}
          }
          begin{document}

          schemestart
          chemfig{*8(-[@{sb1}]=[@{db1}]-[@{sb2}]=[@{db2}]-[@{sb3}]=[@{db3}]-[@{sb4}]=[@{db4}])}
          arrow{<->}
          chemfig{*8(=-=-=-=-)}
          schemestop
          chemmove[red,elmove]{
          draw (db1) .. controls +(90:5mm) and +(45:5mm) .. (sb1) ;
          draw (db2) .. controls +(180:5mm) and +(135:5mm) .. (sb2) ;
          draw (db3) .. controls +(270:5mm) and +(225:5mm) .. (sb3) ;
          draw (db4) .. controls +(0:5mm) and +(315:5mm) .. (sb4) ;
          % similar the others
          }

          bigskip

          schemestart
          chemfig{**6(----[@{b}]--)}
          arrow(benzene.base east--.base west){->[][][15pt]}
          chemfig{**[120,420,dashed]6(---(-[,-1,,,draw=none]{+})-(-[:120]H)(-[:60]NO_2)--)}
          arrow(@benzene.45--){0}[45,.2]
          chemfig{@{N}chemabove{N}{+}O_2}
          schemestop
          chemmove[blue,elmove]{
          draw[shorten <=-5pt] (b) .. controls +(30:5mm) and +(-90:1cm) .. (N) ;
          }

          end{document}


          enter image description here





          My package modiagram can be used to draw the electronic state diagram. IMHO It doesn't fit perfectly and a TikZ-only solution may be preferable. On the other hand the code is rather easy:



          documentclass[11pt]{book}
          usepackage[utf8]{inputenc}
          usepackage{chemformula,modiagram,chemfig}

          % necessary due to stupid bug in `modiagram':
          newcommand*makecolonother{catcode`:=12 }

          begin{document}
          ch{_4Be}: 1s$^2$~2s$^2$

          ground state:
          begin{MOdiagram}[style=square,AO-width=8pt]
          AO(0pt){s}{0;pair}
          AO(12pt){s}{0;pair}
          AO(24pt){s}{0;}
          AO(34pt){s}{0;}
          AO(44pt){s}{0;}
          draw[overlay,red,->]
          (AO2.north) .. controls +(0,.5) and +(0,.5) .. (AO3.north) ;
          end{MOdiagram}

          excited state:
          begin{MOdiagram}[style=square,AO-width=8pt]
          AO(0pt){s}{0;pair}
          AO(12pt){s}{0;up}
          AO(24pt){s}{0;up}
          AO(34pt){s}{0;}
          AO(44pt){s}{0;}
          makecolonother
          draw[<-,overlay]
          (AO2.south) -- ++(-100:3mm) node[below] {Cl} ;
          draw[<-,overlay]
          (AO3.south) -- ++(-80:3mm) node[below] {Cl} ;
          end{MOdiagram}

          end{document}


          enter image description here






          share|improve this answer















          chemfig allows to add explizit node names to either bonds or atoms in its formulae by using the @{<name>} syntax. These names can be used in a tikzpicture with the options remember picture, overlay to draw the curved arrows. chemfig provides the wrapper chemmove for this. So a combination of chemfig and TikZ can be used to draw the schemes. (BTW: the chemfig manual actually has quite a few examples of such schemes...)



          Here is something that might get you started:



          documentclass{article}
          usepackage{chemfig}
          tikzset{
          elmove/.style={->,shorten >=3pt, shorten <=3pt}
          }
          begin{document}

          schemestart
          chemfig{*8(-[@{sb1}]=[@{db1}]-[@{sb2}]=[@{db2}]-[@{sb3}]=[@{db3}]-[@{sb4}]=[@{db4}])}
          arrow{<->}
          chemfig{*8(=-=-=-=-)}
          schemestop
          chemmove[red,elmove]{
          draw (db1) .. controls +(90:5mm) and +(45:5mm) .. (sb1) ;
          draw (db2) .. controls +(180:5mm) and +(135:5mm) .. (sb2) ;
          draw (db3) .. controls +(270:5mm) and +(225:5mm) .. (sb3) ;
          draw (db4) .. controls +(0:5mm) and +(315:5mm) .. (sb4) ;
          % similar the others
          }

          bigskip

          schemestart
          chemfig{**6(----[@{b}]--)}
          arrow(benzene.base east--.base west){->[][][15pt]}
          chemfig{**[120,420,dashed]6(---(-[,-1,,,draw=none]{+})-(-[:120]H)(-[:60]NO_2)--)}
          arrow(@benzene.45--){0}[45,.2]
          chemfig{@{N}chemabove{N}{+}O_2}
          schemestop
          chemmove[blue,elmove]{
          draw[shorten <=-5pt] (b) .. controls +(30:5mm) and +(-90:1cm) .. (N) ;
          }

          end{document}


          enter image description here





          My package modiagram can be used to draw the electronic state diagram. IMHO It doesn't fit perfectly and a TikZ-only solution may be preferable. On the other hand the code is rather easy:



          documentclass[11pt]{book}
          usepackage[utf8]{inputenc}
          usepackage{chemformula,modiagram,chemfig}

          % necessary due to stupid bug in `modiagram':
          newcommand*makecolonother{catcode`:=12 }

          begin{document}
          ch{_4Be}: 1s$^2$~2s$^2$

          ground state:
          begin{MOdiagram}[style=square,AO-width=8pt]
          AO(0pt){s}{0;pair}
          AO(12pt){s}{0;pair}
          AO(24pt){s}{0;}
          AO(34pt){s}{0;}
          AO(44pt){s}{0;}
          draw[overlay,red,->]
          (AO2.north) .. controls +(0,.5) and +(0,.5) .. (AO3.north) ;
          end{MOdiagram}

          excited state:
          begin{MOdiagram}[style=square,AO-width=8pt]
          AO(0pt){s}{0;pair}
          AO(12pt){s}{0;up}
          AO(24pt){s}{0;up}
          AO(34pt){s}{0;}
          AO(44pt){s}{0;}
          makecolonother
          draw[<-,overlay]
          (AO2.south) -- ++(-100:3mm) node[below] {Cl} ;
          draw[<-,overlay]
          (AO3.south) -- ++(-80:3mm) node[below] {Cl} ;
          end{MOdiagram}

          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Oct 25 '13 at 7:40

























          answered Oct 24 '13 at 16:32









          clemensclemens

          51.9k5132285




          51.9k5132285













          • Ok thanks for your answer. I have downloaded modiagram.sty, but I cant't seem to find the location for texmf home directory. I have tried to use kpsewhich -var-value=TEXMFHOME, but it yields no result. What should I do?

            – Uzair
            Oct 24 '13 at 19:25













          • @user38857 modiagram is on CTAN since 2011/09/25 (is and part of both TeX Live and MiKTeX since then). There should be no need to install it manually when you have an up to date TeX distribution.

            – clemens
            Oct 24 '13 at 19:29











          • I Can't compile it on texstudio

            – Uzair
            Oct 24 '13 at 21:34













          • I get: line 13: Undefined control sequence AO(0pt){s}{0;pair}line 14: Undefined control sequence AO(10pt){s}{0;pair}line 15: Undefined control sequence AO(20pt){s}{0;}line 16: Undefined control sequence AO(30pt){s}{0;}line 17: Undefined control sequence AO(40pt){s}{0;}line 24: Undefined control sequence AO(0pt){s}{0;pair}line 25: Undefined control sequence AO(10pt){s}{0;up}line 26: Undefined control sequence AO(20pt){s}{0;up}\

            – Uzair
            Oct 24 '13 at 21:37











          • line 27: Undefined control sequence AO(30pt){s}{0;}line 28: Undefined control sequence AO(40pt){s}{0;}: No file texstudio_gq5576.aux.\

            – Uzair
            Oct 24 '13 at 21:38



















          • Ok thanks for your answer. I have downloaded modiagram.sty, but I cant't seem to find the location for texmf home directory. I have tried to use kpsewhich -var-value=TEXMFHOME, but it yields no result. What should I do?

            – Uzair
            Oct 24 '13 at 19:25













          • @user38857 modiagram is on CTAN since 2011/09/25 (is and part of both TeX Live and MiKTeX since then). There should be no need to install it manually when you have an up to date TeX distribution.

            – clemens
            Oct 24 '13 at 19:29











          • I Can't compile it on texstudio

            – Uzair
            Oct 24 '13 at 21:34













          • I get: line 13: Undefined control sequence AO(0pt){s}{0;pair}line 14: Undefined control sequence AO(10pt){s}{0;pair}line 15: Undefined control sequence AO(20pt){s}{0;}line 16: Undefined control sequence AO(30pt){s}{0;}line 17: Undefined control sequence AO(40pt){s}{0;}line 24: Undefined control sequence AO(0pt){s}{0;pair}line 25: Undefined control sequence AO(10pt){s}{0;up}line 26: Undefined control sequence AO(20pt){s}{0;up}\

            – Uzair
            Oct 24 '13 at 21:37











          • line 27: Undefined control sequence AO(30pt){s}{0;}line 28: Undefined control sequence AO(40pt){s}{0;}: No file texstudio_gq5576.aux.\

            – Uzair
            Oct 24 '13 at 21:38

















          Ok thanks for your answer. I have downloaded modiagram.sty, but I cant't seem to find the location for texmf home directory. I have tried to use kpsewhich -var-value=TEXMFHOME, but it yields no result. What should I do?

          – Uzair
          Oct 24 '13 at 19:25







          Ok thanks for your answer. I have downloaded modiagram.sty, but I cant't seem to find the location for texmf home directory. I have tried to use kpsewhich -var-value=TEXMFHOME, but it yields no result. What should I do?

          – Uzair
          Oct 24 '13 at 19:25















          @user38857 modiagram is on CTAN since 2011/09/25 (is and part of both TeX Live and MiKTeX since then). There should be no need to install it manually when you have an up to date TeX distribution.

          – clemens
          Oct 24 '13 at 19:29





          @user38857 modiagram is on CTAN since 2011/09/25 (is and part of both TeX Live and MiKTeX since then). There should be no need to install it manually when you have an up to date TeX distribution.

          – clemens
          Oct 24 '13 at 19:29













          I Can't compile it on texstudio

          – Uzair
          Oct 24 '13 at 21:34







          I Can't compile it on texstudio

          – Uzair
          Oct 24 '13 at 21:34















          I get: line 13: Undefined control sequence AO(0pt){s}{0;pair}line 14: Undefined control sequence AO(10pt){s}{0;pair}line 15: Undefined control sequence AO(20pt){s}{0;}line 16: Undefined control sequence AO(30pt){s}{0;}line 17: Undefined control sequence AO(40pt){s}{0;}line 24: Undefined control sequence AO(0pt){s}{0;pair}line 25: Undefined control sequence AO(10pt){s}{0;up}line 26: Undefined control sequence AO(20pt){s}{0;up}\

          – Uzair
          Oct 24 '13 at 21:37





          I get: line 13: Undefined control sequence AO(0pt){s}{0;pair}line 14: Undefined control sequence AO(10pt){s}{0;pair}line 15: Undefined control sequence AO(20pt){s}{0;}line 16: Undefined control sequence AO(30pt){s}{0;}line 17: Undefined control sequence AO(40pt){s}{0;}line 24: Undefined control sequence AO(0pt){s}{0;pair}line 25: Undefined control sequence AO(10pt){s}{0;up}line 26: Undefined control sequence AO(20pt){s}{0;up}\

          – Uzair
          Oct 24 '13 at 21:37













          line 27: Undefined control sequence AO(30pt){s}{0;}line 28: Undefined control sequence AO(40pt){s}{0;}: No file texstudio_gq5576.aux.\

          – Uzair
          Oct 24 '13 at 21:38





          line 27: Undefined control sequence AO(30pt){s}{0;}line 28: Undefined control sequence AO(40pt){s}{0;}: No file texstudio_gq5576.aux.\

          – Uzair
          Oct 24 '13 at 21:38


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f140452%2fdrawing-benzene-resonance-mechanism-and-reaction-mechanism-curly-arrows%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

          How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

          Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...