Multiple options for PseudonymsEffective way to anonymise interviewee identities for academic researchWhen to use edef, noexpand, and expandafter?Passing a TikZ matrix to a TeX macroRunaway argument error when creating a macro for code that works outside a macroLine break (continuation) for commands (options, arguments)Duplicating EnvironmentsInserting macros mixed with static optionscreating custom function for imagesMultiple Environment OptionsNested macro definition seems to not expand argumentPassing arguments to a macro hidden in the text

Can not tell colimits from limits

gnu parallel how to use with ffmpeg

Why is the origin of “threshold” uncertain?

What is the strongest case that can be made in favour of the UK regaining some control over fishing policy after Brexit?

Counterexample: a pair of linearly ordered sets that are isomorphic to subsets of the other, but not isomorphic between them

Minimum value of 4 digit number divided by sum of its digits

Why was Germany not as successful as other Europeans in establishing overseas colonies?

Pressure to defend the relevance of one's area of mathematics

What does YCWCYODFTRFDTY mean?

Modify locally tikzset

How to set the font color of quantity objects (Version 11.3 vs version 12)?

What's the polite way to say "I need to urinate"?

Stateful vs non-stateful app

Is it possible to measure lightning discharges as Nikola Tesla?

How to verbalise code in Mathematica?

Any examples of headwear for races with animal ears?

Reverse the word in a string with the same order in javascript

Do I have an "anti-research" personality?

Upright [...] in italics quotation

Mysql fixing root password

Multiple options for Pseudonyms

How to back up a running remote server?

Is creating your own "experiment" considered cheating during a physics exam?

Why do computer-science majors learn calculus?



Multiple options for Pseudonyms


Effective way to anonymise interviewee identities for academic researchWhen to use edef, noexpand, and expandafter?Passing a TikZ matrix to a TeX macroRunaway argument error when creating a macro for code that works outside a macroLine break (continuation) for commands (options, arguments)Duplicating EnvironmentsInserting macros mixed with static optionscreating custom function for imagesMultiple Environment OptionsNested macro definition seems to not expand argumentPassing arguments to a macro hidden in the text













1















