4

I have the following chemical reaction scheme with MWE below:

enter image description here

MWE

\documentclass{article}
\usepackage{chemfig}

\begin{document}

\schemestart
P \arrow(P--Q){<=>[$\mathrm{k_{pq}}$]} Q
\arrow{<=>[$\mathrm{k_{qs}}$]}[30] S \arrow(S--T){<=>[][$\mathrm{k_{st}}$]}[-30] T
\arrow(@Q--R){<=>[][$\mathrm{k_{qr}}$]}[-30] R
\arrow(@R--@T){<=>[][$\mathrm{k_{rt}}$]}
\arrow(@T--U){<=>[][$\mathrm{k_{tu}}$]} U
\arrow(@U--V){->[$\mathrm{k_{uv}}$]} V
\schemestop

\end{document}

How can I added a shaded rounded rectangle to a particular scheme? As an example see image below:

enter image description here

5
\documentclass{article}
\usepackage{chemfig}
\usepackage{tikz}
\usetikzlibrary{fit} 
% from https://tex.stackexchange.com/questions/402462/tikz-equivalent-of-pstricks-commands-ncbar-and-rnode
\newcommand{\tikznode}[2]{%
\ifmmode%
  \tikz[remember picture,baseline=(#1.base),inner sep=0pt] \node (#1) {$#2$};
\else
  \tikz[remember picture,baseline=(#1.base),inner sep=0pt] \node (#1) {#2};%
\fi}

\begin{document}

\schemestart
P \arrow(P--Q){<=>[$\mathrm{k_{pq}}$]} \tikznode{Q}{Q}
\arrow{<=>[$\mathrm{k_{qs}}$]}[30] \tikznode{S}{S}
\arrow(S--T){<=>[][$\mathrm{k_{st}}$]}[-30] \tikznode{T}{T}
\arrow(@Q--R){<=>[][$\mathrm{k_{qr}}$]}[-30] \tikznode{R}{R}
\arrow(@R--@T){<=>[][$\mathrm{k_{rt}}$]}
\arrow(@T--U){<=>[][$\mathrm{k_{tu}}$]} U
\arrow(@U--V){->[$\mathrm{k_{uv}}$]} V
\schemestop
% from https://tex.stackexchange.com/questions/251330/draw-rectangle-around-nodes-with-tikz
\tikz[overlay,remember picture]{\node[draw,inner sep=2mm,rounded corners, fit=(S) (R) (T) (Q)] {};}

\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.