Plain TeX is Knuth's original default format for TeX documents.

learn more… | top users | synonyms

10
votes
1answer
206 views

How to install or replace fonts in old TeX files?

I got interested in a research paper from 1991, which I cannot get an electronic online version of. The author was kind enough to send me his tex sources, but is himself unable to produce a pdf file ...
8
votes
1answer
224 views

Why I can't use \footnote inside \vbox or \hbox in horizontal mode?

The definition of \footnote is as follows in plain TeX % all from the Appendix B of The TeXbook \newinsert\footins \def\footnote#1{\let\@sf=\empty % parameter #2 (the text) is read later ...
10
votes
2answers
288 views

How to put signature number in footer (derived from page number)?

To make my book easier to bind I'd like to automatically put the signature number with small type in the footer of the first page of each octavo signature (except the first one which is given since it ...
8
votes
2answers
139 views

How can we decide a glue or a kern when we are writing a macro?

I don't know if I am right. Let's read the codes :) \setbox0=\vbox{a\par \vskip2pt \kern2pt b} \showbox0 the snippet of the log file: .\glue 2.0 .\kern 2.0 .\glue(\parskip) 0.0 plus 1.0 ...
6
votes
2answers
245 views

In plain tex, how to use Small Caps in equations?

In LaTeX, we can write $T_{\textsc{max}}$ In plain TeX, we can do thing like \font\scshape=cmcsc10 {\scashape max}. But this method does not work inside $$. We cannot write ...
12
votes
2answers
833 views

How to use OpenType fonts with plain-LuaTeX?

Is it possible to have OpenType fonts with LuaTeX using the plain format? I have tried: \font\test="texgyrepagellaregular"\test test\bye but I get ! Font \test=texgyrepagellaregular not loadable: ...
13
votes
1answer
207 views

Is it possible to `split a hbox`?

When creating two columns or balancing it, we may use \vsplit to achieve this, but can we split a \hbox in TeX? Compared with \vsplit, an example may be like this: \setbox0=\hbox to 6in{ ... } ...
2
votes
2answers
361 views

Align boxes and rotate boxes in plain TeX

When I finish reading the Appendix D: Dirty Tricks in the TeXbook, I rethink a question: is it possible to align some character boxes like this: The input may be like this: ...
11
votes
5answers
12k views

Real number symbol (UTF-8: ℝ) in XeTeX

How can I get the 'real number' sign (something like \mathbb{R} with the amssymb package in LaTeX) in XeTeX?
4
votes
2answers
269 views

ConTeXt doesn't implement some Knuth TeX primitives?

I try to use new TeX format ConTeXt, but I find that some TeX primitives don't act any more. How sad I am when I find that. An simple example is that in plain TeX, we can set the spaces between ...
1
vote
1answer
213 views

Compiling a Plain-TeX file that loads harvmac on TexWorks on windows

I had asked this question and it was suggested that I use plain TeX. On TeXworks among the compiling options there is no such thing. When I try running the file through pdfTeX I get the message, ...
2
votes
1answer
270 views

TeXmaker for plain TeX

Sorry if this has already been asked, but, if there is something similar like this TeXmaker for plain TeX?
2
votes
2answers
271 views

Why use plain TeX exclusively and eschew LaTeX2e entirely, nowadays? [duplicate]

I was surprised to learn that some users, as show in this post, stil insist on working exclusively in plain Tex, as opposed to LaTeX. I most certainly understand the benefits of occasionally ...
5
votes
1answer
204 views

How to create a page with two columns that can span pages to achieve my special goal?

I am a Chinese plain TeX user and also a beginner. Now I encounter a hard question, that is I must write some numbered English paragraphs at the left column and its corresponding Chinese ...
7
votes
3answers
186 views

\csname error in defining in loop

In following snippet I try to use TeX programming to define commands \Ab, \Bb, \Cb and so on. Strangely, I get Missing \endcsname inserted error. What is my mistake? I hadn't read TeXBook, so it is a ...
14
votes
1answer
366 views

Is there a LaTeX3 approach to \ignorespaces?

The following code works as I would like it to: Given the state of the boolean, certain content is to be printed or not. If it's not printed, then I run the risk of creating extraneous whitespace. ...
13
votes
2answers
425 views

