{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

7
votes
1answer
370 views

LaTeX 3 read/write to file like toc

I tried to reimplement some kind of a toc facility. I write wouts argument into a file and try to reinclude this. So the Problem is, that \ior_str_gto:NN seems to stop at linebreaks. Please consider ...
44
votes
4answers
3k views

Abandon LaTeX2e for LaTeX3 or LuaTeX

I think my question is: Should I abandon pdflatex, possibly for xetex or context, and a TeX/LaTeX based macro writing approach, possibly for a LuaTeX or LaTeX3 based approach? Possibly relevant to ...
5
votes
1answer
409 views

LaTeX3: Double number sign (##) [duplicate]

Possible Duplicate: What is the meaning of double pound symbol (##1) in an argument? I see some LaTeX3 code with ##1 instead of #1 for parameters. What are the rules for this? This answer ...
18
votes
4answers
539 views

How do I get a value out of a group?

I've just recovered from my first real foray into LaTeX3 programming. It was ... an experience. Not a completely unpleasant one and once I'd gotten used to the syntax then I found it a lot easier ...
33
votes
3answers
571 views

Will LaTeX3 improve freedom of package ordering and reduce “options clash”?

A prefatory afterthought: you may think this question better asked on the LaTeX3 mailing list, but I believe there may be a more general interest in the rather Byzantine rules for package load order. ...
5
votes
2answers
177 views

Latex3 input/output and expansion of macros

I have a package that formats a course outline and have a macro that reads a formatted user file and turns it into a section. \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \tl_new:N ...
12
votes
1answer
1k views

Update / Install the newest version of LaTeX3

The developing of LaTeX3 goes on. However some feature will be improved or added. The LaTeX3 team can't upload every day a new version to CTAN. How can I install the newest version LaTeX3?
6
votes
1answer
122 views

What is the proper way to pass user input to package commands?

I'm wondering if someone can fill me on the proper technique for passing parameters from a document to the underlying package. The user would interface via a document like this: ...
7
votes
1answer
317 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} ...
4
votes
1answer
199 views

Parse a file with a regexp and return first match

I need to write a command that searches a file for a string that matches a certain regexp, and inserts that string. I know how to parse a string of text using a regex with \usepackage{l3regex} ...
13
votes
1answer
662 views

Subscripts and superscripts

In LaTeX2 a_1, a_{123} and a^1, a^{123} used to produce subscripts and superscripts respectively. In LaTeX3 superscripts still work the same way, but what happened to subscripts? I suspect the ...
6
votes
1answer
189 views

Apply command list to argument correctly

I have a clist filled with values I want to use as commands and apply them all successively e.g. \cmda{\cmdb{\cmdc{arg}}} to the argument of the \apply function. I added an example but it doesn't ...
5
votes
2answers
212 views

regexp capturing issue

The following regexp code gives the result \documentclass[11pt]{book} % use larger type; default would be 10pt \usepackage{pgffor} \usepackage{l3regex,xparse} \usepackage{etextools} ...
4
votes
2answers
379 views

Use the \SplitArgument function to pass an array of token-separated values as a single argument

In my work with linear algebra and matrices I have been quite restricted by LaTeX2 and its maximum of 9 arguments that may be passed to a \newcommand. While LaTeX3 imposes that same limitation for the ...
6
votes
2answers
371 views

formatting real numbers using LaTeX3

I want to format real numbers, which are the result of lengthy calculations using the l3fp package, for output as values to keys in PDF objects. The formatted numbers should have at most 9 figures ...
2
votes
0answers
196 views

Nesting of case-selecting functions [closed]

Can case-selecting functions like \prg_case_int or \prg_case_str be nested? If so I will provide some examples of very weird results I observe with nesting. REVISION: I messed up the syntax ...
79
votes
1answer
2k views

What can *I* do to help the LaTeX3 Project

First, I appreciate this may not be the right place for this question, so absolutely no offence if it gets closed. I'm very much an end-user, rather than a programmer, of LaTeX, and I watch with awe ...
107
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
323 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 ...
18
votes
1answer
1k 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
147 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
231 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
383 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
216 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
633 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
585 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
191 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
384 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
612 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
552 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 ...
9
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
523 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
754 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
765 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
795 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
768 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
138 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
158 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
149 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
210 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
3k 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
455 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
391 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
235 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
268 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 ...