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

10
votes
1answer
856 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 ...
18
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
793 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 ...
30
votes
2answers
851 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
816 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
139 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
159 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
167 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
153 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
215 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
467 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
399 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
238 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
278 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 ...
39
votes
3answers
17k 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
228 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
710 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
482 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 ...
30
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
430 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. ...
12
votes
1answer
905 views

A LaTeX 3 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 the mhchem manual) looks like? I have found examples in TeX and LuaTeX in ...
20
votes
7answers
2k 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
641 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 ...
88
votes
4answers
12k 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
494 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 ...
45
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.