{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

21
votes
2answers
393 views

Sum of finite series using LaTeX 3

Is it possible to calculate the value of a finite series, say, using LaTeX 3?
1
vote
1answer
28 views

Pgfplot display only x axis, one value point with label and text

I want to plot a chart with one axis and draw a point at a specific value and show it with a label. In addition I'd like to place two label on the min and max tick of x axis. For q better ...
0
votes
0answers
39 views

Question regarding the loading of fonts

A TeX file loads some fonts not found in the computer \setCJKmainfont[BoldFont=FZDaHei-B02S,ItalicFont=Adobe Kaiti Std]{FZZhongDengXian-Z07S}% \setCJKsansfont{Adobe Heiti Std} \setCJKmonofont{Adobe ...
4
votes
0answers
58 views

Does LaTeX3 have something for patching (or appending code to) commands?

Item #12 of http://tex.stackexchange.com/a/148734/18401 suggests that LaTeX3 maybe has something for patching (or appending code to) commands, à la etoolbox or xpatch. Is it the case?
2
votes
1answer
22 views

If used insdide \cs_new(_protected), \IfNoValue(TF) doesn't detect -NoValue- at document-level

I guess my problem is related to Commands from xparse inside functions created by \cs_new:Npn? but I still don't understand what's going on: in the following WE (not minimal, sorry for this), why ...
5
votes
2answers
45 views

LaTeX3 Expansion without \exp_after:wN

LaTeX3 reduces the need to use \expandafter/\exp_after:wN tremendously. But what is the LaTeX3 way for this problem? \documentclass{article} \usepackage{expl3} \begin{document} \ExplSyntaxOn ...
0
votes
0answers
37 views

How can I tl_put_right a genuine }

LaTeX3. How can I tl_put_right a genuine } into a token list? All my attempts to expand \c_group_end_token were not successful.
0
votes
1answer
21 views

Page number in the table of content doesn't appear correctly

I have the following section in my latex: \section{Development environment and tools\\} The problem is that the page number 4 doesn't appear in the same line but appear below the section title in ...
9
votes
1answer
111 views

Why spaces are ignored even in textual arguments within \ExplSyntaxOn… \ExplSyntaxOff?

I've seen workarounds for having the spaces recognized within \ExplSyntaxOn... \ExplSyntaxOff. But I wonder why spaces are unrecognized even for (LaTeX3) macros arguments undoubtedly expecting text, ...
4
votes
1answer
98 views

LaTeX 3 - How can I use it instead of the current?

Recently I updated my TeX Live distribution via the TeX Live Utility. I notice it installed three Packages: l3experiemtal, l3kernel, l3packages and lt3graph. I was wondering if can compile my ...
6
votes
2answers
94 views

How to define a private color in a (possibly LaTeX3) package?

Suppose I'd like to define, in a personal package mypackage, a private (xcolor's) color: \definecolor{my_so_beautiful_red}{rgb}{1,0,0} the name of which I'd like to not be accidentally used by ...
6
votes
1answer
82 views

LaTeX3's \GetIdInfo: how is its argument automatically populated?

The l3bootstrap's documentation says \GetIdInfo extracts all information from a SVN field. But I have no idea where this field comes from. So I'd like to know how \GetIdInfo does work and if it is ...
0
votes
0answers
58 views

Jaxodraw preview does not work, but .tex export does

I am running Jaxodraw 2.1-0 on Xubuntu 14.04, and my preview button doesn't work. I get the "axodraw4j.sty not found" error message, although that file is in the jaxodraw directory. Further, if I ...
0
votes
0answers
70 views

Endfloat and appendix: two sets of floats

I am using the endfloat package and I'd like to print two sets of floats. The first set right after the bibliography where each figure and table is labeled Figure 1, Figure 2, Table 1, Table 2, etc ...
7
votes
2answers
147 views

Workaround how to use expl3 functionality in tikz

What I want to do I want to create a command \planfigur{<edges>}{<angles>} which draws a triangle using TikZ. \planfigur should have 2 mandatory arguments, which let me specify edges ...
2
votes
2answers
112 views

LaTeX3: If next in input stream is command X or environment X, do Y else Z

Because I write my own document class (okay, I try to ...), this question bothers me for weeks as there are many situation, in which I need something like this. Is there a way to test, if the next ...
7
votes
1answer
139 views

How should I create complex objects using xtemplate?

Consider the following trivial example: \documentclass{article} \usepackage{xtemplate} \ExplSyntaxOn \DeclareObjectType { test } { 10 } \ExplSyntaxOff \begin{document} oh, nose! \end{document} ...
9
votes
1answer
115 views

List of all control sequences let to primitives in common formats

I would like to know a list of all control sequences which are let equal to primitives in common formats. For plain TeX for instance, we would get the list \endgraf % = \par \endline % = \cr \repeat ...
3
votes
1answer
40 views

Accessing sub/keys with l3keys

I'm not sure if I'm taking it too far, but I think I've seen something like this around. This gives an error: \documentclass{scrartcl} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand \RULE {} ...
5
votes
2answers
111 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
163 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
227 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 ...
15
votes
2answers
389 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} ...
1
vote
0answers
214 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 ...
1
vote
0answers
156 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
99 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 ...
2
votes
0answers
98 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
39 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
51 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
54 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". ...
8
votes
1answer
73 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
200 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
137 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 ...
5
votes
1answer
117 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 ...
6
votes
1answer
94 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, ...
0
votes
0answers
81 views

The argument of the backslashbox to specify width does not work [closed]

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
143 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
340 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 ...
9
votes
2answers
508 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 ...
11
votes
2answers
330 views

Factorial (or, even better, binomial coefficient) function

Is there a function in l3fp for calculating factorials or, even better, binomial coefficients directly?
3
votes
0answers
45 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
127 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
80 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
190 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]{% ...
6
votes
2answers
154 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 ...
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 ...
1
vote
0answers
43 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}} ...
6
votes
1answer
150 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 ...
7
votes
1answer
104 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
125 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 ...