{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)

8
votes
7answers
243 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...) ...
17
votes
1answer
150 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 ...
55
votes
4answers
2k 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
2k 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
51 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 ...
2
votes
1answer
81 views

How declare a new package language

I need writing normal text and some sentences in artifical conscript language. How writing small as possible package and how use it (include?) in file? My language have my own font and each glyphs is ...
5
votes
1answer
170 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
495 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
311 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
151 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 ...
2
votes
0answers
19 views

How to execute and show tex-code within a question on tex.stackexchange.com? [migrated]

I often see question and answeres where below or top of the code is a the generated output (PDF) of the tex code. How can I do that? ;)
13
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
129 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
221 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 ...
3
votes
5answers
24k views

Error Latex TeX capacity exceeded, sorry [input stack size=5000]

I want to test this template http://students.engr.scu.edu/~sschaeck/latexforthesis/. when i run the makefile i get this error .Please what does it mean this error here the code : ...
0
votes
2answers
72 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 ...
74
votes
4answers
32k views

How to expand TeX's “main memory size”? (pgfplots memory overload)

I'm compiling one pretty simple LaTeX file with few dozen of pgfplots. Now, I can compile part by part, but am unable to compile it all at once. I really need good precision for all those plots (noise ...
40
votes
1answer
552 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
32 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
65 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
43 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
45 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
86 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
30 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
125 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
126 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
50 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}& ...
11
votes
2answers
285 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
72 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
140 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
131 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 ...
37
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 ...
97
votes
2answers
9k 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 ...
3
votes
1answer
46 views

What handles kerning TeX or DviOut

Does TeX process kerning so that sw reading dvi file does not need to do kerning as defined in tfm file but can run with character widhts information from tfm file only. I use TeX not LaTeX. I am ...
93
votes
4answers
98k 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
87 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 ...
7
votes
1answer
385 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, ...
2
votes
1answer
53 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 ...
2
votes
1answer
91 views

Rendering text as image to protect e-mail address

I want to protect my e-mail address against spammers by including it as image instead of a (parsable) text. Normally I would have to create the image (with text) by myself and include this as figure. ...
5
votes
2answers
89 views

How to define macros that are executed at begin and end of the page body or text column(s)?

I need a way to insert \special{...} or \pdfliteral{...} commands at the start of the page body and at its end, but before headers and footers are inserted into the box to be shipped out. The ...
20
votes
4answers
1k views

What is a “Control Sequence”?

When you get an error in LaTeX, the message "Undefined control sequence" is printed. Why is it called "control sequence" and not "command", for example? How does the sequence work? Is this a TeX or ...
19
votes
2answers
1k views

Why do we need \ldots?

While trying to understand Chapter 12 of Knuth's TeXbook about Glueing, I run into troubles in understanding why \ldots ends up in looking better than .... It seems to me that the usual period . has ...
0
votes
0answers
43 views

LaTeX pgfplots - dimension too large

i have problem with drawing graphs... \begin{tikzpicture} \begin{axis}[ xtick=\empty, ytick=\empty, minor tick num=0, anchor=origin, % Align the origins axis lines=middle, ...
2
votes
1answer
41 views

Does LuaTeX change the message in “Output Routines Part IV: Horizontal Techniques”?

In the excellent article "Output routines: examples and techniques Part IV: Horizontal techniques", David Salomon explores three techniques for dealing with communication from horizontal mode to the ...
1
vote
1answer
88 views

Is there an alternative to {} that also expands to nothing?

I have a weird bug in my text editor that causes it to incorrectly indent any lines that start with special characters, such as greek letters. % My editor will indent the leading spaces in this line ...
2
votes
1answer
68 views

Distributing a LaTeX2e compiler in .NET application

Is there a way to wrap a LaTeX compiler with a .NET application, so that the wrapper can compile an output .tex file, and visualize the results? Where can I get a compiler (For free, commercial?) ...
13
votes
3answers
754 views

What is Tex's gullet?

Chapter 7 of The TEXbook famously talks of Tex as having 'eyes', 'mouth' and 'stomach' and goes on to talk of Tex's 'digestive processes' and keeps reusing these terms. Chapter 8 introduces talk of ...
3
votes
1answer
117 views

How do LaTeX macros interact with the TeX engine?

From wiki on LaTeX the basic requirement is to have a TeX compiler (which is used to generate output files from source), fonts, and the LaTeX macro set. Assuming I have a TeX engine and I ...
4
votes
1answer
285 views

LaTeX structure

I have question about LaTeX structure and how LaTeX works? Is it just a set of macros for TeX? What happens, when I call latex somefile.tex? Does latex just includes somefile into a file, which ...
9
votes
3answers
396 views

How to force LaTeX only commands?

Recently, I learned that for a long time I have been doing all of my mathematics in LaTeX incorrectly! I was using the $ TeX commands instead of the \( and \) LaTeX commands! I immediately went back ...