Rsix
Rmarkdown文件里面如何插入一段tex文件的圆满,并可以执行运行
\begin{tikzpicture}[
neuron/.style={circle,draw,inner sep=0pt,minimum size=10mm}
]
\node (perceptron) at (0, 0) [neuron] {};
\node (output) at (2.25, 0) {\ output};
\node (x1) at (-2.25, 1) {$x_1$};
\node (x2) at (-2.25, 0) {$x_2$};
\node (x3) at (-2.25, -1) {$x_3$};
\draw [->] (x1) to (perceptron);
\draw [->] (x2) to (perceptron);
\draw [->] (x3) to (perceptron);
\draw [->] (perceptron) to (output);
\end{tikzpicture}