{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

97
votes
5answers
9k views

LaTeX3 versus pure Lua

Reading this site for the last nearly two years I've learned a lot about LaTeX3 (which I had previously understood to be a defunct pipe dream) and LuaTeX (of which I was previously totally unaware). ...
28
votes
1answer
300 views

LaTeX3 — What is the difference between the modules l3seq and l3clist?

LaTeX3 provides the two modules seq and clist. What is the difference? The module clist is introduced by Comma lists contain ordered data where items can be added to the left or right end of ...
17
votes
1answer
940 views

LaTeX3 and pauper's coffins

Frank Mittelbach in this answer said: "I would be interested who would attempt to do that in the plain TeX box model approach. In the MWE below is my approach which I will from now onwards call it for ...
10
votes
3answers
141 views

What is the difference between \cs_if_exist:NTF and \cs_if_free:NTF?

I don't understand what difference of existance and being free means. Consider this example: \documentclass{article} \usepackage{expl3} \begin{document} \ExplSyntaxOn \cs_new:Npn \my_cs: {} ...
9
votes
1answer
225 views

Print catcodes in LaTeX with LaTeX3

I have the following MWE which prints the catcode of every character in the list. The input method is: \MyList{`+,{`,},`\%,`a} but I want to simplify as follows: \MyList{+,{,},\%,a} Here the ...
5
votes
1answer
349 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
203 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} ...
3
votes
1answer
568 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
1answer
538 views

How to process a comma separated list?

Using receipt of "LaTeX3: unable to convert space separated list into clist" I elaborated the following code for my needs: \documentclass{book} ... \usepackage{expl3} \begin{document} ...
21
votes
5answers
2k views

What is missing in LaTeX?

I have been reading this article and started to think about the position of LaTeX amongst the current competitors. Currently, I am using it (or XeTeX) even for ‘casual writing’ and sometimes I spend ...
5
votes
1answer
175 views

LaTeX3: unable to convert space separated list into clist

I want to convert a space separated list of items, given as argument to a function, into a clist variable in order to iterate over them. However, I am not able to create a usable clist variable as the ...
8
votes
1answer
376 views

NFSS: Is there any further plan about font scheme in LaTeX3?

What will be the place of New Font Selection Scheme (NFSS) in LaTeX3? NFSS is neither new nor answering to modern trends (I mean True and Open Type fonts). LaTeX3 team has already done huge work but ...
8
votes
1answer
554 views

Complete example from LaTeX3 intro

I don't understand an example from section 6.1 of expl3-intro.tex from LATEX3 documentation. It is said there: Here are two equivalent ways of defining the function \foo:nn: \cs_set:Npn \foo:nn ...
17
votes
2answers
526 views

Write new package with LaTeX2e or LaTeX3

I’m planning to create a package and I wonder if it’s better do do this with LaTeX3 syntax or the „old“ LaTeX2e, which is the one I know. Will LaTeX2e packages be supported by LaTeX3? I can give ...
8
votes
2answers
2k 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} ...
2
votes
1answer
517 views

If I'm about to write a book on LaTeX, should I wait for a LaTeX3 release?

From time to time I plan to write a beginner's book on LaTeX. But I'm not sure of this: isn't it better to wait some time more until a workable release of LaTeX3 reaches the market? I'm really ...
29
votes
2answers
2k views

How do LaTeX3 and ConTeXt compare?

As I understand it, LaTeX3 is a rewrite of LaTeX to fix the shortcomings of LaTeX2e, and ConTeXt is another TeX-based language (set of macros like LaTeX?) that solves quite a few problems that are ...
0
votes
0answers
314 views

polyglossia error after MiKTeX update [duplicate]

Possible Duplicate: xelatex stopped working after TexLive2011 update 2 days ago Sorry, I don't know where I could report bug that appeared after MiKTeX Update. Here is a test file: % ...
9
votes
1answer
679 views

Trapping LaTeX error/warning

Is there a way to trap an error/warning in LaTeX during compile time? I'm thinking of something similar to the VB script On Error Goto <blah>, but this time for LaTeX in something like ...
16
votes
1answer
1k views

Why do I need Lua or LaTeX3 in a plain old technical document?

I wrote and maintain a couple hundred page computer related technical spec in XeLaTeX. I use tables, figures, bitfields, algorithms and other typical trappings. I'm intrigued by LuaTeX and LaTeX3, ...
4
votes
0answers
727 views

Where is template.sty? (Required in xfrac) [closed]

