How to write a definition with variants? The Next CEO of Stack OverflowLaTeX command with...
Why isn't the Mueller report being released completely and unredacted?
Is it convenient to ask the journal's editor for two additional days to complete a review?
What did we know about the Kessel run before the prequels?
How to check if all elements of 1 list are in the *same quantity* and in any order, in the list2?
What flight has the highest ratio of time difference to flight time?
Is there always a complete, orthogonal set of unitary matrices?
WOW air has ceased operation, can I get my tickets refunded?
Can we say or write : "No, it'sn't"?
A Man With a Stainless Steel Endoskeleton (like The Terminator) Fighting Cloaked Aliens Only He Can See
Which one is the true statement?
Newlines in BSD sed vs gsed
Why didn't Khan get resurrected in the Genesis Explosion?
Axiom Schema vs Axiom
If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?
How do I align (1) and (2)?
What connection does MS Office have to Netscape Navigator?
Why is quantifier elimination desirable for a given theory?
Method for adding error messages to a dictionary given a key
Are police here, aren't itthey?
INSERT to a table from a database to other (same SQL Server) using Dynamic SQL
How to install OpenCV on Raspbian Stretch?
How to edit “Name” property in GCI output?
Is micro rebar a better way to reinforce concrete than rebar?
Why did CATV standarize in 75 ohms and everyone else in 50?
How to write a definition with variants?
The Next CEO of Stack OverflowLaTeX command with optional argumentsDoing def+asdf+{texttt{#1}} where + can be set with a macroHow to write a parameter-driven macro?amstex: operator definition errorExpansion problem with newlistof from tocloft packageProblem in a macro definition (plain TeX)Write an unpar macroLaTeX for plain TeX users?Optional arguments in “families”… When and how?“Missing '{' inserted” and “Missing } inserted” with aligned environment
In TeX I can define, say
def1#1 is #2.{#1 & is & #2\}
and
def2#1 has #2.{#1 & has & #2\}
with an easy usage:
1 Jim Jones is a fictional character.
and
2 Tim Smith has two brothers.
Can I write a definition depending on, in this case, is/has so I can write
3 Jim Jones is a fictional character.
and
3 Tim Smith has two brothers.
obtaing the previous results?
Solutions using Lua or expl3 are OK, but I hope that a pure TeX one is also possible.a
macros plain-tex
add a comment |
In TeX I can define, say
def1#1 is #2.{#1 & is & #2\}
and
def2#1 has #2.{#1 & has & #2\}
with an easy usage:
1 Jim Jones is a fictional character.
and
2 Tim Smith has two brothers.
Can I write a definition depending on, in this case, is/has so I can write
3 Jim Jones is a fictional character.
and
3 Tim Smith has two brothers.
obtaing the previous results?
Solutions using Lua or expl3 are OK, but I hope that a pure TeX one is also possible.a
macros plain-tex
add a comment |
In TeX I can define, say
def1#1 is #2.{#1 & is & #2\}
and
def2#1 has #2.{#1 & has & #2\}
with an easy usage:
1 Jim Jones is a fictional character.
and
2 Tim Smith has two brothers.
Can I write a definition depending on, in this case, is/has so I can write
3 Jim Jones is a fictional character.
and
3 Tim Smith has two brothers.
obtaing the previous results?
Solutions using Lua or expl3 are OK, but I hope that a pure TeX one is also possible.a
macros plain-tex
In TeX I can define, say
def1#1 is #2.{#1 & is & #2\}
and
def2#1 has #2.{#1 & has & #2\}
with an easy usage:
1 Jim Jones is a fictional character.
and
2 Tim Smith has two brothers.
Can I write a definition depending on, in this case, is/has so I can write
3 Jim Jones is a fictional character.
and
3 Tim Smith has two brothers.
obtaing the previous results?
Solutions using Lua or expl3 are OK, but I hope that a pure TeX one is also possible.a
macros plain-tex
macros plain-tex
asked 3 mins ago
Przemysław ScherwentkePrzemysław Scherwentke
29.8k54795
29.8k54795
add a comment |
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%2f482357%2fhow-to-write-a-definition-with-variants%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%2f482357%2fhow-to-write-a-definition-with-variants%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