How to typset/draw conjugate acids and bases











up vote
5
down vote

favorite












Hello I need help drawing/typesetting an acid base reaction showing the conjugate pairs:
enter image description here
Here is what I have so far:



documentclass{article}
usepackage{chemfig}
usepackage{endiagram}
usepackage{booktabs}
begin{document}
setchemfig{cram width=3pt}
schemestart
chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]O-[:0]H}}{Acetic Acid}
+
chemname{chemfig{H_{3}C-Lewis{2:,N}(<:[:-15]H)<[:-40]H}}{Methylamine}
arrow{<=>}
chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]Orlap{${}^-$}}}{Acetate Ion}
+
chemname{chemfig{H_{3}C-Nrlap{${}^+$}(-[:45]H)(<:[:-15]H)<[:-40]H}}{Mathylammonium Ion}
schemestop
end{document}


Which produces the reaction and the lewis structures I am interested in. I do not need the colours nor the dots around the oxygen atoms, I only require assistance with the bottom section of the figure. My code currently produces this:
enter image description here
I know it might be possible to use tikz[overlay,remember picture]{}, but I do not know how to label the text below the chemicals.










share|improve this question


























    up vote
    5
    down vote

    favorite












    Hello I need help drawing/typesetting an acid base reaction showing the conjugate pairs:
    enter image description here
    Here is what I have so far:



    documentclass{article}
    usepackage{chemfig}
    usepackage{endiagram}
    usepackage{booktabs}
    begin{document}
    setchemfig{cram width=3pt}
    schemestart
    chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]O-[:0]H}}{Acetic Acid}
    +
    chemname{chemfig{H_{3}C-Lewis{2:,N}(<:[:-15]H)<[:-40]H}}{Methylamine}
    arrow{<=>}
    chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]Orlap{${}^-$}}}{Acetate Ion}
    +
    chemname{chemfig{H_{3}C-Nrlap{${}^+$}(-[:45]H)(<:[:-15]H)<[:-40]H}}{Mathylammonium Ion}
    schemestop
    end{document}


    Which produces the reaction and the lewis structures I am interested in. I do not need the colours nor the dots around the oxygen atoms, I only require assistance with the bottom section of the figure. My code currently produces this:
    enter image description here
    I know it might be possible to use tikz[overlay,remember picture]{}, but I do not know how to label the text below the chemicals.










    share|improve this question
























      up vote
      5
      down vote

      favorite









      up vote
      5
      down vote

      favorite











      Hello I need help drawing/typesetting an acid base reaction showing the conjugate pairs:
      enter image description here
      Here is what I have so far:



      documentclass{article}
      usepackage{chemfig}
      usepackage{endiagram}
      usepackage{booktabs}
      begin{document}
      setchemfig{cram width=3pt}
      schemestart
      chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]O-[:0]H}}{Acetic Acid}
      +
      chemname{chemfig{H_{3}C-Lewis{2:,N}(<:[:-15]H)<[:-40]H}}{Methylamine}
      arrow{<=>}
      chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]Orlap{${}^-$}}}{Acetate Ion}
      +
      chemname{chemfig{H_{3}C-Nrlap{${}^+$}(-[:45]H)(<:[:-15]H)<[:-40]H}}{Mathylammonium Ion}
      schemestop
      end{document}


      Which produces the reaction and the lewis structures I am interested in. I do not need the colours nor the dots around the oxygen atoms, I only require assistance with the bottom section of the figure. My code currently produces this:
      enter image description here
      I know it might be possible to use tikz[overlay,remember picture]{}, but I do not know how to label the text below the chemicals.










      share|improve this question













      Hello I need help drawing/typesetting an acid base reaction showing the conjugate pairs:
      enter image description here
      Here is what I have so far:



      documentclass{article}
      usepackage{chemfig}
      usepackage{endiagram}
      usepackage{booktabs}
      begin{document}
      setchemfig{cram width=3pt}
      schemestart
      chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]O-[:0]H}}{Acetic Acid}
      +
      chemname{chemfig{H_{3}C-Lewis{2:,N}(<:[:-15]H)<[:-40]H}}{Methylamine}
      arrow{<=>}
      chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]Orlap{${}^-$}}}{Acetate Ion}
      +
      chemname{chemfig{H_{3}C-Nrlap{${}^+$}(-[:45]H)(<:[:-15]H)<[:-40]H}}{Mathylammonium Ion}
      schemestop
      end{document}


      Which produces the reaction and the lewis structures I am interested in. I do not need the colours nor the dots around the oxygen atoms, I only require assistance with the bottom section of the figure. My code currently produces this:
      enter image description here
      I know it might be possible to use tikz[overlay,remember picture]{}, but I do not know how to label the text below the chemicals.







      tikz-pgf chemfig






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 30 at 7:24









      sab hoque

      1,208318




      1,208318






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          Something like this?



          documentclass{article}
          usepackage{chemfig}
          usepackage{endiagram}
          usepackage{booktabs}
          usetikzlibrary{tikzmark,positioning,shapes.geometric}
          definecolor{dullblue}{RGB}{178,201,231}
          begin{document}
          setchemfig{cram width=3pt}
          schemestart
          chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]O-[:0]H}}{tikzmarknode{A}{Acetic
          Acid}}
          +
          chemname{chemfig{H_{3}C-Lewis{2:,N}(<:[:-15]H)<[:-40]H}}{tikzmarknode{B}{Methylamine}}
          arrow{<=>}
          chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]Orlap{${}^-$}}}{tikzmarknode{C}{Acetate
          Ion}}
          +
          chemname{chemfig{H_{3}C-Nrlap{${}^+$}(-[:45]H)(<:[:-15]H)<[:-40]H}}{tikzmarknode{D}{Mathylammonium
          Ion}}
          schemestop
          begin{tikzpicture}[overlay,remember picture]
          node[below=3mm of A,fill=dullblue,draw,ellipse] (Acid1) {Acid};
          node[below=3mm of B,draw,ellipse] (Base1) {Base};
          node[below=3mm of C,fill=dullblue,draw,ellipse] (Base2) {Base};
          node[below=3mm of D,draw,ellipse] (Acid2) {Acid};
          draw[blue!50] (Acid1) -- ++ (0,-1.5) coordinate(aux) -| (Base2);
          draw (Base1) -- ++ (0,-2) -| (Acid2);
          node[anchor=south,blue!50,fill=white,outer sep=1pt] at (aux-|Base1) {Conjugate pair};
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer





















          • That's exactly what I wanted, but one question what does aux-|Base1 do for the position of the conjugate pair node
            – sab hoque
            Nov 30 at 22:05






          • 1




            @sabhoque The coordinate (aux-|Base1) is the point with the y-coordinate of aux and the x-coordinate of Base1, as explained very nicely in this answer.
            – marmot
            Nov 30 at 22:11











          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',
          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%2f462525%2fhow-to-typset-draw-conjugate-acids-and-bases%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








          up vote
          3
          down vote



          accepted










          Something like this?



          documentclass{article}
          usepackage{chemfig}
          usepackage{endiagram}
          usepackage{booktabs}
          usetikzlibrary{tikzmark,positioning,shapes.geometric}
          definecolor{dullblue}{RGB}{178,201,231}
          begin{document}
          setchemfig{cram width=3pt}
          schemestart
          chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]O-[:0]H}}{tikzmarknode{A}{Acetic
          Acid}}
          +
          chemname{chemfig{H_{3}C-Lewis{2:,N}(<:[:-15]H)<[:-40]H}}{tikzmarknode{B}{Methylamine}}
          arrow{<=>}
          chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]Orlap{${}^-$}}}{tikzmarknode{C}{Acetate
          Ion}}
          +
          chemname{chemfig{H_{3}C-Nrlap{${}^+$}(-[:45]H)(<:[:-15]H)<[:-40]H}}{tikzmarknode{D}{Mathylammonium
          Ion}}
          schemestop
          begin{tikzpicture}[overlay,remember picture]
          node[below=3mm of A,fill=dullblue,draw,ellipse] (Acid1) {Acid};
          node[below=3mm of B,draw,ellipse] (Base1) {Base};
          node[below=3mm of C,fill=dullblue,draw,ellipse] (Base2) {Base};
          node[below=3mm of D,draw,ellipse] (Acid2) {Acid};
          draw[blue!50] (Acid1) -- ++ (0,-1.5) coordinate(aux) -| (Base2);
          draw (Base1) -- ++ (0,-2) -| (Acid2);
          node[anchor=south,blue!50,fill=white,outer sep=1pt] at (aux-|Base1) {Conjugate pair};
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer





















          • That's exactly what I wanted, but one question what does aux-|Base1 do for the position of the conjugate pair node
            – sab hoque
            Nov 30 at 22:05






          • 1




            @sabhoque The coordinate (aux-|Base1) is the point with the y-coordinate of aux and the x-coordinate of Base1, as explained very nicely in this answer.
            – marmot
            Nov 30 at 22:11















          up vote
          3
          down vote



          accepted










          Something like this?



          documentclass{article}
          usepackage{chemfig}
          usepackage{endiagram}
          usepackage{booktabs}
          usetikzlibrary{tikzmark,positioning,shapes.geometric}
          definecolor{dullblue}{RGB}{178,201,231}
          begin{document}
          setchemfig{cram width=3pt}
          schemestart
          chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]O-[:0]H}}{tikzmarknode{A}{Acetic
          Acid}}
          +
          chemname{chemfig{H_{3}C-Lewis{2:,N}(<:[:-15]H)<[:-40]H}}{tikzmarknode{B}{Methylamine}}
          arrow{<=>}
          chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]Orlap{${}^-$}}}{tikzmarknode{C}{Acetate
          Ion}}
          +
          chemname{chemfig{H_{3}C-Nrlap{${}^+$}(-[:45]H)(<:[:-15]H)<[:-40]H}}{tikzmarknode{D}{Mathylammonium
          Ion}}
          schemestop
          begin{tikzpicture}[overlay,remember picture]
          node[below=3mm of A,fill=dullblue,draw,ellipse] (Acid1) {Acid};
          node[below=3mm of B,draw,ellipse] (Base1) {Base};
          node[below=3mm of C,fill=dullblue,draw,ellipse] (Base2) {Base};
          node[below=3mm of D,draw,ellipse] (Acid2) {Acid};
          draw[blue!50] (Acid1) -- ++ (0,-1.5) coordinate(aux) -| (Base2);
          draw (Base1) -- ++ (0,-2) -| (Acid2);
          node[anchor=south,blue!50,fill=white,outer sep=1pt] at (aux-|Base1) {Conjugate pair};
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer





















          • That's exactly what I wanted, but one question what does aux-|Base1 do for the position of the conjugate pair node
            – sab hoque
            Nov 30 at 22:05






          • 1




            @sabhoque The coordinate (aux-|Base1) is the point with the y-coordinate of aux and the x-coordinate of Base1, as explained very nicely in this answer.
            – marmot
            Nov 30 at 22:11













          up vote
          3
          down vote



          accepted







          up vote
          3
          down vote



          accepted






          Something like this?



          documentclass{article}
          usepackage{chemfig}
          usepackage{endiagram}
          usepackage{booktabs}
          usetikzlibrary{tikzmark,positioning,shapes.geometric}
          definecolor{dullblue}{RGB}{178,201,231}
          begin{document}
          setchemfig{cram width=3pt}
          schemestart
          chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]O-[:0]H}}{tikzmarknode{A}{Acetic
          Acid}}
          +
          chemname{chemfig{H_{3}C-Lewis{2:,N}(<:[:-15]H)<[:-40]H}}{tikzmarknode{B}{Methylamine}}
          arrow{<=>}
          chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]Orlap{${}^-$}}}{tikzmarknode{C}{Acetate
          Ion}}
          +
          chemname{chemfig{H_{3}C-Nrlap{${}^+$}(-[:45]H)(<:[:-15]H)<[:-40]H}}{tikzmarknode{D}{Mathylammonium
          Ion}}
          schemestop
          begin{tikzpicture}[overlay,remember picture]
          node[below=3mm of A,fill=dullblue,draw,ellipse] (Acid1) {Acid};
          node[below=3mm of B,draw,ellipse] (Base1) {Base};
          node[below=3mm of C,fill=dullblue,draw,ellipse] (Base2) {Base};
          node[below=3mm of D,draw,ellipse] (Acid2) {Acid};
          draw[blue!50] (Acid1) -- ++ (0,-1.5) coordinate(aux) -| (Base2);
          draw (Base1) -- ++ (0,-2) -| (Acid2);
          node[anchor=south,blue!50,fill=white,outer sep=1pt] at (aux-|Base1) {Conjugate pair};
          end{tikzpicture}
          end{document}


          enter image description here






          share|improve this answer












          Something like this?



          documentclass{article}
          usepackage{chemfig}
          usepackage{endiagram}
          usepackage{booktabs}
          usetikzlibrary{tikzmark,positioning,shapes.geometric}
          definecolor{dullblue}{RGB}{178,201,231}
          begin{document}
          setchemfig{cram width=3pt}
          schemestart
          chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]O-[:0]H}}{tikzmarknode{A}{Acetic
          Acid}}
          +
          chemname{chemfig{H_{3}C-Lewis{2:,N}(<:[:-15]H)<[:-40]H}}{tikzmarknode{B}{Methylamine}}
          arrow{<=>}
          chemname{chemfig{H_{3}C-C(=[:45]O)-[:-45]Orlap{${}^-$}}}{tikzmarknode{C}{Acetate
          Ion}}
          +
          chemname{chemfig{H_{3}C-Nrlap{${}^+$}(-[:45]H)(<:[:-15]H)<[:-40]H}}{tikzmarknode{D}{Mathylammonium
          Ion}}
          schemestop
          begin{tikzpicture}[overlay,remember picture]
          node[below=3mm of A,fill=dullblue,draw,ellipse] (Acid1) {Acid};
          node[below=3mm of B,draw,ellipse] (Base1) {Base};
          node[below=3mm of C,fill=dullblue,draw,ellipse] (Base2) {Base};
          node[below=3mm of D,draw,ellipse] (Acid2) {Acid};
          draw[blue!50] (Acid1) -- ++ (0,-1.5) coordinate(aux) -| (Base2);
          draw (Base1) -- ++ (0,-2) -| (Acid2);
          node[anchor=south,blue!50,fill=white,outer sep=1pt] at (aux-|Base1) {Conjugate pair};
          end{tikzpicture}
          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 30 at 15:58









          marmot

          81.4k491173




          81.4k491173












          • That's exactly what I wanted, but one question what does aux-|Base1 do for the position of the conjugate pair node
            – sab hoque
            Nov 30 at 22:05






          • 1




            @sabhoque The coordinate (aux-|Base1) is the point with the y-coordinate of aux and the x-coordinate of Base1, as explained very nicely in this answer.
            – marmot
            Nov 30 at 22:11


















          • That's exactly what I wanted, but one question what does aux-|Base1 do for the position of the conjugate pair node
            – sab hoque
            Nov 30 at 22:05






          • 1




            @sabhoque The coordinate (aux-|Base1) is the point with the y-coordinate of aux and the x-coordinate of Base1, as explained very nicely in this answer.
            – marmot
            Nov 30 at 22:11
















          That's exactly what I wanted, but one question what does aux-|Base1 do for the position of the conjugate pair node
          – sab hoque
          Nov 30 at 22:05




          That's exactly what I wanted, but one question what does aux-|Base1 do for the position of the conjugate pair node
          – sab hoque
          Nov 30 at 22:05




          1




          1




          @sabhoque The coordinate (aux-|Base1) is the point with the y-coordinate of aux and the x-coordinate of Base1, as explained very nicely in this answer.
          – marmot
          Nov 30 at 22:11




          @sabhoque The coordinate (aux-|Base1) is the point with the y-coordinate of aux and the x-coordinate of Base1, as explained very nicely in this answer.
          – marmot
          Nov 30 at 22:11


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f462525%2fhow-to-typset-draw-conjugate-acids-and-bases%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

          mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?