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

learn more… | top users | synonyms

10
votes
2answers
796 views

How to include eps files in Plain TeX?

The title stands for itself. If it is not possible, how does LaTeX import an EPS file using \includegraphics?
9
votes
1answer
279 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
269 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
697 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
543 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
99 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
206 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
351 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
77 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
655 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
114 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
186 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
578 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 ...
10
votes
1answer
257 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
166 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
369 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
231 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
395 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 ...
3
votes
2answers
275 views

Vertical line from top margin of page to current positon

I'm struggling with this really simple (vanilla plainTeX) trick, which I'm not able to crack... How does one draw a vertical (i.e. perpendicular to the horizon) line that leads from the top (or top ...
20
votes
4answers
2k views

Now that I can run TeX on my iPad, what shall I TeX?

I have just learnt that there is a TeX implementation now on the iPad (original source this answer to Is there a (La)TeX distribution running on iPad?). As the author of the blog post I TeX therefore ...
5
votes
1answer
150 views

Style/macros for outlines in Plain TeX

I'm seeking a style file or other macros for creating an outline in Plain TeX, of the traditional indented style, eg. I. Big Idea A. Sub idea B. Sub idea 1. Thought ...
5
votes
2answers
147 views

Name and background information on this space glyph

Given the following plain TeX snippet and it's output: hallo werld {\catcode`\ =12 hallo wereld} {\tt hallo wereld} {\tt\catcode`\ =12 hallo wereld} The command \catcode`\ =12 changes the ...
17
votes
2answers
379 views

plain TeX theory, \afterassignment

Is there a real difference between \newcount\acounter \def\dosomething{\afterassignment\dosomesecret\acounter=} \def\dosomesecret{I do something with \the\acounter} and \newcount\acounter ...
10
votes
3answers
1k views

The character ə in Plain TeX?

I'm part of a writing group and we are using Plain TeX (well, pdfTeX). Currently I need to write the symbol ə ("schwa"?), but I have no clue how to do this.
6
votes
3answers
257 views

What's the difference between format and macro language?

From a comment by morbusg depends on what you mean by "plain tex": if you mean "plain tex – the macro language", then yes, LaTeX does provide an interface. If you mean "plain tex – the ...
7
votes
2answers
1k views

Inserting an image in plain TeX

I used the OzTeX implementation of TeX, also I used to typeset my docs in plain TeX, not LaTeX for me, so I had no problem to insert an image using the OzTeX, now I'm back to TeX docs, am using the ...
13
votes
2answers
598 views

The revenge of the vboxes

Yes, they're back. With a vengeance. Those pesky little buggers we call \vboxes which I've fought against previously. (And Bruno, too.) \parskip=0pt \def\unquo{\unvbox0\smallskip} ...
15
votes
1answer
523 views

Transition from LaTeX to Plain TeX

For several reasons I need to typeset in Plain TeX, however I have always worked with LaTeX. So how hard will this be? I basically need something like the book or report documentclass (with toc, ...
5
votes
1answer
272 views

Outputting a spread at a time

I think I remember Stephan Lehmke writing here somewhere in a comment about outputting a spread at a time instead of page. That got me thinking; does that mean something like: \output={\shipout\vbox ...
7
votes
1answer
598 views

Is there a counterpart/antidote for \obeylines?

The \obeylines command tells TeX to preserve line endings, which is useful for poetry and various other things. I can limit the effect of \obeylines by wrapping it in a scope, like so: {\obeylines ...
2
votes
1answer
270 views

Plain TeX font cyrillic

I am using XeTeX and love it very much. When I use helatex, I have no problems at all. But I want to try do it «True Way»: plainTex. XeTeX takes all annoyance with unicode from me, but sample like ...
4
votes
1answer
450 views

Asana Math calligraphic capital R with XeTeX

I am having problems getting a calligraphic ‘R’ with Asana Math. This is my minimal: \font\asanacal="Asana Math:script=math;mapping=script;+salt" \font\asanascr="Asana ...
3
votes
2answers
384 views

How can I suppress the header for the first page in a chapter

I'm trying to implement a macro that begins a chapter. I don't want to use latex or fancyhdr but only plain tex (for pedagogical reasons). The code is the following ...
8
votes
1answer
443 views

What are the avaliable font sizes in texlive?

I'm using texlive 2010, and I'm trying to design the layout for a document in plain tex (because I need the document and also I want to learn tex). The input is the following \font\fifteenrm=cmr15 ...
12
votes
1answer
690 views

From LaTeX with pdflatex to plain TeX

I've always wanted to try plain TeX instead of LaTeX. I can use plain but I'm not able to use correctly the fonts and I'm not able to use the french hyphenation. I would to know how to do this with ...
3
votes
1answer
450 views

Learning TeX via the TeXbook

As I most often am not able even to ask the right question, much lesser to understand answers, I have decided to read thoroughly Knuth's TeXbook. But on Appendix B--Control Sequences--I find ...
2
votes
1answer
121 views

How do I adjust the margins just at the beginning of certain sections?

I'm using plain TeX and I'm writing a document that will have multiple sections. Each sections starts a new page (i.e. it's immediately preceded by an \eject). How can I adjust the top margin just on ...
1
vote
1answer
263 views

Unexpected conditional branch with \ifdim

I have a problem with the following code: \newtoks\sectoks \sectoks={\noindent} \newtoks\subsubjectstyle \subsubjectstyle={\emitsectglue 1\the\sectoks} \newtoks\postsectoks ...
35
votes
1answer
4k views

\setbox vs. \sbox and \savebox - What are the differences I need to know about?

What's the difference between using TeX's \setbox and LaTeX's \sbox and \savebox?
6
votes
1answer
3k views

“Missing \cr inserted”, but it looks to me like it's already there!

I'm trying to create a Plain TeX macro for typesetting two-column proofs with automatic step-numbering and step cross-referencing; currently, the "best" I have is: \newcount\stepno \def\twocols#1{% ...
7
votes
2answers
405 views

Syntax Highlighting for Plain TeX

I would like to find out what options there are for applying syntax highlighting to Plain TeX, to turn Plain TeX documents into highlighted HTML. The aim is to facilitate sharing tracked changes to ...
4
votes
1answer
253 views

how can I break the rows of an halign nicely across pages?

I'm trying to print large tables for my own consumption (I'm using Plain TeX and eplain). They are tables of publications and I just want to be able to look at them. Each table will have a variable ...
2
votes
1answer
126 views

gensym for TeX?

In other macro systems (notably Lisp's), one often needs to store results into "temporary" variables which shouldn't clash with any variables in the environment where the macro is called. In Lisp, the ...
6
votes
3answers
407 views

Retrieve the current font, scale it, and change the font to that version

I'm using Plain TeX (and eplain, if that matters). I would like to be able to generically scale the current font, no matter how the current font has been set. For example, I want to write a macro ...
10
votes
2answers
733 views

Can TeX/LaTeX draw lines at precise positions?

I need to draw lines at specific distances (in mm). For example: ---- line 0 ---- line 1 at 35.64 mm below line 0 ---- line 2 at 33.64 mm below line 1 The macro I'm using is as follows (I don't ...
9
votes
2answers
619 views

overstruck \diamond and plus in plain TeX?

I need a character in plain TeX that combines a plus with a quadrilateral whose corners are the four endpoints of the plus. Is there a way to create such a thing? I apologize for editing the ...
5
votes
1answer
244 views

PGF align plain TeX

I don't get the excepted result with the following code \input tikz \tikzpicture \node[draw,align=center] {Hello \hfil\break World}; \endtikzpicture \bye There is no break after Hello. I don't ...
2
votes
1answer
184 views

Why does tikz change the behavior of \vfil on my first page?

Note the way this renders when using pdftex. \input eplain \beginpackages \usepackage{url} \usepackage{color} \endpackages % comment in the following 4 lines % \input tikz % \enablehyperlinks % ...
8
votes
1answer
731 views

Can \usepackage{color} and \input tikz work together in Plain TeX/eplain?

I use Plain TeX and Eplain. In my document I'm using both the color and url packages inside the \beginpackages..\endpackages block. Just now I tried adding \input tikz.tex (as the TikZ manual states) ...