I'm looking for something fairly similar to this problem, of defining macros to print pseudonyms for people, but I'm not sure how to modify it (or if it is actually the right approach for what I'm after).



What I'm hoping for is to have a macros that are identifiers for people like AnGo



When issued as is it should print a pseudonym, so
AnGo >> "Edwin Smith"



When issued with an option [sh] to print a short form
AnGo[sh] >> "Ted"



Another option [real] to print the actual name...
AnGo[real] >> "Antonio Gonzales"



What would be the best approach here?










share|improve this question


























    1















    I'm looking for something fairly similar to this problem, of defining macros to print pseudonyms for people, but I'm not sure how to modify it (or if it is actually the right approach for what I'm after).



    What I'm hoping for is to have a macros that are identifiers for people like AnGo



    When issued as is it should print a pseudonym, so
    AnGo >> "Edwin Smith"



    When issued with an option [sh] to print a short form
    AnGo[sh] >> "Ted"



    Another option [real] to print the actual name...
    AnGo[real] >> "Antonio Gonzales"



    What would be the best approach here?










    share|improve this question
























      1












      1








      1








      I'm looking for something fairly similar to this problem, of defining macros to print pseudonyms for people, but I'm not sure how to modify it (or if it is actually the right approach for what I'm after).



      What I'm hoping for is to have a macros that are identifiers for people like AnGo



      When issued as is it should print a pseudonym, so
      AnGo >> "Edwin Smith"



      When issued with an option [sh] to print a short form
      AnGo[sh] >> "Ted"



      Another option [real] to print the actual name...
      AnGo[real] >> "Antonio Gonzales"



      What would be the best approach here?










      share|improve this question














      I'm looking for something fairly similar to this problem, of defining macros to print pseudonyms for people, but I'm not sure how to modify it (or if it is actually the right approach for what I'm after).



      What I'm hoping for is to have a macros that are identifiers for people like AnGo



      When issued as is it should print a pseudonym, so
      AnGo >> "Edwin Smith"



      When issued with an option [sh] to print a short form
      AnGo[sh] >> "Ted"



      Another option [real] to print the actual name...
      AnGo[real] >> "Antonio Gonzales"



      What would be the best approach here?







      macros options






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      janjan

      1,1651519




      1,1651519




















          1 Answer
          1






          active

          oldest

          votes


















          2














          This is a possible solution:



          documentclassarticle
          usepackagexparse

          ExplSyntaxOn
          NewDocumentCommanddefinepseudonymmmmm
          % #1 = command, #2 = pseudonym, #3 = short name, #4 = real name
          NewDocumentCommand#1Opseudonym

          str_case:nn ##1

          pseudonym#2
          sh#3
          real#4



          ExplSyntaxOff

          definepseudonymAnGoEdwin SmithTedAntonio Gonzalez

          begindocument

          AnGo[real] was known as AnGo abbreviated in AnGo[sh].

          enddocument


          enter image description here






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



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f488147%2fmultiple-options-for-pseudonyms%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









            2














            This is a possible solution:



            documentclassarticle
            usepackagexparse

            ExplSyntaxOn
            NewDocumentCommanddefinepseudonymmmmm
            % #1 = command, #2 = pseudonym, #3 = short name, #4 = real name
            NewDocumentCommand#1Opseudonym

            str_case:nn ##1

            pseudonym#2
            sh#3
            real#4



            ExplSyntaxOff

            definepseudonymAnGoEdwin SmithTedAntonio Gonzalez

            begindocument

            AnGo[real] was known as AnGo abbreviated in AnGo[sh].

            enddocument


            enter image description here






            share|improve this answer



























              2














              This is a possible solution:



              documentclassarticle
              usepackagexparse

              ExplSyntaxOn
              NewDocumentCommanddefinepseudonymmmmm
              % #1 = command, #2 = pseudonym, #3 = short name, #4 = real name
              NewDocumentCommand#1Opseudonym

              str_case:nn ##1

              pseudonym#2
              sh#3
              real#4



              ExplSyntaxOff

              definepseudonymAnGoEdwin SmithTedAntonio Gonzalez

              begindocument

              AnGo[real] was known as AnGo abbreviated in AnGo[sh].

              enddocument


              enter image description here






              share|improve this answer

























                2












                2








                2







                This is a possible solution:



                documentclassarticle
                usepackagexparse

                ExplSyntaxOn
                NewDocumentCommanddefinepseudonymmmmm
                % #1 = command, #2 = pseudonym, #3 = short name, #4 = real name
                NewDocumentCommand#1Opseudonym

                str_case:nn ##1

                pseudonym#2
                sh#3
                real#4



                ExplSyntaxOff

                definepseudonymAnGoEdwin SmithTedAntonio Gonzalez

                begindocument

                AnGo[real] was known as AnGo abbreviated in AnGo[sh].

                enddocument


                enter image description here






                share|improve this answer













                This is a possible solution:



                documentclassarticle
                usepackagexparse

                ExplSyntaxOn
                NewDocumentCommanddefinepseudonymmmmm
                % #1 = command, #2 = pseudonym, #3 = short name, #4 = real name
                NewDocumentCommand#1Opseudonym

                str_case:nn ##1

                pseudonym#2
                sh#3
                real#4



                ExplSyntaxOff

                definepseudonymAnGoEdwin SmithTedAntonio Gonzalez

                begindocument

                AnGo[real] was known as AnGo abbreviated in AnGo[sh].

                enddocument


                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                egregegreg

                737k8919393269




                737k8919393269



























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f488147%2fmultiple-options-for-pseudonyms%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

                    Jet Time Laivasto | Lähteet | Aiheesta muualla | NavigointivalikkoJet Time - The CompanyThe CompanyManagementJet Time aloittaa lauantaina Suomi-rekisterissä olevalla Boeing 737 -koneellaJettime Finland Fleet Details and HistoryJettime Fleet Details and HistoryRegional Jet OÜ takes over ATR production for SASJet Time Returns To Its Core BusinessYhtiön kotisivutlaajentamalla

                    Olympian arkeologinen museo Sisällysluettelo Historia ja rakennus | Kokoelmat | Lähteet | Aiheesta muualla | Navigointivalikko37°38′36″N, 21°37′46″EInfobox OKArchaeological Museum of Olympia: HistoryArchaeological Museum of Olympia: DescriptionΜουσείο Ιστορίας των Ολυμπιακών Αγώνων της Αρχαιότητας: ΙστορικόArchaeological Museum of Olympia

                    Äpy Sisällysluettelo Äpyt kautta historian | Esimerkkejä Äpy-huumorista | Katso myös | Kirjallisuutta | Aiheesta muualla | Navigointivalikkowww.äpy.fi