Questions tagged [tex-core]

{tex-core} is for questions for syntax, semantics and expected behavior of TeX primitive control sequences, regardless of extensions (eTeX, etc.) formats (Plain or LaTeX) and macro packages (tikz). Such questions usually relate to low-level TeX programming or the behaviour of TeX at an underlying level. Note that even Plain TeX is a format in itself; for questions about it, use {plain-tex}.

Filter by
Sorted by
Tagged with
59
votes
2answers
6k views

Electronic version of Knuth's “TeXbook”?

I have a printed copy of the TeXbook (from D.E. Knuth) at home. Now that I travel a lot, I don't want to take my library with me every time. Question: Is there a legal way to obtain (=purchase) a PDF ...
0
votes
0answers
29 views

Problem with installing Tex Live for LaTeX workshop

I was hoping to turn my VS Code into a TeX / LaTeX editor. I came across an extension called LaTeX workshop which told me I had to install Tex Live. Once I downloaded the installer my AV told me it ...
3
votes
1answer
56 views

Is there a token which neither can be redefined to be \outer nor can be affected by \uppercase/\lowercase?

This is more an "academical" question: Is there a token which neither can be redefined to be \outer nor can be affected by \uppercase/\lowercase no matter what \lccodes/\uccodes are current? ...
6
votes
2answers
117 views

Different Behaviors Digesting \csname x\endcsname and Digesting \x (expansion issue)

This question has been significantly EDITED, as I learned more of the problem. If I was good, I would be able to create macros with multiple optional arguments, but not only can't I, but in this case,...
2
votes
1answer
46 views

Can't find file tgtermes (luatex)

I'm trying to build tyscheme, which is a TeX (not LaTeX) document. The README file directs me to run a sequence of commands, the first one is luatex index, which fails as it can't find file tgtermes ...
1
vote
0answers
42 views

Will LaTeX compile Plain TeX? [duplicate]

I'm really new to TeX and I'm trying to learn how the different levels of TeX relate to each other. As far as I understand LaTeX is a set of macros for Plain TeX with the purpose of making life easier,...
2
votes
1answer
239 views

Updating missing font from previous TeX release on a Windows 10 PC?

This is a lot tougher question than I expected it to be. How do I: a) add fonts to TeX from previous releases? b) I change the call in my document from a previous-release default font, to a ...
3
votes
2answers
3k views

“! You can't use `\raise' in internal vertical mode” error

I used the command \raise to superimpose a title to a writing. I got the error ! You can't use `\raise' in internal vertical mode which puzzled me for a while. For those interested, here is my ...
1
vote
1answer
59 views

plain tex. beginsection doesnt break line

I'm typing a math article for someone. He asked me to type it in plain TeX (rather than LaTeX) because he is used to plain TeX and would like the option to edit my typing, I think. Anyway, I am new to ...
164
votes
5answers
372k views

Escape character in LaTeX

I need to output the below text but since \ is a special character, I cannot: [RegularExpression(@"\d+")] Also sometimes I need use dollar sign $ as well but it seems to be a special char, too. ...
0
votes
1answer
63 views

(xe)tex: How do I apply \ifodd\pageno logic (\special) to image, based on page the box is set on, rather than when file is read

Working in (plain) XeTeX, I would like to apply a certain transformation (mirror on vertical axis) to an image if it appears on an odd-numbered page. I'd like a fairly general solution, as in some ...
0
votes
1answer
56 views

Letters dont work in math mode using the MinionPro package

Everything seems to work fine except the second you put a letter in math mode, you cant produce a PDF. \documentclass{article} \usepackage{fontspec} \usepackage[T1]{fontenc} \usepackage{inputenc} \...
0
votes
1answer
99 views

Are there things that TeX can do but LaTeX3 can't?

Sorry for this general question but to be honest I hate more and more coding in TeX and even if I am a very beginner coder in LaTeX3, I really appreciate using it.
4
votes
5answers
243 views

Prevent hash doubling with \message

Assume a token sequence: Token 1: Explicit hash character of category code 6. Token 2: Explicit 1 of category code 12. Token 3: Explicit hash character of category code 6. Token 4: Control word token ...
0
votes
1answer
27 views

graph on latex with too many data points, giving me timeout [closed]

So, I am writing a report which contains graphs, graphs are with a huge amount of data points. one graph only could contain more than 32,000 points, and I am using tikzpicture and adding coordinates ...
0
votes
1answer
52 views

How to keep my Tex interpreter running?

