0

How can I write this chemical equation, especially the arrows? enter image description here

\documentclass{article} 
\usepackage[utf8]{inputenc} 
\usepackage{chemfig} 
\begin{document} 
\schemestart \chemfig{CH_3CH_2CH_2CH_2-OH} \arrow(.mid east--.mid west){->[O]} \chemfig{CH_3CH_2CH_2-C(=[2]O)-H} \arrow(.mid east--.mid west){->[O]} \chemfig{CH_3CH_2CH_2-C(=[2]O)-OH} 
\schemestop 
\end{document} 

enter image description here

4
  • 1
    Welcome to Tex.SE. Can you provide some code of what you have tried so far. Do you know chemfig for drawing chemical equations?
    – Roland
    Jul 20 at 7:13
  • \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{chemfig} \begin{document} \schemestart \chemfig{CH_3CH_2CH_2CH_2-OH} \arrow(.mid east--.mid west){->[O]} \chemfig{CH_3CH_2CH_2-C(=[2]O)-H} \arrow(.mid east--.mid west){->[O]} \chemfig{CH_3CH_2CH_2-C(=[2]O)-OH} \schemestop \end{document} Jul 20 at 7:17
  • But I need to draw square arrow as in picture to fit margins in my box Jul 20 at 7:18
  • 1
    Looks like you can do it with tikz. See here for a similar example, which you can adjust to your needs: tex.stackexchange.com/questions/294222/… . Or take this one, which apperas to be less code: tex.stackexchange.com/questions/132386/…
    – MS-SPO
    Jul 20 at 10:10
2

Here are two alternatives that use the abbreviation nPr for the n-propyl group. With this abbreviation (and shorter bond lengths) you should be able to fit both oxidation reactions next to each other in the textwidth of a standard article document:

enter image description here

\documentclass{article}
\usepackage{chemfig}
\usepackage{chemformula}

\setchemfig{atom sep=2.25em}
\begin{document}

\noindent
\schemestart
\chemfig{\textit{n}Pr-CH_2-OH}
\arrow(.mid east--.mid west){->[\ch{K2Cr2O7}, \ch{H+}]}[,1.8]
\chemfig{\textit{n}Pr-C(=[2]O)-H}
\arrow(.mid east--.mid west){->[[O]]}
\chemfig{\textit{n}Pr-C(=[2]O)-OH}
\schemestop
\bigskip

\noindent
\schemestart
\chemfig{\textit{n}Pr-CH_2-OH}
\arrow(.mid east--.mid west){->[\ch{K2Cr2O7}, \ch{H+}]}[,1.8]
\chemfig{\textit{n}Pr-[:30]C(=[2]O)-[:-30]H}
\arrow(.mid east--.mid west){->[[O]]}
\chemfig{\textit{n}Pr-[:30]C(=[2]O)-[:-30]OH}
\schemestop

\end{document}
1
3
\documentclass{article}
\usepackage{chemfig}
\setchemfig{atom sep=2em}
\definesubmol\I{\vphantom{C}}
\begin{document}
\schemestart
\chemfig{CH_3|!\I-CH_2|!\I-CH_2|!\I-CH_2|!\I(=[2,,,,draw=none]\vphantom{O})-OH}
\arrow(.mid east--.mid west)
    {->[ \footnotesize\chemfig{K_2Cr_2O_7}/\chemfig{H^{+}} ]}[,1.6]
\chemfig{CH_3|!\I-CH_2|!\I-CH_2|!\I-C|!\I(=[2]O)
    -@{h3}H}
\arrow(.mid east--.mid east){0}[-90,2]
\chemfig{CH_3|!\I-CH_2|!\I-CH_2|!\I-C(=[2]O)-O@{h4}H}
\schemestop
\chemmove{
    \draw[shorten <=5pt, shorten >=5pt]
    (h3) -- ([xshift=25pt]h3.center) -- node[pos=0.5,right] {\footnotesize [O]} ([xshift=25pt]h4.center) -- (h4);
}
\end{document}

enter image description here

1
1
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{chemfig} 

\begin{document}

\schemestart
\chemfig{CH_3CH_2CH_2CH_2-OH}
\arrow(.mid east--.mid west){->[O]} 
\chemfig{CH_3CH_2CH_2-C(=[2]O)-H}
\arrow(.mid east--.mid west){->[O]}
\chemfig{CH_3CH_2CH_2-C(=[2]O)-OH}
\schemestop

\end{document}

enter image description here

-1
\documentclass{article}
\usepackage{chemfig}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage[numerals=maghrib]{arabic}
\setotherlanguage{english}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.0]{Simplified Arabic}
\newcommand{\en}{\textenglish}
\newcommand{\ar}{\textarabic}

\setchemfig{atom sep=2em}

\begin{document}
    \schemestart
    \chemfig{CH_3-CH_2-CH_2-CH_2-OH}
    \arrow(.mid east--.mid west)
    {->[ \footnotesize\chemfig{K_2Cr_2O_7}/\chemfig{H^{+}} ]}[,1.6]
    \chemfig{CH_3-CH_2-CH_2-C(=[2]O)
        -@{h3}H}
    \arrow(.mid east--.mid east){0}[-90,2]
    \chemfig{CH_3-CH_2-CH_2-C(=[2]O)-O@{h4}H}
    \schemestop
    \chemmove{
        \draw[shorten <=5pt, shorten >=5pt]
        (h3) -- ([xshift=25pt]h3.center) -- node[pos=0.5,right] {\footnotesize [O]} ([xshift=25pt]h4.center) -- (h4);
    }
\end{document}

enter image description here

1
  • When I use this code in texstudio to write Arabic text it give me this results (mean arrows) as in picture. Jul 22 at 18:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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