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}.

73 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12
votes
0answers
335 views

Release space in the string pool

I managed to get a capacity exceeded message by adding a bit too many named coordinates to a number of tikzpictures and so started to test and now wonder if it is possible to release unneeded space in ...
7
votes
0answers
127 views

Suppress a low-level error message in LuaTeX

Using LuaTeX it is possible to customize low-level error messages produced directly by TeX, such as the undefined control sequence error, or bad number etc. Here is the code that David Carlisle wrote ...
4
votes
0answers
72 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 ...
4
votes
0answers
96 views

Is there a specialized literate programming web-file editor that supports navigating in a Knuth's web file e.g. “tex.web”?

What do I mean by that? displaying starred and unstarred sections of cursor position displaying title of starred section displaying See also sections if exists displaying This code is used in ...
3
votes
0answers
242 views

How is TeX/LaTeX parsed?

I have some questions about TeX/LaTeX parser and parsing TeX/LaTeX after reading the following: Limitations when parsing TeX as a context-free grammar This is a PEG parser, which means it interprets ...
3
votes
0answers
69 views

Get value of global token register from local group

Given the following sample code: \documentclass{article} \newtoks\foo \foo={foo} \begin{document} \the\foo, \begingroup \foo={bar} \the\foo \the\global\foo % <-- fails \endgroup \end{document} ...
3
votes
0answers
130 views

How to add new primitives to e-TeX?

I am aware of this question \pdfstrcmp or \strcmp in pure TeX so I want to learn how to add the missing primitive \pdfstrcmp to e-TeX. From LaTeX3 source code expl3.lua: local function strcmp(A, B) ...
3
votes
0answers
199 views

Can one use the Potrzebie unit system in (La)TeX?

Inspired by a comment to this answer (and some wasted but entertaining time on the internet), I was wondering if somebody has implemented the use of the Potrzebie unit system in (La)TeX, as a tribute ...
3
votes
0answers
86 views

Is there a single word that I can use to refer to different TeX-based formats or engines?

I am writing an article on the TeX, pfdTeX, XeTex and LuaTeX engines and the LaTeX, pfdLaTeX, XeLaTex and LuaLaTeX formats. I find it necessary in some parts of my article to refer to the above-...
3
votes
0answers
135 views

Can I define the format file in TeX file?

I have a Finnish format file for TeX. Can I make TeX use the custom format while processing the file? Looking at tex -help, it looks like starting the file like: %&../fin/Finnish.fmt should work,...
3
votes
0answers
437 views

Adding vedic accents in sanskrit in devanagari script in red color using Context - not working in all cases

Using the techniques described in Coloring combining characters without changing color of a base character I have been able to color red the vedic accents in sanskrit typesetting using ConTexT MIV. ...
2
votes
1answer
36 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 ...
2
votes
1answer
238 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 ...
2
votes
0answers
77 views

Why is the newline character not printed on terminal after entering batch_mode?

When TeX stops on an error, we can answer Q. In such case in the log file this is printed: OK, entering \batchmode... But on the terminal thsis is printed: OK, entering \batchmode<terminal ...
2
votes
0answers
77 views

Which significance does 100000000 have as overflow boundary in Pascal?

A recent conversation about bug-free software at work has lead to a discussion about TeX (which is considered virtually bug-free, while it might technically be false). Since TeX's source code is ...
2
votes
0answers
38 views

How to add a second table of content to “tex.pdf” with a LaTeX package by using the “contents.tex” generated by 'pdfwebmac'?

This is a follow up question to How to change table of content layout for a pdf document created from a web source file? I input the following commands: weave tex.web pdftex tex.tex and create ...
2
votes
0answers
84 views

What causes fatal errors and why TeX cannot produce any file if it occurs?

