Help to understand a simple example of clist in expl3PDF keywords from Expl3 clistUse expl3 variable decimal representation outside of expl3 blockHow is expl3 typed?expl3: How to remove the final comma in a clist mappingexpl3: Expand every item once when adding to a clistexpl3 variables and functionsexpl3 empty token listclist and hyperrefExample packages using expl3expl3 property list values as `clist` vs token lists
Casual versus formal jacket
Besides the up and down quark, what other quarks are present in daily matter around us?
What are the differences between credential stuffing and password spraying?
What was the state of the German rail system in 1944?
Upside-Down Pyramid Addition...REVERSED!
How to improve/restore vintage Peugeot bike, or is it even worth it?
Am I getting DDOS from crawlers?
Transpose of product of matrices
How do I tell my manager that his code review comment is wrong?
SQL Server Management Studio SSMS 18.0 General Availability release (GA) install fails
Is this homebrew life-stealing melee cantrip unbalanced?
¿Por qué el español no introdujo el C con cedilla, Ç? – Why did Spanish not introduce the C with cedilla, Ç?
If a prion is a protein, why is it not disassembled by the digestive system?
Would glacier 'trees' be plausible?
Why is `abs()` implemented differently?
Why wasn't the Night King naked in S08E03?
Why is C# in the D Major Scale?
Does this article imply that Turing-Computability is not the same as "effectively computable"?
My ID is expired, can I fly to the Bahamas with my passport?
Is Cola "probably the best-known" Latin word in the world? If not, which might it be?
What is the most remote airport from the center of the city it supposedly serves?
Short story with physics professor who "brings back the dead" (Asimov or Bradbury?)
Was there ever a Kickstart that took advantage of 68020+ instructions that would work on an A2000?
60s (or earlier) SF short story with FTL Travel using electron psychology aka addiclenendar technology
Help to understand a simple example of clist in expl3
PDF keywords from Expl3 clistUse expl3 variable decimal representation outside of expl3 blockHow is expl3 typed?expl3: How to remove the final comma in a clist mappingexpl3: Expand every item once when adding to a clistexpl3 variables and functionsexpl3 empty token listclist and hyperrefExample packages using expl3expl3 property list values as `clist` vs token lists
Sorry if my question is elemental. I have start learning LaTeX
a month ago. I'm learning at the same time as have new ideas. That being said, someone could help me to understand a simple example of clist
in expl3
? What's wrong with this code?
documentclassarticle
usepackagexparse
ExplSyntaxOn
NewDocumentCommandDeclareListOfValues m m
clist_new:N g_list_of_values_#1
clist_set:Nn g_list_of_values_#1 #2
NewDocumentCommandGetValueFromList m m
clist_item:Nn g_list_of_values_#1 #2
ExplSyntaxOff
DeclareListOfValuesFirstList1.11, 1.22
begindocument
GetValueFromListFirstList2 % -> 1.22
enddocument
I would appreciate any help.
expl3
add a comment |
Sorry if my question is elemental. I have start learning LaTeX
a month ago. I'm learning at the same time as have new ideas. That being said, someone could help me to understand a simple example of clist
in expl3
? What's wrong with this code?
documentclassarticle
usepackagexparse
ExplSyntaxOn
NewDocumentCommandDeclareListOfValues m m
clist_new:N g_list_of_values_#1
clist_set:Nn g_list_of_values_#1 #2
NewDocumentCommandGetValueFromList m m
clist_item:Nn g_list_of_values_#1 #2
ExplSyntaxOff
DeclareListOfValuesFirstList1.11, 1.22
begindocument
GetValueFromListFirstList2 % -> 1.22
enddocument
I would appreciate any help.
expl3
1
Use thec
variants instead ofN
, i.e.clist_new:c g_list_of_values_#1
etc.
– Henri Menke
3 hours ago
add a comment |
Sorry if my question is elemental. I have start learning LaTeX
a month ago. I'm learning at the same time as have new ideas. That being said, someone could help me to understand a simple example of clist
in expl3
? What's wrong with this code?
documentclassarticle
usepackagexparse
ExplSyntaxOn
NewDocumentCommandDeclareListOfValues m m
clist_new:N g_list_of_values_#1
clist_set:Nn g_list_of_values_#1 #2
NewDocumentCommandGetValueFromList m m
clist_item:Nn g_list_of_values_#1 #2
ExplSyntaxOff
DeclareListOfValuesFirstList1.11, 1.22
begindocument
GetValueFromListFirstList2 % -> 1.22
enddocument
I would appreciate any help.
expl3
Sorry if my question is elemental. I have start learning LaTeX
a month ago. I'm learning at the same time as have new ideas. That being said, someone could help me to understand a simple example of clist
in expl3
? What's wrong with this code?
documentclassarticle
usepackagexparse
ExplSyntaxOn
NewDocumentCommandDeclareListOfValues m m
clist_new:N g_list_of_values_#1
clist_set:Nn g_list_of_values_#1 #2
NewDocumentCommandGetValueFromList m m
clist_item:Nn g_list_of_values_#1 #2
ExplSyntaxOff
DeclareListOfValuesFirstList1.11, 1.22
begindocument
GetValueFromListFirstList2 % -> 1.22
enddocument
I would appreciate any help.
expl3
expl3
asked 4 hours ago
GRSousaJrGRSousaJr
3427
3427
1
Use thec
variants instead ofN
, i.e.clist_new:c g_list_of_values_#1
etc.
– Henri Menke
3 hours ago
add a comment |
1
Use thec
variants instead ofN
, i.e.clist_new:c g_list_of_values_#1
etc.
– Henri Menke
3 hours ago
1
1
Use the
c
variants instead of N
, i.e. clist_new:c g_list_of_values_#1
etc.– Henri Menke
3 hours ago
Use the
c
variants instead of N
, i.e. clist_new:c g_list_of_values_#1
etc.– Henri Menke
3 hours ago
add a comment |
1 Answer
1
active
oldest
votes
You can't just tack #1
on to the end of a variable name. Instead you should use clist_new:c
, which takes a "command name". Although not mandatory, the recommended style is to end your clist varaible names with clist
.
Here is a corrected version of your code.
documentclassarticle
usepackagexparse
ExplSyntaxOn
NewDocumentCommandDeclareListOfValues m m
clist_new:c g_list_of_values_#1_clist
clist_set:cn g_list_of_values_#1_clist #2
NewDocumentCommandGetValueFromList m m
clist_item:cn g_list_of_values_#1_clist #2
ExplSyntaxOff
DeclareListOfValuesFirstList1.11, 1.22
begindocument
GetValueFromListFirstList2 % -> 1.22
enddocument
Works perfectly!
– GRSousaJr
3 hours ago
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%2f488512%2fhelp-to-understand-a-simple-example-of-clist-in-expl3%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
You can't just tack #1
on to the end of a variable name. Instead you should use clist_new:c
, which takes a "command name". Although not mandatory, the recommended style is to end your clist varaible names with clist
.
Here is a corrected version of your code.
documentclassarticle
usepackagexparse
ExplSyntaxOn
NewDocumentCommandDeclareListOfValues m m
clist_new:c g_list_of_values_#1_clist
clist_set:cn g_list_of_values_#1_clist #2
NewDocumentCommandGetValueFromList m m
clist_item:cn g_list_of_values_#1_clist #2
ExplSyntaxOff
DeclareListOfValuesFirstList1.11, 1.22
begindocument
GetValueFromListFirstList2 % -> 1.22
enddocument
Works perfectly!
– GRSousaJr
3 hours ago
add a comment |
You can't just tack #1
on to the end of a variable name. Instead you should use clist_new:c
, which takes a "command name". Although not mandatory, the recommended style is to end your clist varaible names with clist
.
Here is a corrected version of your code.
documentclassarticle
usepackagexparse
ExplSyntaxOn
NewDocumentCommandDeclareListOfValues m m
clist_new:c g_list_of_values_#1_clist
clist_set:cn g_list_of_values_#1_clist #2
NewDocumentCommandGetValueFromList m m
clist_item:cn g_list_of_values_#1_clist #2
ExplSyntaxOff
DeclareListOfValuesFirstList1.11, 1.22
begindocument
GetValueFromListFirstList2 % -> 1.22
enddocument
Works perfectly!
– GRSousaJr
3 hours ago
add a comment |
You can't just tack #1
on to the end of a variable name. Instead you should use clist_new:c
, which takes a "command name". Although not mandatory, the recommended style is to end your clist varaible names with clist
.
Here is a corrected version of your code.
documentclassarticle
usepackagexparse
ExplSyntaxOn
NewDocumentCommandDeclareListOfValues m m
clist_new:c g_list_of_values_#1_clist
clist_set:cn g_list_of_values_#1_clist #2
NewDocumentCommandGetValueFromList m m
clist_item:cn g_list_of_values_#1_clist #2
ExplSyntaxOff
DeclareListOfValuesFirstList1.11, 1.22
begindocument
GetValueFromListFirstList2 % -> 1.22
enddocument
You can't just tack #1
on to the end of a variable name. Instead you should use clist_new:c
, which takes a "command name". Although not mandatory, the recommended style is to end your clist varaible names with clist
.
Here is a corrected version of your code.
documentclassarticle
usepackagexparse
ExplSyntaxOn
NewDocumentCommandDeclareListOfValues m m
clist_new:c g_list_of_values_#1_clist
clist_set:cn g_list_of_values_#1_clist #2
NewDocumentCommandGetValueFromList m m
clist_item:cn g_list_of_values_#1_clist #2
ExplSyntaxOff
DeclareListOfValuesFirstList1.11, 1.22
begindocument
GetValueFromListFirstList2 % -> 1.22
enddocument
answered 3 hours ago
AndrewAndrew
31.8k34583
31.8k34583
Works perfectly!
– GRSousaJr
3 hours ago
add a comment |
Works perfectly!
– GRSousaJr
3 hours ago
Works perfectly!
– GRSousaJr
3 hours ago
Works perfectly!
– GRSousaJr
3 hours ago
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%2f488512%2fhelp-to-understand-a-simple-example-of-clist-in-expl3%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
1
Use the
c
variants instead ofN
, i.e.clist_new:c g_list_of_values_#1
etc.– Henri Menke
3 hours ago