Questions tagged [latex3]

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Spacing problem with subscripts by using math symbols within glossary

I have a problem by using glossary. E.g. i define a math symbol as follows: \newglossaryentry{spannungsvektor}{% name= Spannungsvektor, description=Spannungsvektor, sort=t, user1={$\...
1 vote
1 answer
53 views

Concentric multiple half-spheres

Is it possible to reproduce the following figure with pure tikz (no metapost, nor lualatex, nor python, nor R, or Inkscape...)? If yes how?
0 votes
1 answer
42 views

expl3 / setlength not working in preamble with expl3

I am writing a package that should output typographic sizes. For example the absolute character height, the x height, average character width,... These should be available in the preamble. \...
  • 21
3 votes
3 answers
116 views

Why use \msg_error:nn(nnnnn) in expl3?

expl3 has several kinds of error/warning types that can be issued during execution, in particular: \msg_fatal:nn(nnnn) halts the execution; \msg_critical:nn(nnnn) stops scanning the current file; \...
  • 43
1 vote
0 answers
47 views

Expansion in latex3 within sub-command

Starting from here, I want a function that add a superscript depending on the number of elements passed as arguments. As depicted below. As you can see, when there already is a superscript in the set,...
  • 3,916
2 votes
1 answer
29 views

Error texnansi.sty not found

I use texmaker on Ubuntu and lately I keep getting some errors when compiling latex beamer files. In particular, I had an issue with algorithm.sty missing, which was solved after installing texlive-...
4 votes
2 answers
65 views

Practices to write bulk text literals with spaces in it in expl3

Suppose I am writing a custom document class, where I would like to add a dynamic bulk of human-readable text (hence with spaces) to the title page: \tl_set:N \l_my_var_tl {My Dynamic Variable} \...
  • 73
1 vote
2 answers
51 views

Vertically align symbols in the table

I want to create a table that is aligned vertically and horizontally. I use the following script How can I vertically align the symbols in the table? Currently, they are automatically aligned towards ...
  • 13
0 votes
2 answers
36 views

Naming a pgfmath macro depending on an element of a comma separated list

I want to create a new command, that has more than 9 arguments. Therefore, i am using \NewDocumentComannd and comma separated lists. With this new command i use \pgfmathsetmacro, too. A simplified (...
0 votes
0 answers
19 views

Manually place page number height in latex

I have many custom size pages, and I wanted to place the page number exactly 0.25 inches above the border of these custom-size pages. For example, I have defined the page size as follows: \...
3 votes
1 answer
61 views

Dealing with underscores in `\section` and similar

The code below doesn't compile logically: Verbatim-like command '\test' illegal in argument... Is there a way to "fix" this? If not, can I at least use a m parameter, and then replace all ...
  • 12.2k
0 votes
2 answers
91 views

Correctly begin and end an environment via commands

I would like to create a set of commands in my recent document class jwjournal for temporarily switch the syntax off and on. However, when trying to end and start the main environment with commands, ...
  • 7,135
2 votes
1 answer
44 views

Attempting to forward select l3keys arguments from an outer environment to a tblr: "Unexpandable command inside column type"

I'm attempting to create an environment that takes its arguments as key-value pairs, uses some of them, and then forwards the rest on to a tblr environment from tabularray. This results in an "...
  • 123
0 votes
1 answer
57 views

How to create a table output from individual inputs?

I'm trying to generate a list of the author's orcid number from individual orcid numbers. Each orcid number of an author is given by the \orcid command in \author. However, I couldn't find enough ...
3 votes
1 answer
108 views

Foreach with different label

Is there a simple way to have display my coordinate system? \begin{tikzpicture} \draw [-latex,thick] (0,0)--(12.5,0); \draw [-latex,thick] (0,0)--(0,10.5); \foreach \y in{2,...
1 vote
1 answer
54 views

What is the difference between \cs_new_eq:NN and \cs_gset_eq:NN?

What is the difference between \cs_new_eq:NN and \cs_gset_eq:NN, defined in section "Copying control sequences" of The LaTeX3 Interfaces manual (which is section 4.3.4 on p. 19 of the ...
  • 10.5k
3 votes
2 answers
286 views

Why don't c- and f-type expansions respect protected commands?

According to this answer, all functions without a star are (or at least should be) \protected, this way they don't expand on x or e type expansion or when written to a file. f and c type expansion ...
  • 10.5k
8 votes
2 answers
287 views

Difference between the V function parameter specifier and the o specifier in LaTeX3 programming

In LaTeX3 programming, how does the V function parameter specifier differ from the o specifier? How is the o specifier meant to be used in contrast to the V specifier? A related question: V vs. x
  • 10.5k
1 vote
1 answer
32 views

Include sorted non-repeating random list of pdfs

I am trying to create a file that can generate a random, non-repeating, sorted list of numbers so that I can generate various sets of homework assignments. I managed to find a way to generate a random ...
  • 113
0 votes
2 answers
93 views

How can I insert the black little square at the end of each question in LaTeX like this picture? [duplicate]

How can I insert the black little square at the end of each question in LaTeX like this picture?
2 votes
1 answer
113 views

Question about important basic functions for middle schoool textbook

I'm recreating and old middle school (Europe) textbook table in LaTeX about some very common functions (see below). I would like a feedback if some people think i should do some improvement or add ...
0 votes
1 answer
35 views

Changing font size of main text and Centering title in "Pomona Linguistics LaTeX Template"

I am using Pomona Linguistics LaTeX Template (https://www.overleaf.com/latex/templates/pomona-linguistics-latex-template/bvdxdtpwysnd) provided at Overleaf and would like to: (1) Change the font size ...
1 vote
0 answers
61 views

List of LaTeX3 functions

I'd like to have an overall impression of all LaTeX3 could do, but the tutorials I've read all gave only a few functions as examples. Is there anything for LaTeX3 that works like macros2e, which is a ...
  • 747
0 votes
0 answers
77 views

Asymptote code copied from Geogebra to Overleaf not working - trig function graphing

I tried to copy the asymptote codes from Geogebra graphs to Overleaf. But, the graphs are not showing correctly, image distorted. How can I fix that? This is the sin/cos/tan function graph. The ...
0 votes
1 answer
447 views

The L3 programming layer in the LaTeX format is outdated

I'm submitting my manuscript to a journal. It required me to provide the .tex file. Everything is ok when I compile the source file on overleaf or my local texlive. But the submission system failed to ...
3 votes
1 answer
142 views

LaTeX array variable

Can't seem to figure out how to create a variable containing multiple numbers. \def\numbers{{1,2,3,4,5},{6,7,8,9,10},{11,12,13,14,15},{16,17,18,19,20},{21,22,23,24,25}} \numbers[1][1] Expected ...
  • 33
1 vote
1 answer
31 views

12 catcode for UNDERSCORE and character printed

Does a LaTeX3 version of the following code could be simpler? I understand the logic, but I dislike the code... \documentclass[12pt]{article} \usepackage{color} % Source: https://tex.stackexchange....
  • 12.2k
1 vote
0 answers
24 views

How to save \url and special characters into a token list?

I'm trying to fix zepinglee/citeproc-lua#30 which can be simplified as follows. The .bbl file generated by citeproc-lua with citations and bibliography in it and it is read by LaTeX at \begin{document}...
0 votes
2 answers
32 views

Nested Include Loop Acting Strangely

I'm trying to implement filesystem based file includes for a paper I'm writing and have previously asked a question on this topic. The accepted answer seems to work in the case that I only have a ...
0 votes
1 answer
44 views

Passing Commands in Tex or Latex

I want to use a author object in different prints. The author has a structure like this: { {NameOfFirstAuthor|EmailOfFirstAuthor|CurseOfStudiesOfFirstAuthor|SemesterOfFirstAuthor} {...
  • 25
3 votes
3 answers
130 views

Custom merge rows in LaTeX

I need to create a table as seen in the image, but the text does not fit. This is how it looks: The code used: \begin{table}[h] \begin{center} \begin{tabular}{|p{4cm}| p{11cm}|} \hline Versiones ...
  • 31
1 vote
1 answer
33 views

How to eliminate the figure number when cross-reference multi-subfigure in latex?

I want to cross-reference a chain of subfigures. I use the package cleveref in the preamble as follow: \usepackage[capitalize,nameinlink]{cleveref} \captionsetup[subfigure]{subrefformat=simple,...
2 votes
1 answer
198 views

Bug report on babel, biblatex packages (probably latex3 related)

I`m using MikTeX (4.8) and after the last update, I'm getting some odd error messages related to "__text_expand_loop:w has an extra } " it took me a while to find the possible root of the ...
  • 85
0 votes
1 answer
36 views

Simplified Arabic font in lyx makes the equations form bad

thank you all. when the font in lyx is Simplified Arabic, the equations form is bad. Here the file: #LyX 2.3 created this file. For more info see http://www.lyx.org/ \lyxformat 544 \begin_document \...
1 vote
1 answer
101 views

Is there a way to use latex packages in markdown file?

I'm trying to use the 'actuarialangle' code but it doesn't work in markdown file, it just works when i use Rmarkdown file... --- title: "Using more LaTeX packages" output: pdf_document: ...
  • 11
3 votes
2 answers
214 views

Is there a way to reset all l3keys keys to their initial value?

This is a general and documented feature of latex3, but I shall still provide an MWE in order to illustrate the problem, see below. Suppose I have a function which uses the l3keys key-value interface, ...
1 vote
1 answer
29 views

How to remove numbering from one single entry in list of figures

I have multiple figures, and I have one specific figure for which I would like to remove the numbering in the \listoffigures, let us call it fig_x I have found on other threads that using the caption ...
  • 115
0 votes
0 answers
57 views

Regarding \input and for loop in Latex

I have 179 TeX files present inside a folder called Commands. Now there is a main.tex file in which I've used 179 times \input{Commands/*.tex} to invoke all 179 files. How can I use for loop here to ...
2 votes
0 answers
94 views

Status on the Tagged PDF project

Does aynone know what the status of the Tagged PDF project is? How far has the LaTeX3 Team progressed on the time line from section 3 of "LaTeX Tagged PDF -- Feasibility Evaluation"? Also, ...
0 votes
0 answers
68 views

Chemical drawing software with latex script export

I have a query Any chemical drawing software is available that is able to export the structures or reactions to latex script, and then compiled by a latex editor Thanks in advance
0 votes
1 answer
29 views

How to obtain in advance the logical number of a latter page

I need to obtain the logical number of a certain page by its absolute page number. For example, in a document with 9 pages whose logical page numbers like this: I II 1 2 3 4 A B C, At the the part of ...
  • 2,657
5 votes
1 answer
176 views

latex3: Keep whitespace

Regularly, I much appreciate that within latex3/expl3 whitespace is ignored. However, there are situations in which I would prefer to temporarily disable this behavior. One example of this is the ...
  • 2,691
0 votes
1 answer
64 views

longtblr caption shrinks as the table width decreases

I found some small problems when using "Redefined TblrTemplates". This redefined template was used to align the longtblr captions to the left. If the table's caption is long enough, my ...
  • 3
21 votes
1 answer
2k views

LaTeX2(e) vs LaTeX3

I have some questions regarding the different versions of LaTeX. Is LaTeX3 fully backwards compatible? Is LaTeX2(e) deprecated? Which version of Latex do I get when I install MiKTeX or TeX Live? 2 or ...
0 votes
1 answer
63 views

LaTeX3 Defining conditional functions

I ran into a problem when creating a new condition. The meaning of the condition \foo_if_eq is to check the global variable \g_my_tl for compliance with a certain string bar, the result is true/false. ...
1 vote
0 answers
121 views

memoir error with \stockheight under pdflatex-dev

Processing the following source... \documentclass{memoir} \begin{document} Hello. \end{document} ... with the pdflatex-dev command now gives error as shown here: This is pdfTeX, Version 3.141592653-...
  • 7,214
0 votes
0 answers
52 views

doclicense incompatibility with pdfmanagement

Package doclicense is now incompatible with the new pdfmanagement when the latter is, as I understand it, invoked automatically by the \DocumentMetadata command. And the cause seems to be that ...
  • 7,214
0 votes
1 answer
49 views

Illegal unit of measure produced by a LaTeX3 function

I used the function \cs_new:Npn\宽度{168/(1+\thecnt)} to compute length, where cnt is a counter and 168 actually is the width of a4paper in millimeters times 0.8. Now \setlength{\tabcolsep}{\宽度 mm}{\...
  • 747
0 votes
0 answers
47 views

The repeating command in LaTeX3 and \newcommand both use #1 and they have a clash

Just as the title says, both \newcommand and \int_step_inline:nn use #1 and they get in conflict. That is to say, I want to use #1 to refer to the variable that records how many times the repetition ...
  • 747
0 votes
1 answer
32 views

The line says: misplaced \omit. underfull \hbox badness(1000) in alignment at line 818--818. Also the error is mentioned below

The Code I ran: \begin{table*}[htbp] \caption{alekga g. The number of stars represents the strength levels. (* = good, * = better, * = best)} \centering \begin{tabularx}{\textwidth}{|>{\centering\...
  • 1

1
2 3 4 5
17