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
2
votes
1answer
37 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
28 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
25 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
37 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
51 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
283 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
474 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
90 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
16 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?
34
votes
1answer
912 views
+100

What's new in TeX, version 3.141592653?

A new version of TeX has been released by Donald Knuth this month (January 2021), and its version number is 3.141592653 now. What has changed since the previous release, version 3.14159265, from seven ...
2
votes
1answer
35 views

How to center \includegraphics with text?

So I have the following document and it renders a graphic and text like so: But I want to achieve this instead: How do I center the text to the middle of the graphic? I searched through \...
4
votes
1answer
71 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
487 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
104 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
37 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
80 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
45 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
41 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
88 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
149 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
698 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
91 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
24 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
39 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{...
4
votes
1answer
72 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
55 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
37 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
51 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 ...
3
votes
2answers
119 views

\cramped in fraction denominator doesn’t line up with regular fraction

In a display, the denominator of a fraction is set in “cramped” \textstyle, which can be emulated with \cramped[\textstyle]{...} from the mathtools package. But sometimes the emulation is perfect, ...
6
votes
3answers
317 views

How to \futurelet the token after a space

Suppose we want to process a list of tokens given as a parameter argument, and we want to inspect each token with \futurelet before processing it. How does one \futurelet the token after a space? ...
1
vote
2answers
73 views

Stretch spaces within a box

Example: \noindent abcd abcd abcd abcd abcd abcd abcd aaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa abcd abcd abcd abcd abcd abcd abcd aaaaaaaaaaaaaaaaaaa ...
0
votes
0answers
49 views

Locally change the behavior of the underscore in the math mode to group all the successive characters in the subscript

I would like to know if it is possible to have a switch (e.g. \myswitch) that: 1- changes the behavior of underscore _ only in math mode such that all the following characters are grouped into a ...
2
votes
1answer
26 views

Redefine commands / Remove left spacing for equations in LaTeX Preview (also in Emacs AUCTeX)

When I run \documentclass{article} \usepackage{amsmath} \usepackage[active, tightpage, displaymath]{preview} \begin{document} \begin{equation*} 1+2 = 3 \end{equation*} \end{document} I get the ...
1
vote
1answer
41 views

How to align text vertically into two sections?

Ho do I achieve the following effect with TeX? Czech Spoken in Czech Republic Ukrainian Spoken in Ukraine Azerbaijani Spoken in Azerbaijan English Spoken in many many many many many many ...
4
votes
1answer
128 views

tex.hashtokens incomplete?

This came up while trying to answer another question, and concerns tex.hashtokens() in LuaTeX. Consider the following document: \documentclass{beamer} \begin{document} \message{The meaning of (\...
21
votes
2answers
2k views

Longest built-in LaTeX command?

I've recently been asked whether the command to remove navigation bars in a Beamer presentation is the longest built-in LaTeX command: \beamertemplatenavigationsymbolsempty I've done some research ...
-2
votes
1answer
62 views

How to make e in latex? [closed]

How to make e in latex? Or how to make pi
2
votes
1answer
216 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 ...
0
votes
0answers
19 views

include orcid icon with author in article document class

I have added the orcid address and the icon in article class, works better but now it vanish the affiliations and the email address with the \thanks command. How to sort it out? \author[1]{author ...
0
votes
1answer
52 views

LuaTeX node question: Can hpack be somehow reapplied for display math to adjust to new width?

This is a LuaTeX node library question intended to understand what all it can do, am not looking for a usual LaTeX answer. Let's say I have a set of display equations in an align* environment that is ...
4
votes
1answer
139 views

LuaTeX/TeX-core: Where is my display math? (sequence of execution, display math insertion, etc)

This is a LuaTeX/TeX-core internal node representation question, not a question concerned with output in PDF. While trying to visualize the contents of paragraphs, "display math" contents ...
2
votes
1answer
75 views

List of all characters belonging to each TeX category code?

Where can one find a listing of all characters per TeX category code? I need to construct a symbol table for parsing purposes and I have been unable to locate a complete listing. I don't mind if I ...

1
2 3 4 5
33