Wie im Beispiel möchte ich eine neudefinierten node verwenden. Wie müßte der Code denn lauten um eine schwarze, umrandende Kreisline zusätzlich zur grünen Füllfarbe zu bekommen ?

Code, hier editierbar zum Übersetzen:
\documentclass{article}
\usepackage{chemfig}
%
\newcommand*\circleatom[1]{\tikz\node[circle,fill=green!30]{\printatom{#1}};}
\setatomsep{2em}
\setcompoundsep{7em}
%
\renewcommand*\printatom[1]{\ensuremath{\mathsf{#1}}}
\begin{document}
\schemestart
\chemfig{CH(-[4]H_2N)(-[6]CH_2(-[6]C(=[5]O)(-[7]OH)))-C(=[2]O)-\circleatom{OH}} % I want to circle this last OH
\+
\chemfig{CH(-[4]\circleatom{H}_2N)(-[6]CH_2(-[6]*6(=-=-=-)))-C(=[1]O)(-[7]O-CH_3)} % I want to circle the H of the H_2N near the beginning
\arrow{<=>}[-90]
\chemfig{CH(-[4]H_2N)(-[6]CH_2(-[6]C(=[5]O)(-[7]OH)))-C(=[2]O)-N(-[2]H)-CH(-[6]CH_2(-[6]*6(=-=-=-)))-C(=[1]O)(-[7]O-CH_3)}
\+
\chemfig{\circleatom{H_2O}}
\schemestop
\end{document}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

gefragt 22 Sep '13, 12:09

butts's gravatar image

butts
689183440
Akzeptiert-Rate: 40%

bearbeitet 22 Sep '13, 12:13

cgnieder's gravatar image

cgnieder
22.1k253463


Füge der Definition einfach draw=black hinzu:

Code, hier editierbar zum Übersetzen:
\documentclass{article}
\usepackage{chemfig}
\newcommand*\circleatom[1]{%
\tikz\node[circle,draw=black,fill=green!30]{\printatom{#1}};
}
\setatomsep{2em}
\setcompoundsep{7em}
\renewcommand*\printatom[1]{\ensuremath{\mathsf{#1}}}
\begin{document}
\schemestart
\chemfig{
CH
(-[4]H_2N)
(-[6]CH_2(-[6]C(=[5]O)(-[7]OH)))
-C(=[2]O)-\circleatom{OH}
}
\+
\chemfig{
\circleatom{H}-N
(-[6]H)
-CH(-[6]CH_2(-[6]*6(=-=-=-)))
-C(=[1]O)(-[7]O-CH_3)
}
\arrow{<=>}[-90]
\chemfig{
CH
(-[4]H_2N)
(-[6]CH_2(-[6]C(=[5]O)(-[7]OH)))
-C(=[2]O)
-N(-[2]H)
-CH(-[6]CH_2(-[6]*6(=-=-=-)))
-C(=[1]O)(-[7]O-CH_3)
}
\+
\chemfig{\circleatom{H_2O}}
\schemestop
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

alt text

Permanenter link

beantwortet 22 Sep '13, 12:21

cgnieder's gravatar image

cgnieder
22.1k253463
Akzeptiert-Rate: 60%

Deine Antwort
[Vorschau ausblenden]

Folgen dieser Frage

Per E-Mail:

Wenn sie sich anmelden, kommen Sie für alle Updates hier in Frage

Per RSS:

Antworten

Antworten und Kommentare

Frage-Themen:

×731
×41

gestellte Frage: 22 Sep '13, 12:09

Frage wurde gesehen: 9,403 Mal

zuletzt geändert: 22 Sep '13, 12:21