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
4
votes
1answer
76 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 ...
2
votes
1answer
29 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 ...
11
votes
3answers
821 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 ...
1
vote
0answers
32 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 ...
18
votes
3answers
558 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 ...
1
vote
3answers
48 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}{...
0
votes
2answers
43 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 ...
11
votes
2answers
990 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
81 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 ...
2
votes
0answers
83 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
68 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 ...
3
votes
0answers
62 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?
2
votes
1answer
94 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 ...
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}...
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 ...
2
votes
1answer
59 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
35 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 ...
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
0answers
14 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 ...
1
vote
4answers
311 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 ...
18
votes
1answer
481 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
98 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
17 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?
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....
4
votes
1answer
79 views

catcode 12 spaces

I would like to understand TeX's behaviour when the catcode of the space character is set to 12. The following two example input files differ in just one position: where the first has the character 4 ...
8
votes
5answers
501 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 ...
3
votes
2answers
107 views

TeX primitive for streachability inside a math formula

In a math formula the glue between symbols can stretch or shrink. Which is the TeX primitive which establishes the badness of this kind of stretch/shrink?
1
vote
0answers
39 views

Writing a macro to call a menu function (edit -> text operation -> to lower case) [closed]

I'm trying to write a macro that will automatically change the selected text to lower-case. I usually just use my keyboard and hit alt+e, t, enter quickly and it's as good as a macro for me, but I'm ...
0
votes
0answers
86 views

How can I solve this problem? — [undefined control sequence]

I got an error like this. ! Undefined control sequence. l.14 \submit {final} --> How can I solve this problem?
0
votes
1answer
47 views

What is the reason for the separate “print” call in the error handling in module 454?

Here is the contents of module 454 (Scan for fil units; goto attach_fraction if found): if scan_keyword ("fil") then begin cur_order ← fil; while scan_keyword ("l") do ...
3
votes
1answer
42 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? ...
0
votes
1answer
55 views

Why \(.) is used in section names in tex.web?

Here are some examples of section names in tex.web: @<Scan for \(m)\.{mu} units and |goto attach_fraction|@> @<Adjust \(f)for the magnification ratio@> @<Scan for \(a)all other units ...
1
vote
2answers
105 views

How to change font to Helvetica Neue? None of answers here work!

I am trying to change the entire document font to create a pdf out of this. But regardless of what I try, the font does not change. I have Helvetica installed on my machine. \documentclass[a4paper]{...
6
votes
2answers
153 views

Why don't unexpandable active characters work in \csname…\endcsname?

Page 213 of The TeXbook has a definitive explanation of \csname...\endcsname: When TeX expands \csname it reads to the matching \endcsname, expanding tokens as it goes; only character tokens should ...
4
votes
4answers
703 views

Theoretical/academical question - Is it possible to simulate, e.g., a (unicode) LuaTeX engine on an 8-bit Knuth TeX engine?

The following questions are rather theoretical/academical in nature. According to Wikipedia a system of data-manipulation rules (such as a computer's instruction set, a programming language, or a ...
1
vote
1answer
94 views

ConTeXt: Can I print a PDF document with fillable forms?

When I try to print PDFs achieved with ConTeXt that have fillable forms, when I fill in the form, what I have filled in does not appear in the print. Is there any way to get that once filled they ...
0
votes
0answers
26 views

find texmf directory

The page https://ctan.org/tex-archive/fonts/carlito says to install the font, I have to Unzip the archive at the root of an appropriate texmf tree, likely a personal or local tree. How can I find ...
0
votes
0answers
46 views

vertical aligning for \hbox type boxes inside \vtop boxes

\documentclass{book} \usepackage{etex} \begin{document} \vtop% {% \valign{% \hbox{text}% \hbox{long text}% \hbox{long long text}% } } \end{document} I ...
2
votes
0answers
21 views

Using \verb with a command parameter [duplicate]

I wanted to build a little command to show me the different lengths of spaces. Sadly I am having problems with \verb accepting my parameter. \documentclass{article} \usepackage{listings} \begin{...
3
votes
1answer
75 views

How works the function round_xn_over_d from pdftex.web?

The function round_xn_over_d takes scaled point value as the argument and returns scaled point value. Its meaning is as follows: Suppose we have \mydimen=10truept. As we know, if \magnification is ...
0
votes
0answers
58 views

Whats the simplest way for a python program to check if a file is valid LaTeX

Problem Statement: Given a file with some arbitrary name and possibly incorrect extension, how to programatically and/or using command line tools figure out if it is a LaTeX file? Context: I was ...
2
votes
1answer
46 views

not able to get two flow charts side by side

Hi All if any one can help me. I am using Latex first time. I have to add 2 flow chart side by side. But the code which I write prints the chart side by side but my second table of both charts are ...
0
votes
1answer
50 views

Ungrouped \color breaks \limits

Thinking about the issue posted in Colors in underbrace and overbrace - strange behaviour I thought that the reboxing which TeX performs for a \mathop with \limits caused the color to leak outside of ...
0
votes
1answer
28 views

Connecting child nodes using Tikz

My Tex code: \begin{tikzpicture}[text width=4.5cm, sibling distance = 15em, level distance = 4em, align= flush center, level 1/.style={level distance=18em}, level 2/.style={level distance=12em}, ...
3
votes
1answer
111 views

Why does TeX have so many category codes?

When I look at the long list of category codes, I simply don’t understand why they are all needed. For instance: $, ^, _, and & could have easily been defined as active characters instead. ...
1
vote
0answers
43 views

What are my options if tex files are unavailable? [duplicate]

This is a rather morbid question; sorry for that. A friend recently passed away. Prior to passing, he had submitted some of his work to a journal. Journal editor has reached out to see if I could help ...
11
votes
1answer
1k views

How to write a real “Hello World” program

One of the easiest tasks in almost all programming languages is to write a program that writes "Hello World" into the terminal. Something similar in TeX is: tex '\empty Hello world! \bye' ...
0
votes
0answers
57 views

.tex file is null after laptop battery died

I am writing a thesis in TeXstudio and while working today (during which I saved my work several times) my laptop battery was lower than I thought and my laptop died. Thinking nothing of it, I plugged ...

1
2 3 4 5
34