Multiple options for PseudonymsEffective way to anonymise interviewee identities for academic researchWhen to...
Single Colour Mastermind Problem
You look catfish vs You look like a catfish
Electric guitar: why such heavy pots?
What are the spoon bit of a spoon and fork bit of a fork called?
How to figure out whether the data is sample data or population data apart from the client's information?
Can fracking help reduce CO2?
Was there a Viking Exchange as well as a Columbian one?
Why is the origin of “threshold” uncertain?
Why does nature favour the Laplacian?
Why do computer-science majors learn calculus?
Is there a way to get a compiler for the original B programming language?
Do I have to worry about players making “bad” choices on level up?
Stop and Take a Breath!
Any examples of headwear for races with animal ears?
How to verbalise code in Mathematica?
Packing rectangles: Does rotation ever help?
get exit status from system() call
How to delegate to implementing class
Why is current rating for multicore cable lower than single core with the same cross section?
How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?
Examples of non trivial equivalence relations , I mean equivalence relations without the expression " same ... as" in their definition?
Why was Germany not as successful as other Europeans in establishing overseas colonies?
What does YCWCYODFTRFDTY mean?
Unexpected email from Yorkshire Bank
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
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, soAnGo
>> "Edwin Smith"
When issued with an option [sh]
to print a short formAnGo[sh]
>> "Ted"
Another option [real]
to print the actual name...AnGo[real]
>> "Antonio Gonzales"
What would be the best approach here?
macros options
add a comment |
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, soAnGo
>> "Edwin Smith"
When issued with an option [sh]
to print a short formAnGo[sh]
>> "Ted"
Another option [real]
to print the actual name...AnGo[real]
>> "Antonio Gonzales"
What would be the best approach here?
macros options
add a comment |
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, soAnGo
>> "Edwin Smith"
When issued with an option [sh]
to print a short formAnGo[sh]
>> "Ted"
Another option [real]
to print the actual name...AnGo[real]
>> "Antonio Gonzales"
What would be the best approach here?
macros options
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, soAnGo
>> "Edwin Smith"
When issued with an option [sh]
to print a short formAnGo[sh]
>> "Ted"
Another option [real]
to print the actual name...AnGo[real]
>> "Antonio Gonzales"
What would be the best approach here?
macros options
macros options
asked 1 hour ago
janjan
1,1651519
1,1651519
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
This is a possible solution:
documentclass{article}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommand{definepseudonym}{mmmm}
{% #1 = command, #2 = pseudonym, #3 = short name, #4 = real name
NewDocumentCommand{#1}{O{pseudonym}}
{
str_case:nn { ##1 }
{
{pseudonym}{#2}
{sh}{#3}
{real}{#4}
}
}
}
ExplSyntaxOff
definepseudonym{AnGo}{Edwin Smith}{Ted}{Antonio Gonzalez}
begin{document}
AnGo[real] was known as AnGo abbreviated in AnGo[sh].
end{document}
add a comment |
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%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
This is a possible solution:
documentclass{article}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommand{definepseudonym}{mmmm}
{% #1 = command, #2 = pseudonym, #3 = short name, #4 = real name
NewDocumentCommand{#1}{O{pseudonym}}
{
str_case:nn { ##1 }
{
{pseudonym}{#2}
{sh}{#3}
{real}{#4}
}
}
}
ExplSyntaxOff
definepseudonym{AnGo}{Edwin Smith}{Ted}{Antonio Gonzalez}
begin{document}
AnGo[real] was known as AnGo abbreviated in AnGo[sh].
end{document}
add a comment |
This is a possible solution:
documentclass{article}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommand{definepseudonym}{mmmm}
{% #1 = command, #2 = pseudonym, #3 = short name, #4 = real name
NewDocumentCommand{#1}{O{pseudonym}}
{
str_case:nn { ##1 }
{
{pseudonym}{#2}
{sh}{#3}
{real}{#4}
}
}
}
ExplSyntaxOff
definepseudonym{AnGo}{Edwin Smith}{Ted}{Antonio Gonzalez}
begin{document}
AnGo[real] was known as AnGo abbreviated in AnGo[sh].
end{document}
add a comment |
This is a possible solution:
documentclass{article}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommand{definepseudonym}{mmmm}
{% #1 = command, #2 = pseudonym, #3 = short name, #4 = real name
NewDocumentCommand{#1}{O{pseudonym}}
{
str_case:nn { ##1 }
{
{pseudonym}{#2}
{sh}{#3}
{real}{#4}
}
}
}
ExplSyntaxOff
definepseudonym{AnGo}{Edwin Smith}{Ted}{Antonio Gonzalez}
begin{document}
AnGo[real] was known as AnGo abbreviated in AnGo[sh].
end{document}
This is a possible solution:
documentclass{article}
usepackage{xparse}
ExplSyntaxOn
NewDocumentCommand{definepseudonym}{mmmm}
{% #1 = command, #2 = pseudonym, #3 = short name, #4 = real name
NewDocumentCommand{#1}{O{pseudonym}}
{
str_case:nn { ##1 }
{
{pseudonym}{#2}
{sh}{#3}
{real}{#4}
}
}
}
ExplSyntaxOff
definepseudonym{AnGo}{Edwin Smith}{Ted}{Antonio Gonzalez}
begin{document}
AnGo[real] was known as AnGo abbreviated in AnGo[sh].
end{document}
answered 1 hour ago
egregegreg
737k8919393269
737k8919393269
add a comment |
add a comment |
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%2f488147%2fmultiple-options-for-pseudonyms%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