3k views

### How to split text into characters

I would like to define a function which splits an input text into its constituent letters, so I can process each letter individually (the background to this question is that I would like to put each ...
702 views

### Extract all emphasized words from latex document

I need to produce a list of all words that are emphasised in my LaTeX document (=which are enclosed by \emph{...}). How can I use awk to process the .tex file and extract all patterns starting with \...
2k views

### Setting up a Multiple Choice Answer Key

I had a question about setting up a LaTeX document. I'm not sure if it is proper to post such a question here, but I figured that many people here have experience with the system and might be able to ...
311 views

### Can I get a list of all sections as a simple enumerate-list?

I am currently creating a template for transcripts (I don't know if this is the right word: you write a transcript if you have a (business) meeting and you want to record all important stuff that was ...
1k views

### Collecting contents of environment and store them for later retrieval

I want to store contents of an environment and add them to a macro or command I could easily retrieve them, but I do not want to use the collect package. Are there any alternatives? \documentclass{...
1k views

### Is it possible to store an array generating by foreach?

For example, I want to get an array with values sin(1),sin(2),..,sin(100) and store it to an variable. Is there a way to get this result by using foreach ? EDIT: A more complicated example: Drawing ...
940 views

### How to get a list of the filenames of the figures embedded in a document

I have a TeX document that is embedding a huge amount of figures from a fig folder that is full of another humongous amount of other figures. I would like to move the document along with its figures, ...
850 views

### List of Unused \newbox, \newcount, \newdimen, \newskip, etc

Want a appropriate command to list out unused Box, Counter, Dimension, Skip from the CLS/STY file.
349 views

### Long List of Files Names with Paths

I need to keep a list of files (max of around 500) along with the path. Based on the fact that each file name and path could be up to 100 characters, should I just save it in a comma separated list ...
224 views

### Expansion issue when adding to CSV list from within a \foreach

Another expansion issue that I am unable to guess at the correct combination of \edef/\expandafters to get to work. Background: Below I have defined \AddToCommaSeparateList which uses \g@addto@macro ...
628 views

### Aligning text in S columns in a way that respects the decimal marker for numerical entries

As I understand it, using various options for the S column in siunitx, I may produce columns containing both numerical and nonnumerical entries. I may have the numerical entries aligned at their ...
184 views

### Saving arguments of commands to be used later

I'd like to create a command to print some contacts inserted with same 3 commands: \name{},\work{},\email{}. Every time we use those 3 commands, a new contact is collected and then all of them is ...
165 views

### Expansion issue: How Check if options passed to an environment were used

I have an environment with portions of the content that being conditionally typeset based on options passed to the environment. The content of this environment is predefined elsewhere so depending on ...