{tex-core} is for questions that are independent of formats and macro packages. 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}.

learn more… | top users | synonyms (1)

5
votes
0answers
71 views

How to tell LaTeX to throw a warning if argument is not being used?

In this question the given argument wasn't used, because #1 was missing.. One would actually assume an error or a warning be thrown. A little MWE based on 1: \documentclass{article} \usepackage{...
9
votes
2answers
273 views

What is the maximum nesting depth of \input?

Large documents are best split into various files. Using \input allows to nest multiple files. What is the technical limit of \input regarding the nesting depth? I haven't found any clue searching ...
4
votes
1answer
70 views

Question about \maketoks macros from cwebmac.tex

Consider the following code from cwebmac.tex: {\setbox0=\hbox{\toksA={1.}\toksB={}\maketoks}\the\toksA} What does \maketoks macros do and how does it work? The following is a complete example (...
0
votes
0answers
119 views

TeX capacity exceeded, sorry [input stack size=5000] in LyX Classicthesis

I use classicthesis-LyX-v4.2_biblatex_bibtex8 I got this error message when I load hanging module into the parent document (probably my personal issue, as I tried it on the newly downloaded template, ...
2
votes
3answers
36 views

Retaining count values between blocks

How can one make a count retain values between different blocks e.g in nested loops? For example \newcommand\example {% \newcount\N \loop {\loop \the\N\quad \ifnum\N<5 \...
1
vote
0answers
29 views

Get the current state of all macroes

I was wondering if there was a way to save the current configuration state at some point in the document. For example, if I have the file A.tex \documentclass[10pt]{article} \usepackage[margin=1in]{...
7
votes
3answers
6k views

Resize all images in Latex to a percentage width

I am auto-generating multiple tex files using pandoc (one tex file for each of my chapters). Pandoc generates this tex code for each image. \begin{figure}[htbp] \centering \includegraphics{images/...
12
votes
2answers
188 views

How to typeset in initex?

Just curious how to typeset letter 'a' in initex without 'overfull' warnings. $ tex -ini '\font\f=cmr10\f a\end' This is TeX, Version 3.14159265 (TeX Live 2015/Debian) (INITEX) Overfull \hbox (5....
17
votes
5answers
689 views

Basics of parsing

I'm trying to master the art of parsing text one character at a time. The following is what I've discovered so far. Is this as good as it gets? I would really prefer not to do all those \edefs as ...
9
votes
1answer
188 views

How does \delimiter work? How does it convert its argument into character(s?) and why?

studying the definition of \lvert (which just made me finally understand what does mean \@xp\@gobble and how it works \o/), I found the \delimiter command, with a numeric argument advanced by ...
3
votes
1answer
65 views

xdef and cedille

I need to xdef some data. In rare cases it'll contain cedilles like: \xdef\xxx{spam\c{e}eggs} \bye Unfortunately this failes. Is there a chance to get this working? (I'm on LaTeX in my code, using ...
7
votes
2answers
132 views

Expansion of \char in \def

In answering another question, I ran into some issues trying to use a combination of \def and \char. Consider the following example: \documentclass{minimal} \usepackage{etoolbox} \usepackage{xstring}...
17
votes
3answers
966 views

Why is SVG not supported by the TeX backend?

I've always wondered why SVG is such a problem for many document creation tools. For example MS Office can't do it, Libre Office can only use very simple SVGs afaik and even in Latex we can't use them ...
3
votes
1answer
50 views

Underline (or otherwise format) all text in custom environment

I'm trying to define a custom environment, in which all text is underlined. I know the underline command underlines its input, but I can't figure out how to get it to work seamlessly with my ...
1
vote
0answers
77 views

Tips for using TEX / LaTeX for writing meeting protocols [closed]

I found TEX / LaTeX just over a week ago and I am very pleased with it. I used to hate writing documents on the computer because it felt so inefficient and messy with the word processors. TEX was ...
0
votes
1answer
49 views

Externalize pdf_tex like externalize tikz

I am using the workflow explained in this tutorial for typesetting images in my document: Tutorial for pdf_tex using inkscape Briefly, a vector image is imported into inkscape and then image itself is ...
2
votes
0answers
48 views

Macro with \afterassignment syntax?

Say for some reason I want to make a macro with input stream behaviour mimicking that of \afterassignment and \aftergroup. Namely, I want to absorb exactly one token from the input stream following ...
8
votes
7answers
250 views

unescaped macros

Is there a way to define a macro that does not start with \? for example, I'd like to have -> expand to \rightarrow since I like reading raw LaTeX and $\eps -> 0$ reads much nicer (to me...) ...
22
votes
1answer
292 views

Summary of TeX Capacity Limits

I seem to often run into capacity issues and have been upping the limits each time. There are several question on this site pertaining to these. However, there seems to be some conflicting information ...
56
votes
4answers
3k views

What is “expansion”?

I'm relatively new to (La)TeX, but I have a reasonable amount of experience with computational programming languages. Until I began learning (La)TeX, I'd never heard of "expansion"... So, what is "...
37
votes
2answers
3k views

What language is TeX implemented in?

I read on Wikipedia that the first version of TeX was written in SAIL. However, does anyone know what language later versions (i.e the current one) are implemented in?
0
votes
0answers
55 views

What language is TeXLive written in? [duplicate]

I read that TeX was written in SAIL and re-writen in Pascal. Do we still use that version today? In my Linux distribution, I use TeX-Live. Does that also use the Pascal version? Wikipedia says the ...
5
votes
1answer
193 views

Past and future evolution of command line arguments

Upon typing latex -help, you can get a list of all command line arguments. AFAIK, none of these are mentioned in the original TeX/LaTeX books. So, I wonder how these were born, and more importantly, ...
15
votes
1answer
527 views

productivity tools

I am using latex to write a mathematically dense document which has several hundred differential forms and products. There must be better ways than just typing out the whole equations line by line. ...
9
votes
3answers
350 views

Ignored character as control symbol

Exercise 8.2(f) of the TeXbook (by Knuth) says it is not possible for an ignored character to appear in the midst of a control sequence name. But the following works... \catcode`\t=9 \def\t{\TeX} \t \...
5
votes
3answers
172 views

loop in tabular that uses \the\count to access current line number

I would like to generate an automatic table using loop. As suggested here before, it is best to first generate the lines in a toks and then pass them to tabular. However, I have problems with ...
14
votes
2answers
1k views

Can the PostScript language be used to fully replace TeX? [closed]

THE POSTSCRIPT® LANGUAGE is a simple interpretive programming language with powerful graphics capabilities. ... Because of the importance of text in most applications, the PostScript ...
6
votes
1answer
133 views

Per-word info needed in DVI to create touch rectangles on LaTeX documents in iTeX for the iPad

When reading a LaTeX document on an iPad with iTeX, I need to know the position of every word on the page. (I also need to know the positions of images, URLs, footnotes, etc., but they are all ...
6
votes
2answers
231 views

How can I produce the output of a carriage return in a \message?

It's all in the title. How is it possible to output a carriage return in a \message. For debugging purposes, I need to get readable messages. The obvious doesn't work : \message{A\cr B} outputs A\cr B ...
0
votes
2answers
274 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 ...
40
votes
1answer
576 views

Test if paragraph has an overfull line

I'd like to test if the last paragraph has any overfull line. The naive approach of looking at the \badness once the paragraph is finished does not work, as it will only give the badness of the last ...
3
votes
2answers
45 views

How to separate each section in moderncv to different tex files

How to separate each section in moderncv to different .tex files and include it in main file so that it becomes handy. Consider separating each sections Education to Education.tex, Experience to ...
4
votes
1answer
78 views

Lua to Tex : content and variable content different?

Here is something bizarre ! (I mean I don't understand). I enter a content, let's say "Something" in the (global) variable context. In line 2 of the following code, as one may anticipate, we have the ...
0
votes
1answer
51 views

How to solved the problem with conditions? [duplicate]

I would question how do I solve the following problem. This is a stylistic package where I needed to create a condition. I have made a choice of work as semestral, bachelor. When selecting semestral ...
0
votes
0answers
47 views

if (first or second condition) <true> else <false> [duplicate]

does anyone know how to write the condition (if) with two conditions? \ifx{**1 condition** or 2 condition} <true> \else <false> Thank you.
6
votes
2answers
99 views

Prevent \topinsert on chapter page (Plain TeX)

How to define chapter to prevent insertion of floating figures and tables (\topinsert) on chapter page. I would like to place an object at the top of the next page. \def\chap#1{\vfil\break \vglue1cm ...
1
vote
0answers
38 views

Maxima tex() function without computing the equation? [closed]

This may be simple but is there a way in Maxima to not compute an equation and output in Tex? An example would be: (%i1) tex(2^7 * 3^8 + sqrt(100)); $$839818$$ (%o1) ...
0
votes
0answers
188 views

pdflatex fatal error because of Bad parameter value, font_mem_size

during plotting graphics with pgfplot I faced the problem of two many data points in one plot so I first tried to avoid it, but later I needed more data points. This question How to expand TeX's ...
4
votes
1answer
208 views

Using PDFLaTeX inside C# .Net code does not load some math symbols

On my Windows 8.1 with MikTeK installed, the following C# code successfully generates a PDF file with Math expressions except for some Unicode codes such as plusminus sign: ProcessStartInfo startInfo ...
3
votes
1answer
58 views

halign and vertical spacings

Here is a somewhat simple \halign usage which show that I'm missing something: \documentclass{article} \begin{document} \halign{&#\cr \noalign{\hrule} \rule{0.4pt}{4cm}& \rule{1cm}{0.4pt}&...
11
votes
2answers
302 views

What is the difference between assigning and \def

What is the syntax difference between these two assignments (basically) \arraycolsep=1mm \def\arraystretch{0.7} What are the fundamental differences of the command \arraycolsep and \arraystretch ...
4
votes
1answer
93 views

Center last line of the paragraph; but I don't like small lines

Attention: This is an advanced TeX problem. I usually dislike lines that are too small, and so I tend to add \parfilskip=2em plus 0.6\textwidth to my documents (apart from small lines, this also ...
5
votes
1answer
152 views

GNU Readline- like history, for the latex terminal shell?

I find myself more than often willing to use the (pdf)latex shell, and \typeout commands there directly - unfortunately, there is one deal breaker: there is no command line history. I think that in ...
10
votes
2answers
144 views

assign penalty to one discretionary (not all paragraph)

For a quite complex problem that would be too long to describe, I need to set different penalties for different discretionaries in the same paragraphe. It doesn't seem to be possible with pdfTeX (and ...
39
votes
3answers
2k views

What does the 'etex' package do, exactly?

I was creating a rather large LaTeX project, so I had to use many packages. This gave me an error No room for a new \dimen \newdimen \MPscratchDim while my editor(Kile) opened the file supp-pdf....
101
votes
2answers
10k views

What are penalties and which ones are defined?

Very often you can find solutions by changing the penalty. One is widowpenalty. However what are penalties and is there a small list of every defined penalty. There is a German site which does ...
99
votes
4answers
115k views

\vspace vs. \vskip [duplicate]

What is the difference between \vspace{-1em} and \vskip -1em, for example? I guess the first is LaTeX, and the latter is TeX. When is the proper time to use one and not the other, and why?
4
votes
2answers
165 views

How to place amsmath equations at top of page ignoring \topskip?

I need every amsmath equation to place at the top of the page. So I use \noindent to do that. Everything is fine except equation+split environment. Than formula is placed a bit higher (by \vskip-\...
7
votes
1answer
393 views

TeX: reasons to start tokens using backslash

I was wondering over the TeX programming language syntax. Is there a known reason why Knuth chose the backslash notation we all love and fear? It seams to me that most other contemporary languages (C, ...
1
vote
1answer
82 views

Latex files not compiling due to buffer size

So I have some Latex files with large eps images which cause a buf_size error. When I was compiling the files a few months ago I solved the problem by increasing the buffer size in texmf.cnf. I have ...