10 questions linked to/from How to implement (low-level) arrays in TeX
41k views

### Create xkcd style diagram in TeX

The unique style of the diagrams at xkcd has an informative but nice hand-drawn touch. I guess they are actually drawn by hand but just recently on our partner site for Mathematica someone asked how ...
329 views

### How can I break a macro / how to realize a switch or array-structure

I'm looking for a way to realize a macro with a switch/case control structure (or an array solution), as it exists in every programming language. MWE: \documentclass[ngerman,12pt]{article} \...
931 views

### expl3 variables and functions

I am trying to learn how to use expl3 and am a little confused and could use some direction. I'm trying to figure out this whole naming scheme for variables and functions as addressed in the expl3 ...
273 views

### Array functionality in TeX?

I've been using LaTeX for a while, but only recently I made myself a mission to create a class. I needed to learn the details of TeX, and I couldn't find answers to some of my questions. One of them ...
179 views

### Implementation of property list in expl3

For some preprocessing task, I would like to use an expl3 property list. Since the number of items in that list would be in the thousands - index entries for a textbook - I was wondering how time-...
135 views

### In TeX how can I define a list of data such that I can use a numerical argument to call for one entry out of the list

I would like to be able to have a defined macro something like this: \def\testmacro[1]{[54.7],[74.1],[98.5]} Such that when I call \testmacro{2}, in a document, 74.1 is printed. Is this ...
166 views

### Does expl3 have arrays?

There is \seq_item:Nn to get an arbitrary item from a sequence. As far as I understand, this works by iterating the sequence items, discarding until the requested item is found, which seems not very ...
196 views

### hash (dictionary) data structure

closely related to How to implement (low-level) arrays in TeX . What is the recommended package that provides a simple abstraction of the hash feature that is in latex, at least for small-scale needs....
128 views

### amsmath align* tampering with a counter of mine

\documentclass[a4paper]{report} \usepackage{amsmath,mathtools} \makeatletter \newcount\mw@shortcnt \mw@shortcnt=0 \newcommand{\short}[1]{% \global\advance\mw@shortcnt by +1% \expandafter\def\...
72 views

### Using control sequence names to efficiently store a large amount of characters

When reading the thread about low-level arrays in TeX I stumbled over a note in Bruno Le Floch's answer: A long string of characters is stored more efficiently as a csname than as a list of tokens....