What is “plain TeX”?

I occasionally see a statement that plain TeX is not the same as TeX, because plain TeX is already a format. What is plain TeX, and what is the difference to TeX proper? Some answers are here (The ...
16
votes
3answers
2k views

\string command behavior - Plain TeX

I would like to learn Plain TeX and I'm reading Knuth's "The TeXBook". At Chapter 7, Knuth talks about the \string command and how it converts control sequences into lists of characters tokens. Why ...
6
votes
1answer
287 views

Multiple vertical rules along text – by using \leaders?

I want to draw individual vertical rules on the left side of consecutive paragraphs/vertical boxes covering the vertical skips. In my case for every paragraph/vertical box, there can be different ...
10
votes
2answers
505 views

TeX equivalent for LaTeX's \boxed

Does anyone have any suggestions for recreating the \boxed{...} function from LaTeX in plain TeX? I'm pretty sure it's part of the amsmath package for LaTeX (not actually sure because I include ...
2
votes
0answers
270 views

Debugging OpenType Feature / Substitution Problems with XeTeX [closed]

I have been sent an updated set of fonts from a professionally developed OTF typeface which I am trying to use with plain XeTeX. When using them with XeTeX, I could not get the OpenType features to ...
17
votes
3answers
1k views

Starting with TeX (not LaTeX)

I've been using LaTeX for 3 years and I'm decided to switch to (plain) TeX. For the moment I'm reading The TeXbook for the third time (I quietly start to read the double-danger signed paragraphs) and ...
9
votes
3answers
455 views

How do I get the \cancel (strikeout) in Plain TeX?

I've searched both online and in the TexBook, but can not find a command or package. Note, I am pretty new to TeX / LaTeX, but am currently trying to figure out how to do things in Plain TeX. Edit: ...
11
votes
2answers
396 views

Is there any software that converts latex file to tex file?

I was asked to convert a file from LaTeX format to TeX format, so it could be compiled by TeX. I use LaTeX a lot, but I'm quite unfamiliar with TeX. And the file is pretty long. So I was wondering if ...
0
votes
1answer
142 views

Combining \obeyspaces and \read

It seems to be impossible to combine \obeyspaces and \read in the following manner: \newread\myread \openin\myread=myfile.txt \obeyspaces % Deleting this line removes the error \read\myread to ...
20
votes
3answers
407 views

Strange behaviour with PGF/TikZ and Plain TeX output routine

I noticed a strange behavior when running PGF/tikZ with pdfTeX on my Debian box : a simple session without tikz: pdftex **\relax *Hello World *\bye do output the page number on the page footer. On ...
7
votes
2answers
122 views

Match number sign inside plain TeX loop

In order to strip comments from code I would like to input from a file into TeX, I am using the following loop \documentclass{article} \def\getfirst#1#2\relax{#1} \begin{document} ...
5
votes
1answer
194 views

Bad rendering of OrnementsADF

With the code (typeset with XeTeX) \font\orn="Ornements ADF" at 12pt \centerline{\orn\char70\quad\char57\quad\char102} \centerline{\orn\char102\quad\char57\quad\char70} ...
10
votes
2answers
557 views

Position margin notes relative to left margin in plain TeX

I want to add margin notes in the Tufte style to my Plain TeX document. (I'm using eplain, if that matters.) I know that if I were using LaTeX I could just use tufte-latex, but as a thorough ...
13
votes
1answer
306 views

No indent in the first paragraph in a section in Plain TeX

I have checked no indent in the first paragraph in a section? but I think my question warrants a new thread, because my question is about Plain TeX. I am using Plain TeX. I would like to write a ...
5
votes
1answer
318 views

Plain TeX and different hyperlink styles in dvi and pdf

I use the harvmac macros to write papers with plain TeX, and harvmac loads the hyperbasics file to enable hyperlinks. However I can't figure out why the hyperlinks have a different appearance in the ...
10
votes
2answers
991 views

How to include eps files in Plain TeX? [duplicate]

The title stands for itself. If it is not possible, how does LaTeX import an EPS file using \includegraphics?
9
votes
1answer
301 views

“The Errors of TeX” with hyperlinks

I was reading the appendix to "The Errors of TeX" by Knuth (errorlog.tex, written with plain TeX) and I noticed that there is a PDF file errorlog.pdf with nice hyperlinks and I was wondering how that ...
0
votes
0answers
303 views

Why do some people still use TeX instead of LaTeX? [duplicate]

Possible Duplicate: Reasons to use plain TeX Is it still worth it to learn TeX? I'm utterly curious to know why some people still use TeX instead of full featured LaTeX?
13
votes
3answers
807 views

Examples of list macros in plain TeX

I'm writing macros to typeset lists in plain TeX. Please can you suggest some examples of macros for numbered lists? I'd prefer examples from "living code", from CTAN packages and so on. But any kind ...
6
votes
0answers
645 views

Problem with LuaTeX : can't write on the .aux file at second pass [closed]

I use MiKTeX 2.9 for Windows, format Plain eTeX. I have my own macro package which I've used for years, and I tried recently to use it with LuaTeX (included MiKTeX version) in order to use UTF-8 ...
5
votes
3answers
104 views

Having inside delimiters same size as outside ones [duplicate]

I want to define a set $S= \left\{ \left[\matrix{ a &b \cr a^2 & b^2\cr }\right] \left| \right. a, b {\rm \ real \ numbers} \right\} $ How do I make the separating bar | same size ...
9
votes
1answer
234 views

Problem with a code to draw a box around text

I want to enclose a text in a box. My problem is that when the code below is placed at the beginning of a line it causes a line-break/carriage-return (the box stays on a line by itself, the rest of ...
8
votes
1answer
386 views

Can I assume that the \ht+\dp of a strutbox == \baselineskip?

In Context, as long as the interline space is set through the proper interface, it is safe to assume that (tex.box.strutbox.height + tex.box.strutbox.depth) == tex.baselineskip.width. This relation is ...
6
votes
1answer
80 views

How to create a conditional which checks the value of written text in plain TeX?

I need to create a conditional in plain TeX like this: IF #1 = "N" THEN PRINT "TRUE" ELSE PRINT "#1" I tried various ways in TeX. The solution must be simple, but none of the ways I tried ...
8
votes
4answers
826 views

How to create a conditional which checks if one or another condition is true in plain TeX?

I need to make a conditional like this: IF #1 > \variable OR #1 = 0 THEN PRINT "True" ELSE PRINT "False" If #1 is greater than \variable or is equal to 0, then it it true. The value only ...
5
votes
1answer
126 views

plain xetex page labels

there are some PDF files that some reader displays the printed page number as the current page number. I also saw, that this can be achieved in latex with hyperref package. what I'm look for is ...
2
votes
1answer
236 views

Page breaking in vtop/hbox

I'm a new user of Tex and I'm facing a problem related to a very simple situation. I'm currently working on a TeX (TeXLive, no LaTeX is used) generator. This generator builds TeX files containing ...
15
votes
1answer
623 views

How does plain TeX \insert work?

My question is about Plain TeX command \insert. I understood that every insert series has a dedicated box. But I didn't understand if the use of \insert adds content to the box, or if the box is ...
11
votes
1answer
268 views

Is TeX necessary if using LaTeX?

I have been using LaTeX for a little over two years now. I mostly use it to prepare homework solutions in mathematics and engineering coursework. I also use it to document my research and writing some ...
2
votes
2answers
174 views

Extracting content of .tex files

Is there any GUI fast way for extracting content of .tex files? (Stripping all tags and meta-data) Among TeX editors which one support export content to plain .txt file? (I found some command-line ...
11
votes
3answers
436 views

A command to replace \middle| when it's missing?

I'm using this LaTeX plugin for a Wiki (Confluence, blech), and it doesn't support the \middle| command. I'm guessing it doesn't have eTex primitives or some such backwardness. Anyway, I guess I can ...
11
votes
1answer
257 views

How does one implement drop caps in plain TeX?

How might one implement a simple drop cap in plain TeX without additional packages?
5
votes
1answer
3k views

How does \headline work?

I understand that TeX uses \headline to place headers. If \headline did not exist, how would one implement a simple version of the same? Additionally, where might one find simple documentation of ...
15
votes
1answer
451 views

A center environment for plain TeX

In TeX, one can center a single line of text with \centerline. How would one implement a center justification environment for a single long line of text in plain TeX without the addition of any ...