3

I need to align some molecules according to this picture. enter image description here 1st Point of alignment should be the beginning of the ring, 2nd point of alignment should be the 'N' on the right-hand chain. The bound to the N should be flexible in length and adapt according to the needed width.

My progress so far in the following code:

 \documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{chemfig}
\usepackage{tikz}

\begin{document}

    \begin{tikzpicture}
    \node[align=center] at (1.4,3.2) {Aromatischer Rest\\(lipophiler Anteil)};
    \node[align=center] at (4.825,3.2) {Zwischenkette};
    \node[align=center] at (8.425,3.2) {Aminogruppe\\(hydrophiler Teil)};
    \draw [dashed, red] (2.8,-2) -- (2.8,2.8);
    \draw [dashed, red] (6.85,-2) -- (6.85,2.8);
    \chemfig{[:330]**6(---(-C(=[6,0.7]O)-O-(-[0,0.9](-[5,0.6,,,dash pattern=on 2pt off 2pt]H)*6(--(-[3,0.6]?[a])- N(-CH_3)-(-[5,0.6]?[a])-(-[:200,0.6,,,dash pattern=on 2pt off 2pt]H)(-[3]C(=[2,0.7]O)(-[4,0.7]H_3CO))-)))---)}

    \end{tikzpicture}

\chemfig{H_2N-(**6(---(-C(=[6,0.7]O)-CH_2-CH_2-N(-[1]C_2H_5)(-[7]C_2H_5))---))}
\end{document}
3

The trick is to use invisible bonds. The lenght of a 6-ring is 2 bonds:

\documentclass{article}
\usepackage{chemfig}
\begin{document}
\setatomsep{1.75em}
\chemfig{C(-[4,2]**6(---(-[,3,,,draw=none])---))(=[6]O)-O?-[,4,,,draw=none]?*6(---N(-CH_3)---)}\vskip5ex
\chemfig{C(-[4,2]**6(---(-[,1.25]NH_2)(-[,3,,,draw=none])---))(=[6]O)-O(-[,6,,,draw=none]N?(-[7,1.25]C_2H_5)-[1,1.25]CH_3)-CH_2-CH_2|\vphantom{N}?}\vskip5ex
\chemfig{C(-[4,2]**6(---(-N(-[3,1.25]H)-[5,1.25]H_9C_4)(-[,3,,,draw=none])---))(=[6]O)-O(-[,6,,,draw=none]N?(-[7,1.25]C_2H_5)-[1,1.25]CH_3)-CH_2-CH_2|\vphantom{N}?}
\end{document}

enter image description here

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.