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













1















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.










share|improve this question

















  • 1





    Use the c variants instead of N, i.e. clist_new:c g_list_of_values_#1 etc.

    – Henri Menke
    3 hours ago
















1















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.










share|improve this question

















  • 1





    Use the c variants instead of N, i.e. clist_new:c g_list_of_values_#1 etc.

    – Henri Menke
    3 hours ago














1












1








1








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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 4 hours ago









GRSousaJrGRSousaJr

3427




3427







  • 1





    Use the c variants instead of N, i.e. clist_new:c g_list_of_values_#1 etc.

    – Henri Menke
    3 hours ago













  • 1





    Use the c variants instead of N, 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











1 Answer
1






active

oldest

votes


















3














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





share|improve this answer























  • Works perfectly!

    – GRSousaJr
    3 hours ago











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
);



);













draft saved

draft discarded


















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









3














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





share|improve this answer























  • Works perfectly!

    – GRSousaJr
    3 hours ago















3














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





share|improve this answer























  • Works perfectly!

    – GRSousaJr
    3 hours ago













3












3








3







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





share|improve this answer













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






share|improve this answer












share|improve this answer



share|improve this answer










answered 3 hours ago









AndrewAndrew

31.8k34583




31.8k34583












  • Works perfectly!

    – GRSousaJr
    3 hours ago

















  • Works perfectly!

    – GRSousaJr
    3 hours ago
















Works perfectly!

– GRSousaJr
3 hours ago





Works perfectly!

– GRSousaJr
3 hours ago

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Log på Navigationsmenu

Wonderful Copenhagen (sang) Eksterne henvisninger | NavigationsmenurSide på frankloesser.comWonderful Copenhagen

Detroit Tigers Spis treści Historia | Skład zespołu | Sukcesy | Członkowie Baseball Hall of Fame | Zastrzeżone numery | Przypisy | Menu nawigacyjneEncyclopedia of Detroit - Detroit TigersTigers Stadium, Detroit, MITigers Timeline 1900sDetroit Tigers Team History & EncyclopediaTigers Timeline 1910s1935 World Series1945 World Series1945 World Series1984 World SeriesComerica Park, Detroit, MI2006 World Series2012 World SeriesDetroit Tigers 40-Man RosterDetroit Tigers Coaching StaffTigers Hall of FamersTigers Retired Numberse