Questions tagged [l3prop]

The basic layer of expl3 for property lists.

Filter by
Sorted by
Tagged with
3
votes
1answer
48 views

expl3 sequence of property lists with parameterized names: spurious space

Edit (context) For a class myclass I'm working on, I want the user be able to specify (the characteristics of) the institute, subinstitute, subsubinstitute, etc. he is affiliated to. Because the ...
2
votes
1answer
32 views

Controlled expansion applied to l3prop

In the example below, Hook 1 and Hook 4 compile, not Hook 2 and Hook 3. Why? \documentclass{report} \usepackage{xparse} \ExplSyntaxOn \prop_set_from_keyval:Nn \__erw_foo_prop{key=a} \cs_set:Nn \...
2
votes
1answer
50 views

How to use the token list variable from \prop_get

Here is a MWE. I use a token list, and I can get 10 and October in the final pdf file. \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \tl_new:N \l_my_tl \prop_new:N \l_my_prop \...
2
votes
2answers
52 views

Using control sequence as part of key names in property list

Adapting Joseph's answer in Extract the numerical and non-numerical portion from text to count a non-numerical portion from a text. The idea behind my method is to use regex to seperate the numerical ...
7
votes
1answer
254 views

Spaces in l3prop

How can one store verbatim code in a LaTeX3 property list? My goal is to store person names in a property inside a property list. This means that both accents and spaces must be stored in the key ...
2
votes
2answers
135 views

expl3, incrementing a value in a prop-list

I read a clist and create a prop-list which should behave as a hash in which the value for a given key is the number of occurences of this value in the clist. Below my code which, so far, does work as ...
3
votes
1answer
60 views

Why is \tl_if_in:VnTF giving a different answer depending on where it is?

I'm trying to build a simple replacements dictionary using a prop structure of replacements old=new. When I'm mapping through the prop, I don't find any replacements. When I'm not (i.e., hardcoding),...
1
vote
1answer
92 views

expl3: Is it possible to have a property list (l3prop) as value in a property list?

I am thinking in creating a package to manage some metadata of books (like author, title, ...). This metadata will be defined in an external file and retrieved in the document. (This has nothing to do ...
10
votes
2answers
264 views

Reading in a conf file as a property list

I'm not worried about supporting sections, although a bounty would be given for doing so :) Here's what I have so far, but it produces strange output for #2: \begin{filecontents}{test} \Property ...
3
votes
1answer
125 views

Getting the current value of a global variable into a prop list

This is a more or less direct follow up to this question. The problem there was to get the current value of a global variable into a LaTeX3 prop list. The trick was to use the V variant to get the ...
3
votes
1answer
91 views

Expl3 prop doesn't seem to work when the key is a macro value

I'd expect this example code to give two identical lines, however \usevalue{\xyz} doesn't result in XYZ as the other. Can I force the key to be expanded to make \usevalue{\xyz} and \usevalue{0} refer ...
6
votes
2answers
110 views

l3prop - getting an entry inside a macro fails

I the following example I defined two new macros \UseLength and \xUseLength. Both macros shall put back the stored value of the key in the input stream. The macro \UseLength works as expected. The ...
4
votes
1answer
148 views

key values getting improperly passed through a property list getter function

I'm creating rather complicated diagram and would like to put all the controls all in one easy to find location and not scattered throughout the document. To do this, I've created setter and getter ...
4
votes
2answers
301 views

l3prop property stores and etoolbox loops: weird results

I'm writing a class for handling multi-language jargon formulas. My idea is to use l3prop to store, for each formula, its language variations -- i.e., a sort of hash table. Building on one of the ...
5
votes
1answer
125 views

Error using a defined function with expl3 inside the command \color

In the following MWE my personal definition of \marco_prop_get:nn works unless it isn't inside the macro \color. The snippet is: \ExplSyntaxOn \cs_new_protected:Npn \marco_prop_get:nn #1 #2 { \...