Contents |
Download and install M4 and dpic - see also M4_Circuit_Macros_-_Requirements
Place M4 and dpic some where in the path, e.g. C:\Program Files\MikTeX 2.x\MikTeX\bin
Download and install the (M4) Circuit_Macros - see
Then copy all the (M4) Circuit_Macros libraries, e.g.:
as well as the LaTeX style file,
to (say) C:\Users\<username>\texmf\tex\latex\Circuit_Macros
and then update MikTex's File Name Database by going to:
Start -> All Programs -> MikTeX 2.9 -> Maintenance (Admin ) -> Settings (Admin) and clicking on the [Roots] Tab, then the [Add] Button to add the C:\Users\<username>\texmf folder. The File Name Data Base will automatically refresh.
If you have already added C:\Users\<username>\texmf previously, just go to the [General] Tab and click the [Refresh FNDB] to refresh the File Name Data Base.
Control Panel -> System and Security -> System -> Advanced system settings -> [Environmental Variables...] Button -> [New...] Button
Variable name: M4PATH
Variable value: C:\Users\<username>\texmf
Copy all the (M4) Circuit_Macros libraries, e.g.:
as well as the LaTeX style file,
to: /home/<username>/texmf/tex/latex/circuit_macros
Add the following lines to your .bashrc file
... export M4PATH='/usr/local/share/texmf/tex/latex/circuit_macros/' export TEXMFHOME=$HOME/texmf ...
The first line is necessary to automatically "register" the M4 libraries' location each time you run the shell and the second (if not already present) to add a local TDS (TeX Directory Structure) tree.
Finally, running
> sudo texhash
is required to "register" boxdims.sty in LaTeX's File Name Database.
One can theoretically copy the (M4) Circuit_Macros libraries anywhere, but because it is available on CTAN, I prefer to copy it into LaTeX's TDS
Download dpic.tar.gz, run:
> tar -xzf dpic.tar.gz > cd dpic > make
Make sure dpic executable, e.g.:
> chmod 755 dpic
and copy to:
or any other location in your executable path.