14 questions linked to/from A big list of every keyval package
16k views

### How to create a command with key values?

I am trying to create a command that the user can enter keys for values. How can I create one, for example: \myparbox[width=50,height=10,color=blue, align=left -10px]{}
18k views

### How do I create a LaTeX package?

I would like to jump into the cold waters of LaTeX package creation, mostly for procrastination reasons...but I haven't a clue how to start. For example, a previous question of mine got some nice ...
11k views

### Possibility to pass options to packages

I am searching for a possibility to give additional options to another package. I have tried it with \PassOptionsToPackage. My idea was that I can use something like \documentclass[hyperref={...
3k views

### Consistent way to define document title, subtitle, author, affiliation, abstract etc

Many document classes seem to have their own way of defining document title and author information, often with only subtle differences. (\title seems to be pretty much standard everywhere, in contrast ...
3k views

### newcommand with comma separated argument, and optional arguments

I want to define a command (not with \def) the simplest possible way that it takes arguments separated by a comma, supports an optional argument (the first one). maybe another solution with extra ...
2k views

### In 2016, what are the advantages and disadvantages of the different methods to create a package?

Now we need to make some choices between TeX, LaTeX2e, LaTeX 3, ConTeXt(LuaTeX), LuaLaTeX, XeTeX, XeLaTeX and... I don't specially like the syntax of L3 but recently I was impressed by very ...
2k 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 ...
1k views

### Importing Parameters From a Separate File

Looked a long time for a solution to my problem, but said problem did not seem to lend itself well to "google-eez"! Here's my problem: I have a Beamer presentation that I present to various ...
3k views

### How to write a class that accepts an optional key-value pair?

a user-defined class: \ProvidesClass{preview}[2012/12/15 v 0.01 class for creating a tight PSTricks diagram] \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} \ProcessOptions\relax \...
307 views

### Creating an environment that uses macros

I have a macro that requires some setup code before being called : \documentclass{minimal} \usepackage{color} \begin{document} % some setup code \colorbox{green}{This is green.} % some cleanup code \...
330 views

### Extracting parts of a .sty file

Can you load only some specific parts from a package while not loading the rest at all? For example, from the code below I wanted to load only the \newcommands %theorems \usepackage{theorem} \...
357 views

### Reason not to use a specific key val package [closed]

According to the very nice list of packages concerning this topic (A big list of every keyval package) I am confused which package I should use now to be prepared for the future. Any ideas which ...