The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
1answer
45 views

How do you define a command to select nested groups?

Assuming a pair structure (2-tuple) is defined using groups {{<tokens1>}{<tokens2>}} is it possible to define a command \first#1{...} (and \last#1{...}) taking the surrounding group as ...
6
votes
1answer
90 views

What conventions or packages are appropriate for formatting records, algebraic data types in LaTeX?

LaTeX formatting practice is well-established and well-supported by existing packages for three common cases relevant in computer science: Source code listings Established, conventional mathematical ...
6
votes
1answer
73 views

naive dictionary datastructure using \csname … \endcsname; problem with nesting

With the following I tried to implement a naive dictionary data structure. All works fine, except when trying to nest two such dictionaries. In the last line in the following code the result is ...
38
votes
2answers
511 views

How to implement (low-level) arrays in TeX

Update: I have revised my question based on the comment by Bruno Le Floch and some further research. As some may know, I'm implementing a huge TeX macro package which has to do a lot of internal ...
8
votes
2answers
160 views

Can I store sequences in sequences with expl3

The documentation for l3seq states LaTeX3 implements a “sequence” data type, which contain an ordered list of entries which may contain any balanced text . but for many programming tasks it ...
20
votes
1answer
240 views

Using \fontdimen as an array to store data

Reading through pi.tex, I discovered the trick of using \fontdimen as an array of dimensions (which is equivalent to storing integers between ±(2^31-1)sp). Namely, \font\x=cmr10 at 1sp % or whatever ...
4
votes
1answer
823 views

Designing packet structure of a protocol

I'm writing a small manual for our self-developed protocol. To show the packet structure we like to include a table like it's shown on this Wikipedia page: ...
6
votes
1answer
438 views

Typesetting classical data structures in tikz

During this discussion an example image generated with TikZ was given by Christian R. but no code was provided: It would be great to have the code snippet that implements it, because I think it has ...
3
votes
2answers
593 views

Using LaTeX to create a resume in PDF [duplicate]

Possible Duplicate: LaTeX template for resume/curriculum vitae What are the benefits of writing resumes in TeX/LaTeX? I am a LaTeX noob and I am considering it for revamping my resume. I ...
2
votes
1answer
103 views

Comprehensive list of possible fields in APA6

I'm coming into a situation where users have uploaded thousands of documents (all non-published). There are only basic elments stored currently, including Title, Author, Year. Some fields contain ...
8
votes
4answers
444 views

Make ar­ray data struc­tures in LaTeX

Is there a way to make an array in LaTeX. I want to write a function that does this (here the array has only 2 elements but I want to be able to have many as I want). \foo{\MakeArray{foo,bar}} ...
2
votes
1answer
121 views

How to produce structure as in attached image

I remember seeing similar question (image wise) here on this forum but did not bookmark it :( If anyone knows and can point me to the example or give me some ideas to get started would be great ...
3
votes
3answers
938 views

Drawing a collaboration graph or tree with TikZ

I'm trying to draw a collaboration graph for C data structures. originally I got dot files from Doxygen which I tried to convert using dot2tex with varying degrees of success, though none produced ...
7
votes
2answers
265 views

Emulate a “tuple” data structure (when you are free to choose the syntax)

How can a "tuple" data structure be implemented in LaTeX? The idea is to store several elements (possibly a predefined number) in one macro and then be able to extract each of these elements by index ...
6
votes
3answers
232 views

Emulate a “tuple” data structure when the syntax for creating a tuple is predefined and cannot be altered

Imagine I have a macro \createcontact that accepts three parameters. Now, instead of using these during the expansion, I would like to save them separately for later use and retrieval. The above macro ...
7
votes
2answers
461 views

Global key-value dictionary

Is there any package that implements a data structure that provides a key-value mapping (akin to Python's dict)? The keys will be user input and may contain spaces and non-ASCII characters. I would ...
0
votes
1answer
424 views

Display FASTA File in LaTeX [closed]

Is there a proper way to show a FASTA file in LaTeX? So far I tried $'s or listings and TeXshade but this does not seems to work.