In an excellent answer to this question (Finding the rotation matrix in n-dimensions) an algorithm is described for explicitly constructing a rotation matrix $R \in SO(2n)$ that maps any given unit vector $\textbf{x} \in \mathbb{R}^{2n}$ to any other unit vector $\textbf{y} \in \mathbb{R}^{2n}$. However, there is no reason to expect that the matrix $R$ should also be symplectic (that is, satisfy $R^\intercal \Omega R = \Omega$ with
\begin{align*} \Omega = \left( \begin{matrix} 0 & I \\ -I & 0 \end{matrix} \right), \end{align*} where $I$ denotes the $n \times n$ identity matrix).
In case I want to map the standard basis vector $\textbf{e}_{2n}$ to some other unit vector $\textbf{x} = (x_1, \ldots, x_{2n})$ using an element of $SO(2n) \cap Sp (2n, \mathbb{R})$, how would I go about constructing such a symplectic rotation?