separate the string by space [on hold]
up vote
0
down vote
favorite
how to split parameter in an argument list of function by space
defonto[1]{
....i don't know how to do
}
or
newcommand{onto}[1]{
#1
}
in #1 i get hello home as 1 string
in example i give
onto{hello, sonia}
now i want to excess home and hello separate
so i can use home as separate string and hello as separate
macros strings
put on hold as unclear what you're asking by egreg, Sebastiano, Phelype Oleinik, siracusa, Troy Nov 13 at 5:12
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
0
down vote
favorite
how to split parameter in an argument list of function by space
defonto[1]{
....i don't know how to do
}
or
newcommand{onto}[1]{
#1
}
in #1 i get hello home as 1 string
in example i give
onto{hello, sonia}
now i want to excess home and hello separate
so i can use home as separate string and hello as separate
macros strings
put on hold as unclear what you're asking by egreg, Sebastiano, Phelype Oleinik, siracusa, Troy Nov 13 at 5:12
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
Welcome to TeX.SX! I'm sorry, but your question is not very clear. Can you please add an approximate representation of what you want thatonto{hello,sonia}
should output?
– egreg
Nov 6 at 15:24
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
how to split parameter in an argument list of function by space
defonto[1]{
....i don't know how to do
}
or
newcommand{onto}[1]{
#1
}
in #1 i get hello home as 1 string
in example i give
onto{hello, sonia}
now i want to excess home and hello separate
so i can use home as separate string and hello as separate
macros strings
how to split parameter in an argument list of function by space
defonto[1]{
....i don't know how to do
}
or
newcommand{onto}[1]{
#1
}
in #1 i get hello home as 1 string
in example i give
onto{hello, sonia}
now i want to excess home and hello separate
so i can use home as separate string and hello as separate
macros strings
macros strings
edited Nov 12 at 21:25
Henri Menke
66.9k7148255
66.9k7148255
asked Nov 6 at 14:51
Afni Saeed
11
11
put on hold as unclear what you're asking by egreg, Sebastiano, Phelype Oleinik, siracusa, Troy Nov 13 at 5:12
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as unclear what you're asking by egreg, Sebastiano, Phelype Oleinik, siracusa, Troy Nov 13 at 5:12
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
Welcome to TeX.SX! I'm sorry, but your question is not very clear. Can you please add an approximate representation of what you want thatonto{hello,sonia}
should output?
– egreg
Nov 6 at 15:24
add a comment |
1
Welcome to TeX.SX! I'm sorry, but your question is not very clear. Can you please add an approximate representation of what you want thatonto{hello,sonia}
should output?
– egreg
Nov 6 at 15:24
1
1
Welcome to TeX.SX! I'm sorry, but your question is not very clear. Can you please add an approximate representation of what you want that
onto{hello,sonia}
should output?– egreg
Nov 6 at 15:24
Welcome to TeX.SX! I'm sorry, but your question is not very clear. Can you please add an approximate representation of what you want that
onto{hello,sonia}
should output?– egreg
Nov 6 at 15:24
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
The listofitems
package.
documentclass{article}
usepackage{listofitems}
newcommandsplitarg[1]{%
setsepchar{ }%
readlistmyarg{#1}%
}
begin{document}
splitarg{This is a very big test}
Here is argument 4: myarg[4]
deftmp{This is a very big test}
splitarg{tmp}
Here is last argument: myarg[-1]
end{document}
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
The listofitems
package.
documentclass{article}
usepackage{listofitems}
newcommandsplitarg[1]{%
setsepchar{ }%
readlistmyarg{#1}%
}
begin{document}
splitarg{This is a very big test}
Here is argument 4: myarg[4]
deftmp{This is a very big test}
splitarg{tmp}
Here is last argument: myarg[-1]
end{document}
add a comment |
up vote
1
down vote
The listofitems
package.
documentclass{article}
usepackage{listofitems}
newcommandsplitarg[1]{%
setsepchar{ }%
readlistmyarg{#1}%
}
begin{document}
splitarg{This is a very big test}
Here is argument 4: myarg[4]
deftmp{This is a very big test}
splitarg{tmp}
Here is last argument: myarg[-1]
end{document}
add a comment |
up vote
1
down vote
up vote
1
down vote
The listofitems
package.
documentclass{article}
usepackage{listofitems}
newcommandsplitarg[1]{%
setsepchar{ }%
readlistmyarg{#1}%
}
begin{document}
splitarg{This is a very big test}
Here is argument 4: myarg[4]
deftmp{This is a very big test}
splitarg{tmp}
Here is last argument: myarg[-1]
end{document}
The listofitems
package.
documentclass{article}
usepackage{listofitems}
newcommandsplitarg[1]{%
setsepchar{ }%
readlistmyarg{#1}%
}
begin{document}
splitarg{This is a very big test}
Here is argument 4: myarg[4]
deftmp{This is a very big test}
splitarg{tmp}
Here is last argument: myarg[-1]
end{document}
answered Nov 6 at 14:55
Steven B. Segletes
151k9189397
151k9189397
add a comment |
add a comment |
1
Welcome to TeX.SX! I'm sorry, but your question is not very clear. Can you please add an approximate representation of what you want that
onto{hello,sonia}
should output?– egreg
Nov 6 at 15:24