Properly installing circuit_macros on a Windows PC
I am using WINDOWS 8.1, am a REAL BEGINNER with circuit_macros, a tool for creating circuit diagrams using M4 macros written by Dwight Aplevich. I realized that the support for Windows is very limited since most of the avalaible documentation are for UNIX and GNU/Linux users.
I am using Miktex 2.9 with Texmaker 5.0.2 on Windows 8.1.According to the installation instructions, here is what I have done so far:
Download the executable of dpic (pic interpreter) from
https://ece.uwaterloo.ca/~aplevich/dpic/Windows/index.html (THIS STEP IS DONE)
I put the two executables filesdpic.exeandm4.exeto a folder at:
C:dpic
Then I added do the Path the above-mentioned folder from the "View Advanced System Settings" menu, so that I execute the programs from the Command Prompt no matter in which folder I am.Download and install a m4 macro interpreter.
Still according to Aplevich's instructions on the repository, one may download a program from the sourceforge website at:
http://gnuwin32.sourceforge.net/packages/m4.htm (STEP DONE)Download and unzip the circuit_macros distrubiton from CTAN (THIS STEP IS DONE)
Decide where to install the .m4 library files (THIS STEP IS DONE)
In accordance with what is suggested on the README file, I created the localtexmf folder at C:localtexmfCircuit_macros and copied the donwnloaded unzipped files of the distrubition to the target folder.
Copy boxdims.sty from the top
distribution directory to where LaTeX will find it (THIS STEP IS DONE)
In my case, I pasted it at newly-created folder called "boxdims" at
C:UsersmandresybillyAppDataLocalProgramsMiKTeX2.9miktextexlatexboxdims
After that, I opened the MikTex console and from the upper-left menus, I clicked on Tasks>Refresh file name database.
Define the environment variable M4PATH to point to the installation
directory determined in Step 1. (THIS STEP IS DONE)
In the Control Panel at "View Advanced System Settings", I created a new environment variable called M4PATH and attributed its value:
C:localtexmfCircuit_macros
Now, my installation works but does not FULLY work. When I create an elementary circuit as a .m4 file and run the appropriate command, the .m4 file converts to tex. So, from Windows's command prompt, the following creates "filename.tex":
m4 filename.m4 | dpic -g>filename.tex
Yet, I cannot invoke m4 and dpic automatically from a latex document directly. Let us say here is the latex code
documentclass{article}
usepackage{tikz}
newcommandmtotex[2]{immediatewrite18{m4 #2.m4 | dpic -#1 > #2.tex}}
begin{document}
mtotex{g}{filename} %This line should create filename.tex from filename.m4
input{filename.tex}
end{document}
For some reasons, the above MWE returns an error all the time, meaning that there must be a problem in the installation. Did I miss something?
I would be immensely appreciative if someone can make a comprehensive step-by-step, for dummies-like list of instructions of how to get circuit_macrosup and running on Windows systems. Thanks in advance.
circuits engineering
add a comment |
I am using WINDOWS 8.1, am a REAL BEGINNER with circuit_macros, a tool for creating circuit diagrams using M4 macros written by Dwight Aplevich. I realized that the support for Windows is very limited since most of the avalaible documentation are for UNIX and GNU/Linux users.
I am using Miktex 2.9 with Texmaker 5.0.2 on Windows 8.1.According to the installation instructions, here is what I have done so far:
Download the executable of dpic (pic interpreter) from
https://ece.uwaterloo.ca/~aplevich/dpic/Windows/index.html (THIS STEP IS DONE)
I put the two executables filesdpic.exeandm4.exeto a folder at:
C:dpic
Then I added do the Path the above-mentioned folder from the "View Advanced System Settings" menu, so that I execute the programs from the Command Prompt no matter in which folder I am.Download and install a m4 macro interpreter.
Still according to Aplevich's instructions on the repository, one may download a program from the sourceforge website at:
http://gnuwin32.sourceforge.net/packages/m4.htm (STEP DONE)Download and unzip the circuit_macros distrubiton from CTAN (THIS STEP IS DONE)
Decide where to install the .m4 library files (THIS STEP IS DONE)
In accordance with what is suggested on the README file, I created the localtexmf folder at C:localtexmfCircuit_macros and copied the donwnloaded unzipped files of the distrubition to the target folder.
Copy boxdims.sty from the top
distribution directory to where LaTeX will find it (THIS STEP IS DONE)
In my case, I pasted it at newly-created folder called "boxdims" at
C:UsersmandresybillyAppDataLocalProgramsMiKTeX2.9miktextexlatexboxdims
After that, I opened the MikTex console and from the upper-left menus, I clicked on Tasks>Refresh file name database.
Define the environment variable M4PATH to point to the installation
directory determined in Step 1. (THIS STEP IS DONE)
In the Control Panel at "View Advanced System Settings", I created a new environment variable called M4PATH and attributed its value:
C:localtexmfCircuit_macros
Now, my installation works but does not FULLY work. When I create an elementary circuit as a .m4 file and run the appropriate command, the .m4 file converts to tex. So, from Windows's command prompt, the following creates "filename.tex":
m4 filename.m4 | dpic -g>filename.tex
Yet, I cannot invoke m4 and dpic automatically from a latex document directly. Let us say here is the latex code
documentclass{article}
usepackage{tikz}
newcommandmtotex[2]{immediatewrite18{m4 #2.m4 | dpic -#1 > #2.tex}}
begin{document}
mtotex{g}{filename} %This line should create filename.tex from filename.m4
input{filename.tex}
end{document}
For some reasons, the above MWE returns an error all the time, meaning that there must be a problem in the installation. Did I miss something?
I would be immensely appreciative if someone can make a comprehensive step-by-step, for dummies-like list of instructions of how to get circuit_macrosup and running on Windows systems. Thanks in advance.
circuits engineering
Crosspost
– Johannes_B
20 hours ago
@Johannes_B Please go ahead and delete my post on latex.org forum, it was a clumsy move from me.
– mandresybilly
14 hours ago
1
@mandresybilly Maybe "tex.stackexchange.com/questions/156794/…" may be a start point?
– jotagah
13 hours ago
@jotagah Thank you for the advice.One link on the accepted answer seems to have an installation guide but unfortunately, that link is no more working now.
– mandresybilly
10 hours ago
add a comment |
I am using WINDOWS 8.1, am a REAL BEGINNER with circuit_macros, a tool for creating circuit diagrams using M4 macros written by Dwight Aplevich. I realized that the support for Windows is very limited since most of the avalaible documentation are for UNIX and GNU/Linux users.
I am using Miktex 2.9 with Texmaker 5.0.2 on Windows 8.1.According to the installation instructions, here is what I have done so far:
Download the executable of dpic (pic interpreter) from
https://ece.uwaterloo.ca/~aplevich/dpic/Windows/index.html (THIS STEP IS DONE)
I put the two executables filesdpic.exeandm4.exeto a folder at:
C:dpic
Then I added do the Path the above-mentioned folder from the "View Advanced System Settings" menu, so that I execute the programs from the Command Prompt no matter in which folder I am.Download and install a m4 macro interpreter.
Still according to Aplevich's instructions on the repository, one may download a program from the sourceforge website at:
http://gnuwin32.sourceforge.net/packages/m4.htm (STEP DONE)Download and unzip the circuit_macros distrubiton from CTAN (THIS STEP IS DONE)
Decide where to install the .m4 library files (THIS STEP IS DONE)
In accordance with what is suggested on the README file, I created the localtexmf folder at C:localtexmfCircuit_macros and copied the donwnloaded unzipped files of the distrubition to the target folder.
Copy boxdims.sty from the top
distribution directory to where LaTeX will find it (THIS STEP IS DONE)
In my case, I pasted it at newly-created folder called "boxdims" at
C:UsersmandresybillyAppDataLocalProgramsMiKTeX2.9miktextexlatexboxdims
After that, I opened the MikTex console and from the upper-left menus, I clicked on Tasks>Refresh file name database.
Define the environment variable M4PATH to point to the installation
directory determined in Step 1. (THIS STEP IS DONE)
In the Control Panel at "View Advanced System Settings", I created a new environment variable called M4PATH and attributed its value:
C:localtexmfCircuit_macros
Now, my installation works but does not FULLY work. When I create an elementary circuit as a .m4 file and run the appropriate command, the .m4 file converts to tex. So, from Windows's command prompt, the following creates "filename.tex":
m4 filename.m4 | dpic -g>filename.tex
Yet, I cannot invoke m4 and dpic automatically from a latex document directly. Let us say here is the latex code
documentclass{article}
usepackage{tikz}
newcommandmtotex[2]{immediatewrite18{m4 #2.m4 | dpic -#1 > #2.tex}}
begin{document}
mtotex{g}{filename} %This line should create filename.tex from filename.m4
input{filename.tex}
end{document}
For some reasons, the above MWE returns an error all the time, meaning that there must be a problem in the installation. Did I miss something?
I would be immensely appreciative if someone can make a comprehensive step-by-step, for dummies-like list of instructions of how to get circuit_macrosup and running on Windows systems. Thanks in advance.
circuits engineering
I am using WINDOWS 8.1, am a REAL BEGINNER with circuit_macros, a tool for creating circuit diagrams using M4 macros written by Dwight Aplevich. I realized that the support for Windows is very limited since most of the avalaible documentation are for UNIX and GNU/Linux users.
I am using Miktex 2.9 with Texmaker 5.0.2 on Windows 8.1.According to the installation instructions, here is what I have done so far:
Download the executable of dpic (pic interpreter) from
https://ece.uwaterloo.ca/~aplevich/dpic/Windows/index.html (THIS STEP IS DONE)
I put the two executables filesdpic.exeandm4.exeto a folder at:
C:dpic
Then I added do the Path the above-mentioned folder from the "View Advanced System Settings" menu, so that I execute the programs from the Command Prompt no matter in which folder I am.Download and install a m4 macro interpreter.
Still according to Aplevich's instructions on the repository, one may download a program from the sourceforge website at:
http://gnuwin32.sourceforge.net/packages/m4.htm (STEP DONE)Download and unzip the circuit_macros distrubiton from CTAN (THIS STEP IS DONE)
Decide where to install the .m4 library files (THIS STEP IS DONE)
In accordance with what is suggested on the README file, I created the localtexmf folder at C:localtexmfCircuit_macros and copied the donwnloaded unzipped files of the distrubition to the target folder.
Copy boxdims.sty from the top
distribution directory to where LaTeX will find it (THIS STEP IS DONE)
In my case, I pasted it at newly-created folder called "boxdims" at
C:UsersmandresybillyAppDataLocalProgramsMiKTeX2.9miktextexlatexboxdims
After that, I opened the MikTex console and from the upper-left menus, I clicked on Tasks>Refresh file name database.
Define the environment variable M4PATH to point to the installation
directory determined in Step 1. (THIS STEP IS DONE)
In the Control Panel at "View Advanced System Settings", I created a new environment variable called M4PATH and attributed its value:
C:localtexmfCircuit_macros
Now, my installation works but does not FULLY work. When I create an elementary circuit as a .m4 file and run the appropriate command, the .m4 file converts to tex. So, from Windows's command prompt, the following creates "filename.tex":
m4 filename.m4 | dpic -g>filename.tex
Yet, I cannot invoke m4 and dpic automatically from a latex document directly. Let us say here is the latex code
documentclass{article}
usepackage{tikz}
newcommandmtotex[2]{immediatewrite18{m4 #2.m4 | dpic -#1 > #2.tex}}
begin{document}
mtotex{g}{filename} %This line should create filename.tex from filename.m4
input{filename.tex}
end{document}
For some reasons, the above MWE returns an error all the time, meaning that there must be a problem in the installation. Did I miss something?
I would be immensely appreciative if someone can make a comprehensive step-by-step, for dummies-like list of instructions of how to get circuit_macrosup and running on Windows systems. Thanks in advance.
circuits engineering
circuits engineering
edited 2 hours ago
mandresybilly
asked yesterday
mandresybillymandresybilly
16912
16912
Crosspost
– Johannes_B
20 hours ago
@Johannes_B Please go ahead and delete my post on latex.org forum, it was a clumsy move from me.
– mandresybilly
14 hours ago
1
@mandresybilly Maybe "tex.stackexchange.com/questions/156794/…" may be a start point?
– jotagah
13 hours ago
@jotagah Thank you for the advice.One link on the accepted answer seems to have an installation guide but unfortunately, that link is no more working now.
– mandresybilly
10 hours ago
add a comment |
Crosspost
– Johannes_B
20 hours ago
@Johannes_B Please go ahead and delete my post on latex.org forum, it was a clumsy move from me.
– mandresybilly
14 hours ago
1
@mandresybilly Maybe "tex.stackexchange.com/questions/156794/…" may be a start point?
– jotagah
13 hours ago
@jotagah Thank you for the advice.One link on the accepted answer seems to have an installation guide but unfortunately, that link is no more working now.
– mandresybilly
10 hours ago
Crosspost
– Johannes_B
20 hours ago
Crosspost
– Johannes_B
20 hours ago
@Johannes_B Please go ahead and delete my post on latex.org forum, it was a clumsy move from me.
– mandresybilly
14 hours ago
@Johannes_B Please go ahead and delete my post on latex.org forum, it was a clumsy move from me.
– mandresybilly
14 hours ago
1
1
@mandresybilly Maybe "tex.stackexchange.com/questions/156794/…" may be a start point?
– jotagah
13 hours ago
@mandresybilly Maybe "tex.stackexchange.com/questions/156794/…" may be a start point?
– jotagah
13 hours ago
@jotagah Thank you for the advice.One link on the accepted answer seems to have an installation guide but unfortunately, that link is no more working now.
– mandresybilly
10 hours ago
@jotagah Thank you for the advice.One link on the accepted answer seems to have an installation guide but unfortunately, that link is no more working now.
– mandresybilly
10 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f470471%2fproperly-installing-circuit-macros-on-a-windows-pc%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f470471%2fproperly-installing-circuit-macros-on-a-windows-pc%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Crosspost
– Johannes_B
20 hours ago
@Johannes_B Please go ahead and delete my post on latex.org forum, it was a clumsy move from me.
– mandresybilly
14 hours ago
1
@mandresybilly Maybe "tex.stackexchange.com/questions/156794/…" may be a start point?
– jotagah
13 hours ago
@jotagah Thank you for the advice.One link on the accepted answer seems to have an installation guide but unfortunately, that link is no more working now.
– mandresybilly
10 hours ago