Extract more than nine arguments that occur periodically in a sentence to use in macrosHow to define a...
How to explain what's wrong with this application of the chain rule?
How should I respond when I lied about my education and the company finds out through background check?
Why is the "ls" command showing permissions of files in a FAT32 partition?
How much character growth crosses the line into breaking the character
Temporarily disable WLAN internet access for children, but allow it for adults
Did arcade monitors have same pixel aspect ratio as TV sets?
Angel of Condemnation - Exile creature with second ability
Why "had" in "[something] we would have made had we used [something]"?
Why Shazam when there is already Superman?
Redundant comparison & "if" before assignment
Why does a simple loop result in ASYNC_NETWORK_IO waits?
What is the highest possible scrabble score for placing a single tile
Why does AES have exactly 10 rounds for a 128-bit key, 12 for 192 bits and 14 for a 256-bit key size?
User Story breakdown - Technical Task + User Feature
Plot of a tornado-shaped surface
Is this toilet slogan correct usage of the English language?
Add big quotation marks inside my colorbox
Make a Bowl of Alphabet Soup
Why does the Sun have different day lengths, but not the gas giants?
Does the UK parliament need to pass secondary legislation to accept the Article 50 extension
Does Doodling or Improvising on the Piano Have Any Benefits?
How can mimic phobia be cured?
creating a ":KeepCursor" command
Invalid date error by date command
Extract more than nine arguments that occur periodically in a sentence to use in macros
How to define a command that takes more than 9 argumentsWhy does TeX remove braces around delimited arguments?macros that won't accept other macros as argumentsusing more than 2 arguments in a pgfplots styleUsing mathpalette with macros that take more argumentsUsing forcsvlist with macros that take more than one argumentHow to define a command that takes more than 18 argumentsOptional arguments in “families”… When and how?Macro with more than 9 argumentsDifferent command definitions with more than one optional arguments arguments
What is a good way to write a definition of the type fun below
fun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4 ...}
where the number of arguments is not known in advance, may be 1, or may be more than 9, like 12, and the result is as below
abc1 EDF1 form{xyz1} efg jkl abc2 EDF2 form{xyz2} efg jkl abc3 EDF3 form{xyz3} efg jkl abc4 EDF2 form{xyz4} ...
Assume for answers form is something trivial like newcommand{form}[1]{emph{#1}. In reality, can be more complicated command. Should be robust.
Probably requires several nested def cases taking two variables each and a if to decide when to halt the loop ... like when allowing more than 9 arguments to a macro? Or use etoolbox for something better?
If separator words efg jkl are not the same from one place to the next, certain they they are of some specific length, assume efg jkl <=> always 9 characters separating one input from the next. While abc EDF xyz are of different lengths possibly, but always three separate words.
macros tex-core
add a comment |
What is a good way to write a definition of the type fun below
fun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4 ...}
where the number of arguments is not known in advance, may be 1, or may be more than 9, like 12, and the result is as below
abc1 EDF1 form{xyz1} efg jkl abc2 EDF2 form{xyz2} efg jkl abc3 EDF3 form{xyz3} efg jkl abc4 EDF2 form{xyz4} ...
Assume for answers form is something trivial like newcommand{form}[1]{emph{#1}. In reality, can be more complicated command. Should be robust.
Probably requires several nested def cases taking two variables each and a if to decide when to halt the loop ... like when allowing more than 9 arguments to a macro? Or use etoolbox for something better?
If separator words efg jkl are not the same from one place to the next, certain they they are of some specific length, assume efg jkl <=> always 9 characters separating one input from the next. While abc EDF xyz are of different lengths possibly, but always three separate words.
macros tex-core
fun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4}andfun{abc1 EDF1 xyz1}andfun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4 ... efg jkl abc12 EDF12 xyz12}, etc, equally possible. Some kind of loop required. But note that there would not appear any numbers in the input phrase; the numbers are here to illustrate how long happens to be the list. Just the list is always entered as a specific kind of sentence.
– Guido Jorg
6 mins ago
add a comment |
What is a good way to write a definition of the type fun below
fun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4 ...}
where the number of arguments is not known in advance, may be 1, or may be more than 9, like 12, and the result is as below
abc1 EDF1 form{xyz1} efg jkl abc2 EDF2 form{xyz2} efg jkl abc3 EDF3 form{xyz3} efg jkl abc4 EDF2 form{xyz4} ...
Assume for answers form is something trivial like newcommand{form}[1]{emph{#1}. In reality, can be more complicated command. Should be robust.
Probably requires several nested def cases taking two variables each and a if to decide when to halt the loop ... like when allowing more than 9 arguments to a macro? Or use etoolbox for something better?
If separator words efg jkl are not the same from one place to the next, certain they they are of some specific length, assume efg jkl <=> always 9 characters separating one input from the next. While abc EDF xyz are of different lengths possibly, but always three separate words.
macros tex-core
What is a good way to write a definition of the type fun below
fun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4 ...}
where the number of arguments is not known in advance, may be 1, or may be more than 9, like 12, and the result is as below
abc1 EDF1 form{xyz1} efg jkl abc2 EDF2 form{xyz2} efg jkl abc3 EDF3 form{xyz3} efg jkl abc4 EDF2 form{xyz4} ...
Assume for answers form is something trivial like newcommand{form}[1]{emph{#1}. In reality, can be more complicated command. Should be robust.
Probably requires several nested def cases taking two variables each and a if to decide when to halt the loop ... like when allowing more than 9 arguments to a macro? Or use etoolbox for something better?
If separator words efg jkl are not the same from one place to the next, certain they they are of some specific length, assume efg jkl <=> always 9 characters separating one input from the next. While abc EDF xyz are of different lengths possibly, but always three separate words.
macros tex-core
macros tex-core
asked 7 mins ago
Guido JorgGuido Jorg
1,13231344
1,13231344
fun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4}andfun{abc1 EDF1 xyz1}andfun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4 ... efg jkl abc12 EDF12 xyz12}, etc, equally possible. Some kind of loop required. But note that there would not appear any numbers in the input phrase; the numbers are here to illustrate how long happens to be the list. Just the list is always entered as a specific kind of sentence.
– Guido Jorg
6 mins ago
add a comment |
fun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4}andfun{abc1 EDF1 xyz1}andfun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4 ... efg jkl abc12 EDF12 xyz12}, etc, equally possible. Some kind of loop required. But note that there would not appear any numbers in the input phrase; the numbers are here to illustrate how long happens to be the list. Just the list is always entered as a specific kind of sentence.
– Guido Jorg
6 mins ago
fun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4} and fun{abc1 EDF1 xyz1} and fun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4 ... efg jkl abc12 EDF12 xyz12}, etc, equally possible. Some kind of loop required. But note that there would not appear any numbers in the input phrase; the numbers are here to illustrate how long happens to be the list. Just the list is always entered as a specific kind of sentence.– Guido Jorg
6 mins ago
fun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4} and fun{abc1 EDF1 xyz1} and fun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4 ... efg jkl abc12 EDF12 xyz12}, etc, equally possible. Some kind of loop required. But note that there would not appear any numbers in the input phrase; the numbers are here to illustrate how long happens to be the list. Just the list is always entered as a specific kind of sentence.– Guido Jorg
6 mins ago
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%2f480991%2fextract-more-than-nine-arguments-that-occur-periodically-in-a-sentence-to-use-in%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%2f480991%2fextract-more-than-nine-arguments-that-occur-periodically-in-a-sentence-to-use-in%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
fun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4}andfun{abc1 EDF1 xyz1}andfun{abc1 EDF1 xyz1 efg jkl abc2 EDF2 xyz2 efg jkl abc3 EDF3 xyz3 efg jkl abc4 EDF2 xyz4 ... efg jkl abc12 EDF12 xyz12}, etc, equally possible. Some kind of loop required. But note that there would not appear any numbers in the input phrase; the numbers are here to illustrate how long happens to be the list. Just the list is always entered as a specific kind of sentence.– Guido Jorg
6 mins ago