How to make textpm (or pm) monospaced

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












Is it possible to typeset the symbol textpm (or the equivalent math operator pm) using a monospaced font?



I would like to compile something like texttttextpm without errors.



MWE:



documentclassarticle

begindocument
texttttextpm
enddocument


The error is Undefined control sequence.










share|improve this question























  • It works for me with no packages. Please provide a minimal working example (MWE) that produces that error.
    – Phelype Oleinik
    1 hour ago










  • @PhelypeOleinik I get “Undefined control sequence”, without packages.
    – egreg
    1 hour ago










  • I removed all the packages and I get "Undefined control sequence". I'm trying to figure out which package makes LaTeX to produce a different error. I edit the question.
    – BlackBrain
    1 hour ago










  • @egreg Oops... The one time I compile using the GUI it goes wrong :P
    – Phelype Oleinik
    38 mins ago














up vote
3
down vote

favorite












Is it possible to typeset the symbol textpm (or the equivalent math operator pm) using a monospaced font?



I would like to compile something like texttttextpm without errors.



MWE:



documentclassarticle

begindocument
texttttextpm
enddocument


The error is Undefined control sequence.










share|improve this question























  • It works for me with no packages. Please provide a minimal working example (MWE) that produces that error.
    – Phelype Oleinik
    1 hour ago










  • @PhelypeOleinik I get “Undefined control sequence”, without packages.
    – egreg
    1 hour ago










  • I removed all the packages and I get "Undefined control sequence". I'm trying to figure out which package makes LaTeX to produce a different error. I edit the question.
    – BlackBrain
    1 hour ago










  • @egreg Oops... The one time I compile using the GUI it goes wrong :P
    – Phelype Oleinik
    38 mins ago












up vote
3
down vote

favorite









up vote
3
down vote

favorite











Is it possible to typeset the symbol textpm (or the equivalent math operator pm) using a monospaced font?



I would like to compile something like texttttextpm without errors.



MWE:



documentclassarticle

begindocument
texttttextpm
enddocument


The error is Undefined control sequence.










share|improve this question















Is it possible to typeset the symbol textpm (or the equivalent math operator pm) using a monospaced font?



I would like to compile something like texttttextpm without errors.



MWE:



documentclassarticle

begindocument
texttttextpm
enddocument


The error is Undefined control sequence.







fonts symbols typewriter






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago

























asked 1 hour ago









BlackBrain

304310




304310











  • It works for me with no packages. Please provide a minimal working example (MWE) that produces that error.
    – Phelype Oleinik
    1 hour ago










  • @PhelypeOleinik I get “Undefined control sequence”, without packages.
    – egreg
    1 hour ago










  • I removed all the packages and I get "Undefined control sequence". I'm trying to figure out which package makes LaTeX to produce a different error. I edit the question.
    – BlackBrain
    1 hour ago










  • @egreg Oops... The one time I compile using the GUI it goes wrong :P
    – Phelype Oleinik
    38 mins ago
















  • It works for me with no packages. Please provide a minimal working example (MWE) that produces that error.
    – Phelype Oleinik
    1 hour ago










  • @PhelypeOleinik I get “Undefined control sequence”, without packages.
    – egreg
    1 hour ago










  • I removed all the packages and I get "Undefined control sequence". I'm trying to figure out which package makes LaTeX to produce a different error. I edit the question.
    – BlackBrain
    1 hour ago










  • @egreg Oops... The one time I compile using the GUI it goes wrong :P
    – Phelype Oleinik
    38 mins ago















It works for me with no packages. Please provide a minimal working example (MWE) that produces that error.
– Phelype Oleinik
1 hour ago




It works for me with no packages. Please provide a minimal working example (MWE) that produces that error.
– Phelype Oleinik
1 hour ago












@PhelypeOleinik I get “Undefined control sequence”, without packages.
– egreg
1 hour ago




@PhelypeOleinik I get “Undefined control sequence”, without packages.
– egreg
1 hour ago












I removed all the packages and I get "Undefined control sequence". I'm trying to figure out which package makes LaTeX to produce a different error. I edit the question.
– BlackBrain
1 hour ago




I removed all the packages and I get "Undefined control sequence". I'm trying to figure out which package makes LaTeX to produce a different error. I edit the question.
– BlackBrain
1 hour ago












@egreg Oops... The one time I compile using the GUI it goes wrong :P
– Phelype Oleinik
38 mins ago




@egreg Oops... The one time I compile using the GUI it goes wrong :P
– Phelype Oleinik
38 mins ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










You need to load textcomp. Better defining a suitable command.



documentclassarticle
usepackagetextcomp

newcommandttpmtextnormaltexttttextpm

begindocument

ttpm

enddocument





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%2f458809%2fhow-to-make-textpm-or-pm-monospaced%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote



    accepted










    You need to load textcomp. Better defining a suitable command.



    documentclassarticle
    usepackagetextcomp

    newcommandttpmtextnormaltexttttextpm

    begindocument

    ttpm

    enddocument





    share|improve this answer
























      up vote
      3
      down vote



      accepted










      You need to load textcomp. Better defining a suitable command.



      documentclassarticle
      usepackagetextcomp

      newcommandttpmtextnormaltexttttextpm

      begindocument

      ttpm

      enddocument





      share|improve this answer






















        up vote
        3
        down vote



        accepted







        up vote
        3
        down vote



        accepted






        You need to load textcomp. Better defining a suitable command.



        documentclassarticle
        usepackagetextcomp

        newcommandttpmtextnormaltexttttextpm

        begindocument

        ttpm

        enddocument





        share|improve this answer












        You need to load textcomp. Better defining a suitable command.



        documentclassarticle
        usepackagetextcomp

        newcommandttpmtextnormaltexttttextpm

        begindocument

        ttpm

        enddocument






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 1 hour ago









        egreg

        695k8518443101




        695k8518443101



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f458809%2fhow-to-make-textpm-or-pm-monospaced%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            Installing NextGIS Connect into QGIS 3?

            One-line joke