Besides the regular errors, there are fatal errors, like Fatal error occurred, no output PDF file produced! I have seen them happen when TeX capacity exceeds, the mysterious seac (see Automatically ...
2
votes
0answers
129 views

Determining whether pagebreak will occur

So this question is more about the point and the inner workings of TeX instead of a practical solution. How does LaTeX (or TeX?) determine, whether a pagebreak occurs (I mean the stretch-y/ fluid type ...
2
votes
0answers
423 views

Problem caching files, aux data not importing

The following code caches include. This negates the need to use \includeonly. The problem is, for references, counters, toc, to be correct, the corresponding aux file needs to be imported. ...
2
votes
0answers
125 views

Diagrams of TeX Design

In order to understand TeX better, and in order to procrastinate on stuff that is almost certainly more important, I'm slowly working my way through a YouTube series of Knuth explaining TeX82 ...
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\...
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
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@...
1
vote
0answers
58 views

LuaTeX: Use some linebreak filter to access linebreak parameters used by last tex.linebreak

How can I access linebreak parameter table used by last call to tex.linebreak? As per LuaTeX manual (screenshot at bottom of post), one can override linebreak parameter table values by passing a ...
1
vote
0answers
64 views

TeX to C/executable

It is possible to program in TeX and it is a Turing complete language as C. Is there any way to translate a program in TeX into C and vice versa? If so, how to correspond C instructions with TeX's ...
1
vote
0answers
44 views

How do I add shortcuts to TeX Maker?

For example, I want to create a shortcut for \(...\) command and or more specific one _{\circ} etc. Because it is hard to write in a minute. But I cannot create a new shortcut. I only configure the ...
1
vote
0answers
41 views

Specific instrument for correcting mistakes

I'm searching a specific instrument for Latex. My teacher showed me it once, but i cannot remember the name. It's functional in general is for long files, with big amount of code and formula's: when ...
1
vote
0answers
146 views

Moving from pdfLaTeX to XeLaTeX

I have this very long preamble and I'm struggling to switch to XeLaTeX. I'm working with PdfLaTeX, but since I want to change some fonts, I would like to switch to XeLaTeX. I tried to load ...
1
vote
0answers
125 views

Badness: why 100.|z|^3 instead of 100 z^2?

As written here on page 158, the badness penalty is 100|z|^3 instead of 100z^2. Why is "3" in the exponent when we take the absolute value of z? Here z=(L-w)/w^+, where L is the required width and w ...
1
vote
0answers
125 views

Is there a little randomization on TeX default font which is not present in LaTeX default font?

It's more pleasing to me to stare at this... ... than to stare at this... One time Knuth commented that he prefers fonts with a little randomization on their design (Knuth, D. E. (1979). ...
1
vote
0answers
109 views

Is there any way to free up the TeX memory?

As described in this quesion TeX memory is very limited due to the limitation of the computer in time of TeX invention. I want to know is there any way to free up the TeX memory before reaching its ...
1
vote
0answers
406 views

TeX capacity exceeded using Knitr

I am unable to weave a document containing LaTeX and R code using RStudio due what I think are TeX capacity limitations. Is there a way of fixing this without having to compile using LuaLaTeX which is ...
1
vote
0answers
62 views

\write : maximum lines'

In the ledmac documentation, Peter Wilson wrote that, when writing to the .end file (which stores the endnote), it transforms all spaces to line breaks. We change \newlinechar so that in the ...
1
vote
0answers
154 views

Is there any way to do bit testing in tikz?

I want to do something in tikz that is a bitwise function of a number, e.g. \def\mask{165} %% = 0xa5 but it looks like TeX doesn't know hex \foreach \k in {0,...,7} { \node[mybox] (b\k) at ($(-\...
1
vote
0answers
144 views

fixed size + variable size delimiters

background I'm trying to understand how TeX typesets \left( FOOBAR \right} what I understand so far we render FOOBAR , get height/depth of the bounding box then, given the height/depth, we try to ...
1
vote
0answers
305 views

Problem with nested IfSubStr calls

I have the following code in my preamble: \usepackage{xstring} \newcommand\myhelpermacro[1]{\IfSubStr{#1}{true}{Text contained the word "cat"}{Text did not contain the word "cat"}} \newcommand\...
1
vote
0answers
166 views

Specifying MF mode (to autogenerate fonts) for a specific printer

In Metafont the mode definition is used to define dpi and printer specific adjustments on generating the pixelized character images to use for printing. How could I specify the mode (from a mf file) ...
1
vote
0answers
816 views

Memory overload due to pgfplots / tikz

first of all, I need to mention that there are 2 related threads, that I found usefull: 1, 2. I am working with TeXstudio 2.8.8 on Win 7 64bit (i5 @3.3GHz, 8GB RAM - if this matters). My goal is to ...
0
votes
1answer
55 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
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 ...
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?
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
0answers
28 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
47 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 ...
0
votes
0answers
60 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 ...
0
votes
0answers
58 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 ...
0
votes
0answers
50 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 ...
0
votes
0answers
20 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
0answers
46 views

How to determine the kind of atom of a given mathematical symbol?

Is there a way to determine the type of atom assigned by TeX to a given mathematical symbol? For example, I suspect that both \exists and \forall are "type 1" math atoms (namely, operators), ...