How does PMX work?











up vote
1
down vote

favorite












I need to implement music into a LaTeX document and MusiXTeX is difficult to understand. So I opted to use PMX. I've read the documentation for PMX and I think I've figured out how to write a .pmx file. However, what confuses me is how to actually turn the .pmx into something usable by LaTeX. It says to run pmxab, but it doesn't really provide step by step instructions on how to actually do so. Also, it says:




The preamble ends with a line that contains the path name of the directory to which you
want the files (the .tex file, in particular) to be written when pmxab processes your source
text.




However, do I write the folder that the .tex file is in, or the name of the .tex file?



Edit:



Here is a sample pmx file that I wrote. I would like to know if it is written correctly.



1 1
3 4
3 4
0 1
0 4 16 0

./

e4d b8 e fs | g4 fs e | d4d e8 d4 | b2d //









share|improve this question
























  • Are you aware of LilyPond? It seems that this might be a preferable tool to use. The issue with .pmx is that it produces a plain TeX file (not LaTeX) so integration into a LaTeX document is not straightforward.
    – Alan Munn
    yesterday












  • @AlanMunn I know lilypond. However, I didn't know that you could implement lilypond into LaTeX. Is there a package or something?
    – Ilyankor
    yesterday















up vote
1
down vote

favorite












I need to implement music into a LaTeX document and MusiXTeX is difficult to understand. So I opted to use PMX. I've read the documentation for PMX and I think I've figured out how to write a .pmx file. However, what confuses me is how to actually turn the .pmx into something usable by LaTeX. It says to run pmxab, but it doesn't really provide step by step instructions on how to actually do so. Also, it says:




The preamble ends with a line that contains the path name of the directory to which you
want the files (the .tex file, in particular) to be written when pmxab processes your source
text.




However, do I write the folder that the .tex file is in, or the name of the .tex file?



Edit:



Here is a sample pmx file that I wrote. I would like to know if it is written correctly.



1 1
3 4
3 4
0 1
0 4 16 0

./

e4d b8 e fs | g4 fs e | d4d e8 d4 | b2d //









share|improve this question
























  • Are you aware of LilyPond? It seems that this might be a preferable tool to use. The issue with .pmx is that it produces a plain TeX file (not LaTeX) so integration into a LaTeX document is not straightforward.
    – Alan Munn
    yesterday












  • @AlanMunn I know lilypond. However, I didn't know that you could implement lilypond into LaTeX. Is there a package or something?
    – Ilyankor
    yesterday













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I need to implement music into a LaTeX document and MusiXTeX is difficult to understand. So I opted to use PMX. I've read the documentation for PMX and I think I've figured out how to write a .pmx file. However, what confuses me is how to actually turn the .pmx into something usable by LaTeX. It says to run pmxab, but it doesn't really provide step by step instructions on how to actually do so. Also, it says:




The preamble ends with a line that contains the path name of the directory to which you
want the files (the .tex file, in particular) to be written when pmxab processes your source
text.




However, do I write the folder that the .tex file is in, or the name of the .tex file?



Edit:



Here is a sample pmx file that I wrote. I would like to know if it is written correctly.



1 1
3 4
3 4
0 1
0 4 16 0

./

e4d b8 e fs | g4 fs e | d4d e8 d4 | b2d //









share|improve this question















I need to implement music into a LaTeX document and MusiXTeX is difficult to understand. So I opted to use PMX. I've read the documentation for PMX and I think I've figured out how to write a .pmx file. However, what confuses me is how to actually turn the .pmx into something usable by LaTeX. It says to run pmxab, but it doesn't really provide step by step instructions on how to actually do so. Also, it says:




The preamble ends with a line that contains the path name of the directory to which you
want the files (the .tex file, in particular) to be written when pmxab processes your source
text.




However, do I write the folder that the .tex file is in, or the name of the .tex file?



Edit:



Here is a sample pmx file that I wrote. I would like to know if it is written correctly.



1 1
3 4
3 4
0 1
0 4 16 0

./

e4d b8 e fs | g4 fs e | d4d e8 d4 | b2d //






music musixtex pmx






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Alan Munn

157k27421695




157k27421695










asked yesterday









Ilyankor

747




747












  • Are you aware of LilyPond? It seems that this might be a preferable tool to use. The issue with .pmx is that it produces a plain TeX file (not LaTeX) so integration into a LaTeX document is not straightforward.
    – Alan Munn
    yesterday












  • @AlanMunn I know lilypond. However, I didn't know that you could implement lilypond into LaTeX. Is there a package or something?
    – Ilyankor
    yesterday


















  • Are you aware of LilyPond? It seems that this might be a preferable tool to use. The issue with .pmx is that it produces a plain TeX file (not LaTeX) so integration into a LaTeX document is not straightforward.
    – Alan Munn
    yesterday












  • @AlanMunn I know lilypond. However, I didn't know that you could implement lilypond into LaTeX. Is there a package or something?
    – Ilyankor
    yesterday
