Having just updated to TL2011, I find that the xfrac package fails with the error: ! LaTeX Error: File `template.sty' not found. Sure enough, neither kpsewhich nor find can locate it. I can find ...
28
votes
2answers
748 views

Moving to LaTeX3 for package authors

I would like to write a package using as much of LaTeX3 stuff as possible (in particular expl3, xparse and xtemplate). What should I read to learn these? In particular: I know that there are good ...
16
votes
2answers
716 views

Where can I find the LaTeX3 manual?

Few month ago I saw a big pdf-manual of all LaTeX3-packages and the new syntax. I think it was bigger than 300 pages. I can't find it on the web. Does anyone have a link?
3
votes
1answer
136 views

LaTeX3: problem with .generate_coices:n after l3kernel update

I'd like to report an issue I encountered with the l3keys sub-package of l3kernel (Hope it is ok to be done here). The test code at the end produces the error ! Undefined control sequence. ...
3
votes
2answers
152 views

LaTeX3: \fp_pow:Nn giving wrong results

I want to draw the square-root from a rational number using the l3fp package. As the package does not provide an sqrt function, I played with \fp_pow:Nn. Unfortunately, I could only get the correct ...
5
votes
3answers
145 views

LaTeX3: \dim_eval:n and e-TeX dimension expression

Why does the following code not yield the expected result 264pt? Are non-integers not allowed as factors in e-TeX dimension expressions? \documentclass{article} \usepackage{expl3} \begin{document} ...
2
votes
2answers
144 views

LaTeX3: \dim_set:Nn with l3calc or calc type dimension expression

I am getting an error when I try to set a dimension register with a l3calc/calc type dimension expression using LaTeX3 \dim_set:Nn command. Even wrapping the whole expression into \dim_eval:n{} ...
8
votes
1answer
200 views

LaTeX3: \ProcessKeysOptions hangs while processing global (class) option

The code of the trivial package mypkg.sty below defines key draft. If draft is given as a class option, LaTeX hangs at the command \ProcessKeysOptions. This seems to be a bug. Or is there something ...
4
votes
1answer
2k views

Probability Tree-diagram with TikZ

Thanks for helping me out. How can I make the following tree-diagrams? http://www.vias.org/tmdatanaleng/cc_prob_cond_independ.html
4
votes
1answer
442 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 ...
11
votes
1answer
370 views

LaTeX3: how to access package options

In my package I intend to write in expl3 syntax, how can I get access to the list of options passed to it on the document level via \usepackage[<option list>]{my-l3-pkg}? I know more or less ...
6
votes
1answer
234 views

LaTeX3: \file_if_exist:nTF & complete path to the file found

\file_if_exist:nTF searches the TeX/LaTeX input path for the filename given as an argument. Now I am looking for a way to get hands on the complete path to the file, in case it was found. From the ...
4
votes
1answer
264 views

LaTeX3: expansion of argument to function

I would like to define functions which extract the PDF object number from a PDF object reference, such as 12 from 12 0 R. I defined two versions of such a function, a low level one and a high level ...
7
votes
3answers
2k views

LaTeX3: how to define a variable locally

I am trying to learn the LaTeX3 syntax. One of the questions I have come up with is how to define a variable, i. e. a macro without arguments in TeX parlance, with local scope within a group. In TeX ...
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?
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 ...
10
votes
1answer
611 views

How can I define NaN in LaTeX3

LaTeX3 l3fp offers a way to check if a variable has a an infinite value. The following code defines a number and then sets its value to π/2. It then calculates tan(π/2) to get a large result. ...
8
votes
1answer
442 views

How do I use the sin function in LaTeX3

I am exploring some of the LaTeX3 routines and syntax. How do I get to use functions such as sin etc. I get an error with the sin function in the following (please uncomment sin function to view the ...
28
votes
2answers
2k views

Help in choosing LaTeX2e books in light of LaTeX3 development

I'm quite new to LaTeX (~3 months) and I'm excited about buying the books. I just bought The TeXbook on eBay and hopefully it should arrive next week. I might even want to get a printed copy of TeX by ...
17
votes
1answer
411 views

What are expl3 quarks? When, where, why and how should I use them?

I feel particularly bombarded by sub-atomic particles right now (and it's mostly Will's fault :)). First, in Will's answer to this question today, he referred to expl3's \prg_case_str:nnn command. ...
11
votes
1answer
831 views

A LaTeX3 macro to typeset chemical compounds?

Out of curiosity I wonder how would a macro coded in expl3 that does the basics of mhchem (as in section basics in mhchem manual) looks like? I have found examples in TeX and LuaTeX in ...
19
votes
7answers
1k views

Pros and cons of the LaTeX3 syntax?

The programming language introduced by expl3 in LaTeX3 is a bit unusual compared to other TeX macro languages in that it uses both _ and : for function names. Could someone provide some technical ...
15
votes
3answers
621 views

Will LaTeX3 have proper support for hooks? Does LuaTeX?

Tex has powerful support for extensions triggered by events happen in generating output, by running one of six token lists appropriately: \everycr \everydisplay \everyhbox \everymath \everypar ...
75
votes
4answers
10k 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 ...
4
votes
2answers
447 views

How to test whether next token on input stream is catcode 10

Why doesn't the following code work? From a failed, now fixed, SO answer of mine: \documentclass{article} \usepackage{expl3} \ExplSyntaxOn \newcommand\latinabbrev[1]{ \peek_meaning:NTF . {% Same ...
39
votes
1answer
2k views

What new bits have already been implemented in Latex3? Will my current documents (with many packages) still compile with Latex3?

I do know that LaTeX3 is a long term project, but I'm interested to find out what's new in LaTeX3 and have there already been any big advancements and backwards incompatible changes.