We’re rewarding the question askers & reputations are being recalculated! Read more.

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

36 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
votes
0answers
241 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
107 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 ...
3
votes
0answers
62 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
192 views

How does Tex layout engine work

Would it be correct to say that somewhere within Tex, there is a layout algorithm? If there is, is a description of the algorithm and abstractions it consumes and produces available? A question and ...
3
votes
0answers
55 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
106 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
166 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
80 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
103 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
390 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. ...
3
votes
0answers
125 views

Has anyone combined marginfix and tikzmark yet?

I am working on a big book project, and up until today I refrained from using glue. But now I had to, and, lo and behold, suddenly my margin notes' position is broken :( The reason is that marginfix ...
2
votes
0answers
29 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
69 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
81 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
391 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
111 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
94 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
69 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
222 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
56 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
122 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
124 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
132 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
237 views

How to define LaTeX like environment in plain TeX?

How do I define LaTeX like environment using TeX primitives? I have just started learning TeX using Knuth's TeX book and found it hard to implement the LaTeX like environment using TeX primitives. An ...
1
vote
0answers
782 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
0answers
76 views

How to get the actual width of the vbox in TeX

I'm trying to obtain in TeX the actual size of the box after inserting material which is overflowing the size of the box. I can easily get the hight by reading \ht0 and \dp0, but when I read \wd0 I'...
0
votes
0answers
42 views

Text fitted around the middle image or note

Please see this article In my own case, I have a text middle of which I wish to insert a square containing a note. How we can do that!!!
0
votes
0answers
41 views

Is it possible to preview a graph when referring to it by hovering as of 2019?

I read a lot about fancytooltip package but it seems to be a little bit too confusing installing everything. I am on Windows 10.
0
votes
1answer
22 views

Nomencl Error - Unable to produce 2nd line of nomenclature

\documentclass[9pt,conference,a4paper,twocolumn]{IEEEtran} \usepackage{cite} \usepackage{amsmath,amssymb,amsfonts} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp} \...
0
votes
0answers
58 views

How to \noexpand all its followings in one time

The macro \noexpand can only block expand of its first followings, i.e. for \noexpand\huge\color{red}, \color{red} is not effected by \noexpand. I want get a way to block expand of all in one time, ...
0
votes
0answers
106 views

How LaTeX builds the large horizontal/vertical brackets

Wondering about how LaTeX implements the vertical and horizontal brackets [{(⟨. I saw these unicode characters which could potentially be used for vertical brackets: ⎡ ⎢ ⎣ ⎤ ⎥ ⎦ ⎧ ⎨ ⎩ ⎪ ⎫ ⎬ ⎭ But ...
0
votes
0answers
58 views

A macro based on the syntax

I want to define a macro that depends on his syntax, for example \def\macro(#1){code here} \def\macro[#1){different code here} ... \def\macro(#1]{different code here} I saw many way to do this. ...
0
votes
0answers
88 views

How can I get a pdf from https://www.tug.org/texshowcase/onetype.tex?

How can I get this pdf https://tug.org/texshowcase/onetype.pdf starting from this source https://www.tug.org/texshowcase/onetype.tex ? tex onetype.tex gives me This is TeX, Version 3.14159265 (TeX ...
0
votes
0answers
950 views

rendering tex: sqrt: placement of root

EDIT: after reading egreg's comment, changing from \sqrt[3]{x} to \root 3 \of{x}, to indicate using plain TeX, not LaTeX Consider $$\sqrt{x}$$ vs $$\root 3 \of{x}$$. The latter has a 'root' of 3. ...
0
votes
0answers
213 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\...
0
votes
0answers
1k views

Error message: I can't find the file

I have tried to compile the following file in three different directories. There is only one command line to be printed! I get this error message. This is pdfTeX, Version 3.14159265-2.6-1.40.17 (...