I'm coding with Vscode and XeLatex. When running the code below, it worked and cost approximately 20s \documentclass[border={0pt}]{standalone} \usepackage{tikz,} \begin{document} \begin{tikzpicture}...
5
votes
1answer
90 views

How to typeset ordered pairs?

I'd like to typeset ordered pairs with comma-separated components while \langle and \rangle as their delimiters. I want line breaks at commas for an ordered pair in inline math mode. So I came up with ...
19
votes
3answers
587 views

Why does plain TeX set \tolerance larger than \pretolerance?

When TeX breaks a paragraph into lines, it makes three passes. In the first pass, TeX tries to break the paragraph without hyphenation, during which it makes sure that no line has a badness (from glue ...
11
votes
3answers
859 views

Four TeX processors (as described in TeX by Topic)

I started reading TeX by Topic by Victor Eijkhout. He starts from describing four engines: The input processor. This is the piece of TeX that accepts input lines from the file system of whatever ...
23
votes
3answers
3k views

Where is source code of TeX, LuaTeX, pdfTeX

Today, TeX is a big program, LuaTeX, PDFTeX, METAPOST etc. Where is the public accessing source code for hacking LuaTeX or other implementations. For example, I need to embed TeX into C program or ...
1
vote
0answers
66 views

/usr/bin/pdflatex (file fa5free0solid): Font fa5free0solid at 54 0 not found for LIPICS-2021 [closed]

I am using the LIPICS template and compiling using pdflatex on Ubuntu-18.04. I have the fontawesome5 installed and all, but the compilation fails with the error in the subject. I wonder, first, how to ...
0
votes
2answers
46 views

Table doesn't want to appear in the text boundaries

I am trying to make table as wide as the text, but I can't figure it out. I used \usepackage[pass,letterpaper]{geometry} to make left and right margin equal. Also, I would like to center text in the ...
1
vote
3answers
51 views

How to center text in merged cell?

I have this table and I want to have the text from merged cell in the middle of it, I marked the place where I want it. How can I do that? \begin{table}[h] \def\arraystretch{1.5} \begin{tabular}{|*{3}{...
11
votes
2answers
1k views

Why doesn't TeX have hkern and vkern?

We have \hskip, \vskip, and \mskip, but only \kern and \mkern. Why doesn't TeX distinguish between horizontal and vertical kerns like it does for skips?
5
votes
3answers
88 views

Create a hbox that fills the rest of the line + some questions on boxes in general

I'm trying to understand how boxes work in TeX, and I've some question, all related with boxes in general (if you think it's better to create 3 questions, let me know, but I think they are quite ...
0
votes
1answer
133 views

Again: ! TeX capacity exceeded, sorry [save size=500000] (LuaLaTeX, MikTeX)

I'm getting the following error message compiling my PhD-file (used: LuaLaTeX, MikTeX 2.9): ! TeX capacity exceeded, sorry [save size=500000]. <to be read again> \relax l.90 \include{...
2
votes
0answers
84 views

Learning about higher-level formats [closed]

I recently finished reading The TeXbook and TeX by Topic. Now I want to understand more about the LaTeX or ConTeXt formats, as well as the more modern engines; things like: How does LaTeX2e / LaTeX3 ...
4
votes
0answers
74 views

Does anything of this 1988 “TeX in CWEB” still exist?

In TUGboat 9:2 (1988), there is an interesting article titled “TeX adapted to CWEB”, written by David Kennedy of Micro Publishing Systems, Inc. [Literate programming historians should note that the ...
2
votes
1answer
100 views

The hash function used by new_trie_op

In §944 of TeX, The Program (Volume B of Computers & Typesetting) DEK describes the hash function used by new_trie_op in order to store hyphenation tables efficiently. Quoting him: The hash ...
3
votes
0answers
64 views

Remaking the Stack Overflow logo [closed]

I want to build the Stack Overflow logo, but not just the stack, also the text. If it looks like this: How do I recreate it using TeX?
7
votes
1answer
395 views

Plain TeX vs. “primitive” TeX

I'm using LaTeX for my day-to-day needs, but in order to avoid cargo-cult document creation, I'm trying to gain a better understanding of the TeX engine itself. As part of this I'm experimenting with ...
0
votes
0answers
36 views

Embedding LaTeX expressions into a postscript file

Hi: I'm writing a vector graphics drawing lib that produces PS/EPS outputs. I want allow users can embed LaTeX expressions into the file like asymptote did. I only have a vague understanding of how to ...
38
votes
2answers
1k views

What's new in TeX, version 3.141592653?

A new version of TeX has been released by Donald Knuth earlier this year (January/February 2021), and its version number is 3.141592653 now. What has changed since the previous release, version 3....
32
votes
2answers
1k views

How does TeX look for delimited arguments?

The following code \def\foo#1#2\baz{\#1: -#1- \quad \#2: -#2-} 1) \foo hello world\baz 2) \foo supercalifragilistiexpialidocious\baz 3) \foo a \baz 4) \foo a\baz %5) \foo \baz % error! \bye ...
2
votes
1answer
62 views

Mathtools package cramped command

Within the mathtools package, \cramped is defined as follows. \providecommand*\cramped[1][\@empty]{ \ifx\@empty#1\@empty \expandafter \mathpalette \expandafter \MT_cramped_internal:Nn \else ...
1
vote
0answers
35 views

Getting the name of control sequence token - which values of \escapechar besides 32 require special attention?

I'd like to get the name of a control sequence token as sequence of character tokens. With \relax I'd like to get relax. The preceeding escape character is to be removed from the result of \string\...
0
votes
1answer
37 views

\usepackage{python} not working in miktex (latex), cant run python code in latex document

I want to obtain the results of a python code in a tex document. I have used \usepackage{python} but it doesn't work. Im using windows 10 and visual studio code with the extension latex workshop. I ...
0
votes
1answer
108 views

HTML-Aware TeX/LaTex

I can't find an acceptable way to convert LaTeX input to HTML output. Ideally, one should be able to say pdflatex my.tex to produce a PDF file, and htmllatex my.tex to get HTML output. I've tried a ...
2
votes
1answer
45 views

How do I make a character active only in text mode?

I want to make the character > active only in text mode (to create markdown-style block quotes) but not in math mode. I know the \mathcode`>="8000 way to make a character active only in ...
1
vote
0answers
55 views

How to type diacritical marks over the letters 'r' and 'i' in latex?

I want to learn how to type diacritical marks over 'r' and 'i' in latex. I need to write a name of Czech Republic origin. The diacritical mark over 'r' looks like a small 'v' on the head of the 'r' ...
1
vote
4answers
313 views

Minutes command in TeX

Someone told me, minutes were accessible in TeX, but I cannot find a command to call this. How do I call minutes in TeX? Please do not tell me about the construction of minutes out of \the\time, I ...
40
votes
5answers
14k views

How to compile the source code of TeX

I am more and more interested in the system TeX (and LaTeX) and I want to study it more deeply. I am not telling that I want to learn how to use it, but I want to understand its mechanism now. The ...
8
votes
5answers
503 views

Expand an argument into a string

I would like to build a TeX macro that would transform its argument by expanding every number into a sequence of letter (always the same letter). For example 3(2)2(1) should produce AAA(AA)AA(A). I ...
7
votes
5answers
19k views

Compile Tex inside Microsoft C#.net

I know there are some command-line applications like pdflatex that can help me to compile a LaTex document from C#.Net (using the System.Diagnostics.Process class) . I wanna know that what's the ...
13
votes
3answers
537 views

why there is a “Text line contains an invalid character” after “Undefined control sequence” and why “Q” required further input?

(base) MacBook-Pro-2:pdftex zmx$ latex This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=latex) restricted \write18 enabled. **\s^EH entering extended mode LaTeX2e <...
1
vote
0answers
15 views

Need left large curly bracket that allows alignment in align environment

I know that \begin{cases}\end{cases} can give me large left bracket spanning multiple lines, but it does not work well when I want to align equations inside cases with that outside using &. For ...
9
votes
3answers
453 views

I need to understand some cmds of tex

I'm debugging the command tex of TeX Live 2019. Shown as above, if you type: ./tex -ini h I\&V e There will be a segment fault. Note that you need a h.tex under the same directory as tex and ...
18
votes
1answer
483 views

TeX double script error even though all brackets are perfectly placed

Whenever I write, ${{\dot y}^a}^\top$ I will receive a double superscript error. But {{\dot y}^a}^\top is perfectly parsed. I don't understand why there would be an error at all. Please help!
1
vote
0answers
103 views

How to learn LaTeX internals?

I've read the LaTeX Companion and the TeXbook, but I am still struggling to understand how LaTeX works. How \DeclareOption works? Why should I end some lines with %? How penalty works? Where \if@...
0
votes
0answers
19 views

How to force single footnote line separation in a double column IEEEtrans document?

I want to add a single footnote separator line (centered) in a double-column IEEEtrans latex document while keeping a double-column footnote text, as shown in the following figure. How can it be done?

1
2 3 4 5
34