Tagged Questions
5
votes
2answers
70 views
Expl variable assignments not behaving as I expect
I don't get what I'm doing wrong here. Neither of the commented lines work as the uncommented version does.
\begin{filecontents}{silly.tex}
This is just a test.
\end{filecontents}
...
8
votes
2answers
147 views
Automating table creation
I have the following table that I need to recreate quite a few times
Due to its size and complexity (yes, I am a tex novice) I am looking into
ways of automating the creation of said table. I try ...
6
votes
1answer
73 views
Conflict between xparse and pstricks: pstricks doesn't believe xparse function is defined
I want to create a pspicture with a variety of parameters which are interdependent. I'm using expl3 for the interface. But I get an error when I try to use \getr
Error: /undefined in \getr
Operand ...
3
votes
1answer
70 views
Commands from xparse inside functions created by \cs_new:Npn?
Is it okay to put commands from xparse inside functions created by \cs_new:Npn instead of \NewDocumentCommand? Would that be a confusion of programming levels?
The example below works but I was ...
3
votes
1answer
105 views
How to map optional arguments to functions?
What is the right way to map each optional argument to a function that applies a specific style to it?
In the example below, optional arguments are typeset in bold face preceded by a colon. But I ...
4
votes
2answers
117 views
xparse verbatim with newline
I'm trying to define a simple command using xparse and it's verbatim argument:
\DeclareDocumentCommand\macro{v}{#1}
but see
! LaTeX error: "xparse/verbatim-newline"
!
! Verbatim argument of ...
4
votes
1answer
130 views
Change \baselinestretch using xparse in TeX Live 2012
Is there a preferred way to change \baselinestretch using the xparse package included in TeX Live 2012? (I believe this is xparse version 3570, dated 2012/04/23.)
If I run latex -output-format pdf ...
4
votes
1answer
223 views
Equivalent of \@afterheading for LaTeX3
I want to define an environment with LaTeX3 where I can supress the indention in the first line. For LaTeX2e you can use \@afterindentfalse\@afterheading.
The example use this combination. But I want ...
5
votes
1answer
172 views
Splitting on new lines using \SplitList
What do I pass to \SplitList to get it to split the string on a new line? I've tried \n and \r, but neither of those work.
The code I used was
\documentclass{article}
\usepackage{xparse}
...
2
votes
1answer
441 views
Undefined control sequence with xparse
I just installed the texlive-latex3 package and tried running pdflatex on the following (copied directly from another question posted here):
\documentclass{article}
\usepackage{xparse}
\ExplSyntaxOn
...
7
votes
2answers
987 views
xparse: Define new command with multiple optional parameters
I'd like to define a new command with optional parameters using the xparse package. Please consider the following example:
\documentclass{minimal}
\usepackage{xparse}
...
