I'm on Windows 10 64-bit, with MiKTeX and TeXstudio. I want to draw signal flow graphs in LaTeX, so I have "installed" the sfg package, along with pstricks and fp (the prerequisites). Unfortunately, when I try to execute a minimal file, I get an undefined control sequence error message. Here's the minimal file:
\documentclass[12pt]{article}
\usepackage{pstricks,sfg}
\begin{document}
Testing.
\sfgsetunit{0.5cm}
\sfgsetsize{0.12}{0.4}{0.5}{0.3}
\sfgsetcompass
\begin{picture}(27,4) % % branches related to node 2
\put(6,2){\sfgbranch{3}{0}\S{$\frac{1}{R_1}$}}
\end{picture}
\end{document}
The command that LaTeX doesn't like is the first uncommented sfgbranch
command in the picture environment.
Any ideas?