Please do not use this tag for general LaTeX questions. {latex3} is about the new material being developed by the LaTeX3 project. This includes the expl3 programming language along with higher-level concepts such as xparse and xtemplate.

learn more… | top users | synonyms

7
votes
1answer
46 views

How can I generate precisely one warning within a tabularx environment?

I realise this is an unholy mix of expl3 and LaTeX-2e, but most of my code is like this at the moment, unfortunately. I want to be warned when I fail to set a particular variable. More specifically, ...
5
votes
0answers
62 views

Best way to wrap text around figures in expl3

As remarked in another question from today, I am trying to find a more flexible way to get text wrapped around figures than standard solutions like wrapfig or manual use of \parshape, and my eyes are ...
2
votes
1answer
66 views

xgalley breaks spacing around lists

I would like to use xgalley as a more flexible and manual way of wrapping text around figures compared to the standard packages like wrapfig. However, simply loading the package creates problems with ...
11
votes
1answer
78 views

Why does an empty \textwidth coffin lose width when joined with another?

I'm trying to understand coffins. Well, actually, I'm trying to use them. Trying to understand them is a purely instrumental goal. I wanted to create one coffin of width \textwidth and one of a bit ...
2
votes
1answer
26 views

Including a multi page PostScript document into latex

Is there a hack to include a multi page Postscript document into a a final ps document through latex and dvips? Essentially what I have is a ps article that i need in my latex>dvi>ps document. Is ...
4
votes
1answer
42 views

Modify contents of environment using l3regex and then write to file

I want to define an environment (in a class file, as it happens) the contents of which are both displayed on-screen as they are written, but they are also modified (e.g. using the l3regex package) and ...
1
vote
2answers
87 views

Vertical spacing in list — latex3 syntax

Consecutively to this question, I need to add something after the inclusion of on itemed file to be sure that what comes next begins on a nexwline. I don't want skip blanck line in the source I'd like ...
4
votes
1answer
713 views

Package xparse continues to throw “Support package l3kernel too old”

I tried to compile a (flawlessly working) LaTeX document on a different computer, and suddenly was faced with the above error message printed by the xparse package (after that, many errors follow). ...
5
votes
3answers
130 views

Create tabular depending on counter

I want to create a tabular with i+2 many columns where i is a counter. The tabular should have the following layout: ------------------------------- | 1 | 2 | ... | i | foo | bar | ...
0
votes
0answers
55 views

LaTeX3 Problem Loading “xparse” [on hold]

I am trying to use the code for dimensions from this post: Dimension of a Technical Drawing in Tikz However, xparse will not load with the new LaTeX3 updates. I get the following errors: Missing ...
0
votes
0answers
29 views

XeLaTeX with fontspec gives “Undefined control sequence” error after MiKTeX update [duplicate]

I updated MiKTeX this morning and now I can't get XeLaTeX with fontspec to compile at all. It throws an "undefined control sequence" error for \sys_if_engine_luatex:T A minimum working example is: ...
1
vote
1answer
123 views

Expandability: LaTeX3 VS LaTeX

The expandability is the heart of macros/functions. I wonder to know: If a better understanding of expandability in LaTeX3 can only be through a good background of expandability in LaTeX. How far ...
2
votes
0answers
66 views

How to sort a comma separated list?

Using receipt of How to process a comma separated list?, I elaborated the following code for my needs: \ExplSyntaxOn %\seq_new:N \l_input_seq % declare a list (seq) variable \cs_if_exist:NTF ...
8
votes
1answer
76 views

Does expl3 key-setting syntax have an equivalent of TikZ/PGF's .cd?

This question has the following form: 'I know how to do X using Y. I can also do X using Z but not so elegantly as using Y. Can I do X using Z in the same way that I can do X using Y, for a more ...
3
votes
2answers
57 views

Creating a command that builds a 1 dimensional diagram from tokens

This question is indeed very similar to Creating a command that concatenates an input string token by token, but the solution probably looks different and I have difficulties reading up on the ...
7
votes
1answer
125 views

LaTeX3 best practice: using newed commands within package code

I'm quite new to LaTeX programming and currently looking into LaTeX3 and how to write a small ExplClass. This class should provide an allcaps command that I defined as follows: ...
17
votes
2answers
210 views

How to \let an xparse defined command?

Let \example be an xparse defined command, which takes one optional and one mandatory argument. The definition of \example cannot be modified (e.g. because it comes from a third-party package). The ...
5
votes
2answers
82 views

Build table in new command results in too long vertical lines

I am trying to build a table inside a LaTeX 3 command. A MWE: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\createTable}{ m m }{ \begin{tabular}{|c*{#2}{|c}|} ...
1
vote
1answer
32 views

Detecting empty key values when key is provided

I believe I am looking for a LaTeX3 type syntax solution to more appropriately detect a missing argument. To me I would have expected key={} to be a valueless, blank, or empty argument key. After ...
0
votes
1answer
61 views

How to stop indentation of new paragraph in tufte-handout? [duplicate]

I'm using the tufte-handoutclass, but I want to deviate slightly from the template. I would like to separate paragraphs through a small space, not through indentation. I usually do this in my Latex ...
3
votes
1answer
57 views

LaTeX3 loop expanding to repeated {}s

I’m using the ExPex package for vertically aligned linguistics glosses. For various reasons I have some stuff that looks like this: \ex \begingl \gla \rlap{thisisaverylongword} @ {} @ {} @ {} @ ...
3
votes
2answers
163 views

How to make marginratio from geometry package work also with LaTeX3?

With LaTeX2e, the marginratio key provided by geometry package can be used safely: \documentclass{book} \usepackage{geometry} \usepackage{calc} \newlength{\mylayoutwidth} \newlength{\mylayoutheight} ...
10
votes
2answers
164 views

Misunderstanding from l3keys documentation

Based on the interface3 documentation and a nice article in TUGboat, Volume 31 (2010), No. 1 called Programming key–value in expl3 by Joseph Wright, I have been trying to put together a MWE that will ...
5
votes
1answer
83 views

Is \int_step_inline:nnnn inserting something after it finished?

The following snippet \RequirePackage{xparse} \documentclass{article} \usepackage{tabu} \ExplSyntaxOn \NewDocumentCommand\trop{}{ \int_step_inline:nnnn{0}{1}{3}{ a & b & c & ...
1
vote
2answers
106 views

How can I use a LaTeX3 variable as a path in includegraphics (solving the expansion problem)?

This problem is driving me nuts. I'd like to change the includegraphics path depending on some conditions. It seems simple, right? I already read the answers to this question: Passing image path to ...
2
votes
0answers
161 views

How can I migrate commands and environments from LaTeX2e to LaTeX3? [XeTeX]

Sometimes forcing consistency makes things much easier to maintain. The motto "keep it simple" comes to mind. xparse offers the most bang for your buck when it comes to defining commands with various ...
7
votes
1answer
114 views

Has LaTeX3 syntax possibly changed since this question was last answered

I am adapting the LaTeX3 answer in this question: http://tex.stackexchange.com/a/61603 But I can't get the original MWE answer to compile using xelatex. I have renamed the variables, but the error ...
2
votes
0answers
50 views

Access xparse's \BooleanTrue via latex3 expl3

I'm implementing a command with xparse's boolean token processing \NewDocumentCommand{\op}{s o t' t. t^ g}{ % Here I need to check for % (#3 || #4 || #5) && !(#3 && #4 ...
7
votes
2answers
105 views

how to space after LaTeX3 commands

I am trying to define a message that includes a computed number. \RequirePackage{expl3} \ExplSyntaxOn \int_set:Nn \l_tmpa_int { 42 } \msg_new:nnn { package } { message } { The~number~ \int_use:N ...
10
votes
1answer
145 views

Translate \typeout to LaTeX3

The command \typeout{argument} expands its argument and writes the result to the log and the terminal. Writing l3build tests, I sought for an equivalent command in LaTeX3, but only found \iow_log:x ...
5
votes
1answer
98 views

How can the knots TikZ library be used with current l3 (e.g. TeX Live 2015)?

The knots library for TikZ seems to be incompatible with the current l3 packages as provided, for example, by TeX Live 2015. The following example, taken from the library's documentation compiles ...
4
votes
3answers
122 views

Define control sequences in terms of control sequences

I want to set up aliases for changing control sequences using composed control sequence names. Here is an example. \documentclass{standalone} \usepackage{expl3} \ExplSyntaxOn \cs_new:Npn \name { ...
17
votes
1answer
260 views

Patching commands in LaTeX3

Is there some facility in the LaTeX3 kernel to modify existing commands like etoolbox's \preto \appto and \patchcmd do?
1
vote
0answers
49 views

LaTeX3 \clist_sort:Nn — How has this function been implemented? [closed]

I have recently read in the documentation of package l3sort about the usage of \clist_sort:Nn to sort lists. I would like to know how and where \clist_sort:Nn has been implemented. In l3sort.dtx I ...
6
votes
2answers
50 views

Why can you not skip lines in document when providing optional environment parameters with xparse?

Is it intentional that you cannot skip lines when using optional environment parameters with LaTeX3's xparse? It seems that you can skip lines with mandatory parameters. Compare ...
1
vote
0answers
212 views

PDF file size massive in MikTex [closed]

I did my thesis in Latex/Linux using raw gs commands and managed to produce the whole 150page monster within a few megabytes. For brevity I've decided, some 10 years on, to use Miktex under windows ...
10
votes
1answer
200 views

Forthcoming LaTeX3 User Manual

I read very recently that Frank Mittelbach has a Latex3 user manual/developer's reference (not sure which) in the pipeline - in fact its said "... only 250 days to go!". Unfortunately now I cannot ...
2
votes
1answer
112 views

Combine code from two LaTeX 3 answers

I'n trying to combine the code from the answers "Sum of finite series using LaTeX 3" and "Reducing fraction using LaTeX 3" to automatically calculate a finite sum as either the numerator or ...
4
votes
2answers
79 views

How to change a \NewDocumentCommand-based \cite command to accept biblatex-style arguments?

Over at How to quote encyclopedia articles differently from books, magazines, etc. with Biblatex?, I was greatly helped with a macro which solved the question as it was asked. I'd now like to change ...
6
votes
1answer
289 views

What is the difference between \NewDocumentCommand and \DeclareDocumentCommand?

These commands are part of the LaTeX3 Project xparsepackage. This question is to satisfy curiosity… From xparse documentation released on 25 Nov 2014: \DeclareDocumentCommand will always create ...
5
votes
3answers
139 views

Expl3: Constructing command sequences from macro arguments

In my LaTeX laboratory I am doing weird experiments with expl3 (just started to use it some days ago, so regarding l3 I am complete newbie) I am trying to generate command sequence within of another ...
4
votes
0answers
638 views

“Undefined control sequence” error with fontspec [closed]

As a result of updating the l3kernel, l3packages, and l3experimental, a XeTeX document I'm working on no longer compiles. I've narrowed down the problem to fontspec failing to find a control sequence ...
1
vote
1answer
106 views

How can I apply a regex (l3regex) on items in a sequence? [LaTeX3]?

I am trying to apply a regular expression to a string item from a sequence in LaTeX3. Example Compiles with error, but only by pressing return many times. ! Missing control sequence inserted. ...
7
votes
1answer
139 views

How can I iterate over a newline-delimited text file?

Would I need to use a token list? For the purpose of removing confusion, let there be two delimiters: input delimiter (what LaTeX reads as input) output delimiter (what is seen on paper) I would ...
28
votes
5answers
1k views

Reducing fractions automatically using LaTeX 3

Consider the following code: \documentclass{article} \begin{document} \noindent Can I make \LaTeX{} reduce a fraction automatically?\\[\baselineskip] For example, I would like the fraction \[ ...
5
votes
1answer
39 views

Can I mark an internal function or variable as 'not documented' in l3doc?

There are several internal variables I use that I do not see a need to document in the user-interface section, but I want to explain in the implementation. I'd really like to remove the warnings ...
8
votes
1answer
89 views

LaTeX3 l3msg best practices

The LaTeX3 module l3msg provides some nice functions for messaging, errors, warnings and the like and is truly flexible. The workflow is different from what we have been using for LaTex2e packages. ...
7
votes
1answer
288 views

What exactly is latex3/xor?

The LaTeX3 source contains a folder xor which contains, among other things, xo-grid, which is supposed to provide LaTeX3 with grid support. To quote Joseph Wright, Getting to grips with xor is one ...
7
votes
1answer
121 views

Capitalization in headings - a LaTeX3 approach

In the early days of this site we had a question Automatically capitalize first letters of words in titles? with one solution. Since expl3 has matured well since then I have worked out a partial ...
2
votes
1answer
36 views

What are the disandvantages for using a rule to define an \hspace-like command?

In the LaTeX2e source code \hspace and its star version are defined with \hskips. I have defined an alternative version using rules. I cannot see any obvious disantvantages of this approach other than ...