{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.

learn more… | top users | synonyms

8
votes
1answer
216 views

How to know the number of elements in a clist in LaTeX3?

I could not find in the LaTeX3 documentation any function to count the number of elements in a clist. So I coded my own, but it is likely to be very suboptimal. Is there any better alternative? To ...
5
votes
2answers
62 views

Passing * arguments using xparse

In xparse I want to define a command Command-One which calls a command Command-Two and calls the *ed version if and only if the *ed version of Command-One was called. Specifically I would like to do ...
5
votes
1answer
130 views

\edef in LaTeX 3?

Is there a version of \DeclareDocumentCommand (in LaTeX 3) which performs like \edef? I.e. where the argument is evaluated at the time of definition as opposed to the time the macro is called? For ...
11
votes
1answer
155 views

Possible incompatibility - LaTeX3 kernel and EbGaramond.sty

In advance, I apologise if this is off-topic as "too localised", but I'm not sure where's the best place to ask. I am running TeX Live 2014 on Windows 7, fully up-to-date as of this morning. Here's ...
10
votes
1answer
248 views

“Hobby” library stopped working after updating to TeXLive 2014

After upgrading to TeXLive 2014 compiling my TikZ pictures prepared with the hobby library stopped working. Consider the following MWE: \documentclass{article} \usepackage{tikz} ...
35
votes
2answers
506 views

What do ExplSyntaxOn and ExplSyntaxOff do?

Related to the question What do \makeatletter and \makeatother do? for LaTeX2e, here related to LaTeX3 What do \ExplSyntaxOn and \ExplSyntaxOff do?
1
vote
0answers
33 views

ubuntu installing l3kernel and l3packages

I apologize for this very basic question. I've downloaded the current versions of l3kernel.zip and l3packages.zip, but have no idea how to install them. As far as I can tell, there is no ...
0
votes
0answers
103 views

Trouble with setting up TexClipse

I have installed TexClipse in past on several machines, however seems like something is wrong this time. The only thing different this time is that I am using Windows 8. I have downloaded MikTex and ...
1
vote
0answers
55 views

Chemical Structural formula in math latex without package [closed]

I need to draw the chemical structures of carbon compounds like benzene, acetone. The problem I am having is that I am using script from ...
4
votes
1answer
65 views

Test for empty value in xparse

Following the recommendation of the answers to this question, I use the following code \ExplSyntaxOn \DeclareExpandableDocumentCommand{\IfNoValueOrEmptyTF}{mmm} { \IfNoValueTF{#1} {#2} % true ...
1
vote
0answers
60 views

Problem adding caption with siunitx

I am using latex/beamer(texlive) to compile a document and I am getting an error. Apparently it has something to do with siunitx package. Here is a minimum working example. ...
1
vote
0answers
17 views

miktex 2.7 on win 7 problem: metafont modes not seen by initexmf, Yap

I am using MikTeX 2.7 + WinEdt 5.x on WinXP for many years without problems. But after I installed it on another machine running Win 7, MikTeX appears to work partially: it compiles all LaTeX ...
3
votes
1answer
40 views

Getting the current value of a global variable into a prop list

This is a more or less direct follow up to this question. The problem there was to get the current value of a global variable into a LaTeX3 prop list. The trick was to use the V variant to get the ...
5
votes
0answers
51 views

Good resources to understand how LaTeX is constructed layer after layer? [duplicate]

I have been a user of LaTeX for a couple of years now, and I would like to start to be involved in the writing packages. The problem is that currently, a lot of things appear to me as "black magic". ...
75
votes
4answers
9k views

Why is LaTeX3 taking so long to come out?

I feel as though I have been hearing about the LaTeX3 project for a very long time. Why is it taking so long for it to come into fruition? Are there major technical difficulties, or is it purely a ...
8
votes
1answer
49 views

Collecting environment content with support for xparse arguments

I'm trying to create an environment which uses xparse style arguments but I have to be able to use the whole environment content in the environment definition, e.g. as an argument. Ideally I'd like ...
10
votes
1answer
161 views

Floating point and fixed point arithmetic in LaTeX3: Where documented? Safe to use?

Since about twenty years, I use a private fixed point arithmetic package which I would like to replace by something newer and better. There is the equally old (but good) fp package, but LaTeX3 is ...
6
votes
1answer
70 views

Dynamic calculation within regular expression quantifier in LaTeX3's l3regex package

I am trying to do some simple calculations to be applied to a regular expression quantifier used in l3regex's \regex_replace_all:nnN function. I've built my code around what I found here: Defining a ...
4
votes
1answer
95 views

Possibility of extending LaTeX capabilities given technology advancements?

As countless questions/answers have noted in the past, LaTeX requires you to compile at least twice when there are references, TOC/LOF, etc. Many of these situations have been documented in the ...
33
votes
3answers
841 views

Using LaTeX3’s xtemplate

Relevant are the answers to Moving to LaTeX3 for package authors and What new bits have already been implemented in Latex3? Will my current documents (with many packages) still compile with Latex3? ...
6
votes
1answer
70 views

LaTeX3: tokens for curly braces

I use a clist of delimiters to define functions that enclose text within the said delimiters. Here is a MWE: \ExplSyntaxOn \clist_new:N \l_delim_clist \clist_put_right:Nn \l_delim_clist { {paren, ...
9
votes
2answers
265 views

How to change operator symbols in truth table

I need to type truth tables for my computer architecture classes. Until now I was using a manually typed tabular but today I've found this answer from Scott H. which provides a command called ...
0
votes
0answers
58 views

The argument of the backslashbox to specify width does not work

I've tried many times but it still does not work. For example, I tried to specify the width of the backslash to be equal to the column, but nothing happen. ...
1
vote
1answer
123 views

Will TeX become mainstream one day? [closed]

I remember starting LaTeX when I was in the last year of my undergraduate studies .I was fascinated by a book in Industrial Organisation, partly because it was a good book per se, but also because I ...
3
votes
2answers
275 views

Extract first letter of each word in a sentence

I don't know if already exists a question like this, but after 20 minutes I haven't found one. There are similar ones, like How to define a command that bolds the first letter of each word in the ...
11
votes
2answers
258 views

Factorial (or, even better, binomial coefficient) function

Is there a function in l3fp for calculating factorials or, even better, binomial coefficients directly?
37
votes
3answers
927 views

LaTeX3-sensitive editors

I'm starting to embed LaTeX3 code in my custom classes and packages -- and enjoying it more the further I learn about it --, but at least to me it would make for an even better experience if, as it is ...
35
votes
3answers
12k views

Difference between LaTeX, LaTeX2e, LaTeX3 ?

I was wondering, what is the difference between LaTeX, LaTeX2e and LaTeX3. Are the 2 higher versions available for use? I use LaTeX. How can I use the other 2 on Windows 7?
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. ...
4
votes
1answer
125 views

Error-handling in next-generation TeX tools

For many beginners (and many with more experience), the biggest obstacle to using LaTeX is the difficulty of figuring out what is causing an error. A message about something not being \defed, for ...
1
vote
0answers
70 views

Separate LaTeX 3 code from 'normal' \newcommand [closed]

Consider the example from here: \documentclass{article} \usepackage{amsmath} \usepackage{siunitx} \ExplSyntaxOn \newcommand*\calculation[1]{% \dfrac{\SI{#1}{\g}}{\SI{\total}{\g}} \cdot ...
10
votes
2answers
148 views

Changing \newcommand into xparse \NewDocumentCommand

I would like to change the \newcommand \shcpoint into an xparse \NewDocumentCommand. How can I achieve this? \newcounter{totalpoints} \regtotcounter{totalpoints} \newcommand{\shcpoint}[1]{% ...
7
votes
2answers
1k views

About the features of LaTeX3

Can someone please provide me the features available in LaTeX3. The reason for me to post this question is that I have not started to learn about KOMA-Script. I am aware of how powerful it is. But now ...
6
votes
2answers
106 views

Breaking a marginpar over a pagebreak

Is there a way to do this in LaTeX 3? I looked at marginpar and orphans, and I am not sure that it addresses my question, but I belive it states that this is not possible in LaTeX 2e. This is most ...
24
votes
1answer
565 views

Programming with LaTeX3

What is the best way to learn to programming in LaTeX3, and where can I get the best information in your opinion. I know that does not sound like a specific question, but I want to deepen on LaTeX and ...
6
votes
1answer
157 views

LaTeX 3 for newbies: simple environments do not work

I needed to create a custom environment with more than one optional argument, so I tried with LaTeX 3 (my first experience). However, I can't seem to create not even the simplest environment. Here is ...
6
votes
1answer
136 views

Is a graphical document author/designer interface realizable with LaTeX3?

With the separation of document authorship, design, and implementation, is a graphical tool for the end-user within reach? LyX tries to do this today, but LaTeX2e is not well-designed for such an ...
1
vote
0answers
37 views

Error With modiagram [closed]

I am trying to compile the following code from the modiagram Manual: \begin{MOdiagram}[names] \atom[\lewis{0.,F}\hspace*{5mm}\lewis{4.,F}]{left}{1s=.2;up,up-el-pos={1sleft=.5}} ...
7
votes
1answer
92 views

What's so bad about xtemplate collections?

The xtemplate documentation describes (briefly and a little unhelpfully) the concept of 'collections' in xtemplate. It goes on to say, However, while the idea of switchable instances is a useful ...
10
votes
1answer
86 views

How do I use l3docstrip?

I've got a bundle I'd like to properly document (and begin to release) that uses expl3 intimately, and it should be documented similarly to expl3 itself (as seen in texdoc interface3. I did a little ...
37
votes
4answers
2k views

Has the time come for a LaTeX3 successor to 'listings'?

I'm currently looking for a nice and challenging open-source project to work/collaborate on after my thesis. I don't have a Comp. Sci. background, but I'd like to learn more about compiler ...
4
votes
0answers
118 views

What is strategic goal of LaTeX3 project team? [closed]

@Joseph Wright in his answer to the post Why is LaTeX3 taking so long to come out? wrote that strategic goal of the latex3 team is a new LaTeX kernel, which should be more flexible than that of ...
9
votes
1answer
87 views

Using LaTeX3 syntax in document commands

I have already read much about LaTeX3 on TeX.SE, in TeX Live’s documentation and in TUGBoat, but there is something I do not yet understand: is the expl3 syntax meant to be used in document-level ...
9
votes
1answer
101 views

Is there LaTeX3's analog of \providecommand?

Suppose that one has two definitions \seq_new:N \l_input_seq % declare a list (seq) variable shared by 2 macros \NewDocumentCommand. Is there a way to check if \l_input_seq is already defined? ...
8
votes
1answer
111 views

Missing space when replacing with \regex_replace_all:nnN

How can I make \regex_replace_all:nnN not remove the space between x y? \documentclass{article} \usepackage{l3regex} \ExplSyntaxOn \cs_new:Npn \replace #1#2#3 { \tl_set:Nn \l_tmpa_tl {#3} ...
4
votes
1answer
440 views

LaTeX3: Defining key to set boolean variable

I want to define a key, which, if set, sets a boolean variable to false. The documentation is not clear on that point. It states (source3.pdf, sect. 87, p. 134): Defines <key> to set ...
6
votes
2answers
279 views

Collaboration among members of the LaTeX3 team: “this is my code and no one touches it” vs. “the team owns the code”?

The book Coders at work by Peter Seibel contains interviews of several high-profile programmers, including Donald Knuth (whose interview I warmly recommend to anyone interested in TeX's history). One ...
7
votes
1answer
299 views

LaTeX3 from Package Options to Class Options

Howdy please consider the following expample: \RequirePackage{ expl3 , xparse , l3keys2e , xfrac } \ProvidesExplPackage {somewhat} {2012/04/29} {1} {descrr} ...
7
votes
1answer
138 views

ExSheets fancy headings breaks

Remarks From the exsheets documentation I grabbed a piece of code to produce fancy headings for questions and solution, but it breaks. It is the fancy heading style on page 49 and 50 in the current ...
34
votes
1answer
376 views

Origin of the LaTeX3 term “coffin”?

The documentation for the LaTeX3 xcoffins package introduces the concept of coffins as follows: In LaTeX3 terminology, a “coffin” is a box containing typeset material. Along with the box itself, ...