A high-level package from the LaTeX3 project that provides a powerful mechanism for defining new commands with various types of arguments.

learn more… | top users | synonyms

5
votes
0answers
76 views

What are best practices when augmenting and building on the keys provided by someone else's package

The situation is one where I'm developing my own commands and environments which build on the commands and environments provided by another package: for ease of talking let's call this other package ...
4
votes
0answers
58 views

xparse with underscore and optional argument

I need a macro which handles its input as follows: \foo A > #2 = A \foo{A} > #2 = A \foo(B) > #3 = A (round brackets) \foo_m A > #1 = m, #2 = A \foo_m{A} > #1 = m, #2 = A \foo_m(B) > #1 = m, #3 = B ...
3
votes
0answers
35 views

Experimenting with l3box and l3skip's dim variables

Note: The following MWE has no significance in use or further application of any kind rather than just for experimenting with the packages explicitly written on the question title. ...
1
vote
0answers
32 views

Looking for trouble: the κ letter, the combining ⃗, ucharclasses and xparse… (error with κ⃗ but not with k⃗)

Now I'm seriously puzzled. Here's the MWE (using xelatex). \documentclass{article} \usepackage{xparse} \NewDocumentCommand{\li}{v}{\texttt{#1}} \usepackage{fontspec} \usepackage{xunicode} ...
1
vote
0answers
82 views

frame in NewDocumentEnvironment

With beamer frames, this does not work. \newenvironment{itemframe}[1]{ \begin{frame}{#1} \begin{itemize} }{ \end{itemize} \end{frame} } Adding fragile, environment=itemframe as an ...
0
votes
0answers
13 views

When defining a new macro inside a new macro (in xparse) how do I make the internal map long?

I would like to use a DeclareDocumentCommand in order to be able to define a different command (using arguments from the first). I would like to make the internal arguments long. Here is the code I ...
0
votes
0answers
30 views

Texstudio: Autocompletion of xparse commands

I have defined a new command using xparse, but the command doesn't show up in the autocomplete. Furthermore the definition of the command is in red: The command is working, but it just doesn't show ...