Are you aware of LilyPond? It seems that this might be a preferable tool to use. The issue with .pmx is that it produces a plain TeX file (not LaTeX) so integration into a LaTeX document is not straightforward.
– Alan Munn
yesterday






Are you aware of LilyPond? It seems that this might be a preferable tool to use. The issue with .pmx is that it produces a plain TeX file (not LaTeX) so integration into a LaTeX document is not straightforward.
– Alan Munn
yesterday














@AlanMunn I know lilypond. However, I didn't know that you could implement lilypond into LaTeX. Is there a package or something?
– Ilyankor
yesterday




@AlanMunn I know lilypond. However, I didn't know that you could implement lilypond into LaTeX. Is there a package or something?
– Ilyankor
yesterday










1 Answer
1






active

oldest

votes

















up vote
1
down vote













The following .pmx file produces proper output. I don't know enough about PMX input to give you more pointers, however. I have added a clef, and changed the final // to /. This was created with the command line command



 `musixtex <filename>.pmx` 


where <filename> is your .pmx file name, e.g. if your file is foo.pmx then you use musixtex foo.pmx.



1 1
3 4
3 4
0 1
0 4 16 0

t % clef added here
./

e4d b8 e fs | g4 fs e | d4d e8 d4 | b2d /


The directory in which the .tex file will be written is notated by the ./ line at the end of the preamble. If you create a directory mytex inside the directory where the .pmx file is, then you could use ./mytex/ (final / is required), and the .tex file will be written to the mytex directory. This directory must exist beforehand; it will not be created for you.



ouptut of code






share|improve this answer























    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',
    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
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461314%2fhow-does-pmx-work%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    The following .pmx file produces proper output. I don't know enough about PMX input to give you more pointers, however. I have added a clef, and changed the final // to /. This was created with the command line command



     `musixtex <filename>.pmx` 


    where <filename> is your .pmx file name, e.g. if your file is foo.pmx then you use musixtex foo.pmx.



    1 1
    3 4
    3 4
    0 1
    0 4 16 0

    t % clef added here
    ./

    e4d b8 e fs | g4 fs e | d4d e8 d4 | b2d /


    The directory in which the .tex file will be written is notated by the ./ line at the end of the preamble. If you create a directory mytex inside the directory where the .pmx file is, then you could use ./mytex/ (final / is required), and the .tex file will be written to the mytex directory. This directory must exist beforehand; it will not be created for you.



    ouptut of code






    share|improve this answer



























      up vote
      1
      down vote













      The following .pmx file produces proper output. I don't know enough about PMX input to give you more pointers, however. I have added a clef, and changed the final // to /. This was created with the command line command



       `musixtex <filename>.pmx` 


      where <filename> is your .pmx file name, e.g. if your file is foo.pmx then you use musixtex foo.pmx.



      1 1
      3 4
      3 4
      0 1
      0 4 16 0

      t % clef added here
      ./

      e4d b8 e fs | g4 fs e | d4d e8 d4 | b2d /


      The directory in which the .tex file will be written is notated by the ./ line at the end of the preamble. If you create a directory mytex inside the directory where the .pmx file is, then you could use ./mytex/ (final / is required), and the .tex file will be written to the mytex directory. This directory must exist beforehand; it will not be created for you.



      ouptut of code






      share|improve this answer

























        up vote
        1
        down vote










        up vote
        1
        down vote









        The following .pmx file produces proper output. I don't know enough about PMX input to give you more pointers, however. I have added a clef, and changed the final // to /. This was created with the command line command



         `musixtex <filename>.pmx` 


        where <filename> is your .pmx file name, e.g. if your file is foo.pmx then you use musixtex foo.pmx.



        1 1
        3 4
        3 4
        0 1
        0 4 16 0

        t % clef added here
        ./

        e4d b8 e fs | g4 fs e | d4d e8 d4 | b2d /


        The directory in which the .tex file will be written is notated by the ./ line at the end of the preamble. If you create a directory mytex inside the directory where the .pmx file is, then you could use ./mytex/ (final / is required), and the .tex file will be written to the mytex directory. This directory must exist beforehand; it will not be created for you.



        ouptut of code






        share|improve this answer














        The following .pmx file produces proper output. I don't know enough about PMX input to give you more pointers, however. I have added a clef, and changed the final // to /. This was created with the command line command



         `musixtex <filename>.pmx` 


        where <filename> is your .pmx file name, e.g. if your file is foo.pmx then you use musixtex foo.pmx.



        1 1
        3 4
        3 4
        0 1
        0 4 16 0

        t % clef added here
        ./

        e4d b8 e fs | g4 fs e | d4d e8 d4 | b2d /


        The directory in which the .tex file will be written is notated by the ./ line at the end of the preamble. If you create a directory mytex inside the directory where the .pmx file is, then you could use ./mytex/ (final / is required), and the .tex file will be written to the mytex directory. This directory must exist beforehand; it will not be created for you.



        ouptut of code







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited yesterday

























        answered yesterday









        Alan Munn

        157k27421695




        157k27421695






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461314%2fhow-does-pmx-work%23new-answer', 'question_page');
            }
            );

            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







            Popular posts from this blog

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt