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

learn more… | top users | synonyms

4
votes
1answer
128 views

Why is \leftskip glue not automatically inserted?

TeXbook says (page 100): TeX has two parameters called \leftskip and \rightskip that specify glue to be inserted at the left and right of every line in a paragraph ... Consider this example: ...
4
votes
1answer
78 views

How do I type a brace-enclosed, numbered equations in plain TeX?

Basicly it looks like: I tried \eqalign, but it cannot have equation numbers on the right. I also tried \eqalignno, but it cannot have a brace on the left.
5
votes
1answer
118 views

QR code for plain TeX

I am looking for a macro package for QR codes applicable in plain TeX. The QR code should be calculated from string at TeX macro level like in qrcode.sty, but this package is usable only for LaTeX. I ...
1
vote
0answers
18 views

Non-equal spacing comparing between \left, \right and their \big equivalents [duplicate]

The following two examples differ only with that in the first \left and \right are used, and in the second they are replaced with equivalent \Biggl and \Biggr. But spacing differs slightly. Why? $$ ...
3
votes
2answers
53 views

What are the rules for style change in formulas (Plain TeX)?

Both numerator and denominator in the following two formulas are of the same size, namely \textstyle (from which we conclude, that: 1) style change does not affect the digit, which immediately ...
1
vote
1answer
44 views

Weird spaces after \magstepN

Consider example1: hello% world \bye In example2 a space is added between o and w, in comparison with example 1: hello% \magnification\magstep0 world \bye (It seems that space (which appeared ...
2
votes
1answer
89 views

Plain TeX and XeTeX

Will all plain TeX code also work with XeTeX?
7
votes
2answers
131 views

Why does the redefinition of \par disable \nopagenumbers?

Let's disable page numbers: \nopagenumbers Hello world. \bye Page numbers appear if we redefine the nearest \par: \begingroup\def\par{\endgraf\endgroup} \nopagenumbers Hello world. \bye If we ...
1
vote
1answer
49 views

How to get last box in vertical mode?

I'm trying to get the contents of a paragraph with \showbox via \vadjust, by overloading \par. I came up with this: \showboxdepth\maxdimen \showboxbreadth\maxdimen \let\oldvadjust\vadjust ...
4
votes
3answers
39 views

Setting headlines with widths which differ from the width of the body text

Using (plain) TeX, I'm trying to set the headline to a different width from that of the body of the text (i.e. hang page numbers to the outside of the text, as seen in the TeX Book).
4
votes
1answer
121 views

moving from old plain TeX to XeTeX

I have a style file I used for a project in pre-Unicode age. Now I want to convert it for use in XeTeX. I used Computer Modern and now would like to use CMU Serif. Pointers on what to do with the ...
2
votes
2answers
144 views

How to align vertically by right border?

Consider this example: \hsize.1in \noindent \parfillskip=0pt \leftskip=0pt plus 1fil \hfuzz=2em hello world \bye The result is: The expected result is: Why the example does not produce the ...
1
vote
0answers
49 views

Short footnotes on same line or centered in plain TeX

Is there in plain TeX a way to print two short footnotes on the same line (spaced as if in columns) or a single footnote centered?
17
votes
1answer
338 views

What is the equivalent of \usepackage[T1]{fontenc} in plain TeX?

I have inherited a semi-small TeX project in which I, after syncing across various computers and OS'es, had some problems with encodings of special characters like åäö. My initial approach for fixing ...
0
votes
2answers
177 views

How to open a plain TeX document in BaKoMaTeX (TeXword)

The question says it all I want to open a plain Tex equation in BaKoMaTeX (TeXWord) This is a Sample File $$ t{\rm{(}}x{\rm{,}}y{\rm{)}} = \left\{ {\matrix{ 1 \cr 0 \cr } } \right.\matrix{ {\quad ...
6
votes
1answer
130 views

Weird error after \showthe

I'm trying to understand the meaning of \p@ from plain.tex: \newdimen\p@ \p@=1pt % this saves macro space and time While trying to figure it out, I stumbled upon strange behavior. Consider this: ...
5
votes
1answer
79 views

How is a page produced in the output routine?

Compare this \nonstopmode \tracingonline=1 \showboxdepth=\maxdimen \showboxbreadth=\maxdimen \output={\shipout\vbox{ \unvbox255 \showlists }} \nopagenumbers \noindent A \bye and this ...
4
votes
1answer
47 views

Description list in plain TeX with optional break after tag

I'd like to have a desription list in plain TeX where there is only a line break after the item tag if the tag width exceeds a certain value. Lets say the indentation of the tags is zero and the ...
9
votes
2answers
632 views

Embedding a flv (or mp4) video using pdfTeX (plain TeX only)

I am attempting to find out how to embed a flv video in a pdf file created using plain TeX and pdfTeX. I was successful at manually (via Adobe Acrobat's menu: Tools->Multimedia->Video Tool) embedding ...
3
votes
1answer
98 views

Plain TeX: Wrong \folio for heading at top of page

I have the following chapter macro (uses code from Heiko Oberdiek): \def\ChaptTocEntry#1#2{% \line{\hbox to1em{\hfil\bf#1}\hskip1em#2\leaderfill\folio}} \def\ChaptWr#1{{% \let\folio\relax ...
6
votes
1answer
148 views

two column footnotes, Plain TeX

I’m trying to get footnotes set in two columns in Plain TeX. This is my minimum working example: %!TEX TS-program = pdftex \output{\ifvoid\footins\else\vskip\skip\footins\rigidbalance\footins 2 7pt ...
0
votes
2answers
2k views

How to define font size in plain TeX such that it works as font size defined in article?

% gettingstarted.tex \hoffset=-72.27pt \voffset=-72.27pt \hsize=72.27pt \vsize=72.27pt \special{papersize=\the\hsize,\the\vsize} \parindent=0pt \nopagenumbers \input pstricks ...
5
votes
2answers
64 views

How to expand a register value in a \write argument (plain TeX)?

I am using \write to output table of contents information. While the correct heading counter information apears in the headings itself, the TOC headings have the number of the last heading of a page. ...
0
votes
1answer
94 views

Plain TeX pdf2ps page numbering offset for front matter in PDF viewer [duplicate]

The good: When I use plain TeX, and then run dvips to get the Postscript output, I see negative page numbers for the front matter in the thumbnail pages on the left in evince and gv (ghostview), ...
7
votes
3answers
554 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 ...
3
votes
2answers
94 views

Does the concatenation of two text files, which compile under tex, always compile under tex?

In other words, does the set of all text files that compile under tex form a monoid under concatenation? I have recently dabbled a bit in plain tex and my algebraic spider senses were immediately ...
8
votes
1answer
101 views

supporting both \"u and ü

I maintain musixtex extension package musixtmr.tex that enables times text fonts. I thought I could enable accented glyphs like ü by using ptmr8r instead of ptmr7t. But this has the effect of ...
4
votes
1answer
91 views

How to use txfont in plain TeX

I'm trying to insert one font from txfont package in my plain TeX file, but I cannot understand some aspects of this font distribution. The font I would use is the txmi1; so, how can TeX use this ...
1
vote
1answer
96 views

babel/plain.def : ! Illegal parameter number in definition of \@yargdef

I tried to generate plain TeX cyrillic format files using makefmts.sh script from cyrplain package, here is the content of this script: #!/bin/sh tex -ini -fmt=cyrtex -progname=tex cyrtex.ini tex ...
6
votes
1answer
124 views

Adjust spacing between footnotes

I am using a macro for TeX which I have received from my coauthor but she also did not know how to adjust spacing between footnotes. Here is my macro.tex % make the pageheight a bit smaller ...
10
votes
1answer
154 views

Rearranging blocks (poetry) in OTR (Plain TeX)

I have a problem that I think would best be solved by an output routine. It seems like an act of moderate TeX wizardry so before I get stuck in the weeds on a wrong approach I thought I would describe ...
2
votes
0answers
44 views

Loading system (OTF/TTF) fonts from plain TeX with LuaTeX [duplicate]

In XeTeX, I can set up a font pretty straightforwardly with: \font\foo="Minion Pro" at 10pt I don't quite see how to do it. This question suggests that the answer is "use luaotfload.sty." Is that ...
4
votes
1answer
168 views

How to replace CM fonts with ones compatible with XeTeX (in amsppt.sty)?

I would like to try to patch amsppt.sty AMSTeX style file to make it usable with XeTeX and non-Latin languages (Cyrillic). It looks like i need to replace the following CM fonts or font families with ...
7
votes
1answer
118 views

Accent i in plain TeX fails inside array loop

In Plain TeX, when I try to create an array of control sequences (\word0, \word1, etc.) and print it out using a loop, TeX stumbles over the accented-i control sequence \'{\i}. I get this error: ! ...
2
votes
1answer
254 views

Cyrillic letters and Russian hyphenation in Plain XeTeX

What is the simplest method to tell XeTeX (not XeLaTeX) to use a font with Cyrillic letters and to apply Russian hyphenation rules? Ideally i would like to not have to specify anything in the source ...
6
votes
3answers
288 views

Non-latin characters with plain TeX

What would it take to output non-latin letters (e.g. cyrillic letters) to a document using just plain TeX (i.e. without using "third-party" macro packages such as LaTeX)?
6
votes
1answer
138 views

How to design page layout in plain TeX using OPmac?

I'm trying to create a slideshow in TeX using Opmac. I need a page layout like that: And I try this code: \input opmac \chyph \margins/1 a5l (1,1,1,1.2)cm % page format \input ctimes ...
2
votes
1answer
107 views

Plain TeX `\footline` with rule and content

It seems pretty trivial to replace the footer with either content or a line in Plain TeX: \footline={\centerline{\folio}} % page number in footer \footline={\hrulefill} % rule in footer ...
9
votes
3answers
682 views

How can I use times fonts in Plain TeX?

I'd like to use Times fonts in Plain TeX. What would be the Plain-TeX equivalent of the LaTeX command \renewcommand{\rmdefault}{ptm}?
8
votes
2answers
188 views

Plain TeX section number in margin

I want to typeset the number for the section in the margin. Here's an MWE of what I'm starting from. % --- Fonts ------------------------------------------------ \font\0="Roboto Condensed Light" at ...
14
votes
2answers
1k 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
2answers
399 views

Plain XeTeX cyrillic font [duplicate]

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 ...
6
votes
1answer
125 views

Underline omitting the descenders with Plain TeX

I'm reading this question Underline Omitting the Descenders and wondering if there is a way to do this with Plain TeX and XeTeX.
5
votes
3answers
661 views

How to create PDF outline

According to the PDF reference (PDF document, 9.4MB), one can create an outline for the document; a visual table of contents for the viewer application which enables the user to jump to the page for ...
9
votes
1answer
143 views

Question about exercise 7.5 in TeXbook

Consider this extract from TeXbook: EXERCISE 7.5 Experiment with TEX to see what \string does when it is followed by an active character like ~. (Active characters behave like control ...
6
votes
2answers
199 views

Plain TeX: Line up some text boxes

Forgive me for asking what is probably a trivial question. I'm working through the books but always seem to be confused when I sit down at the computer. I'm using plain TeX. I have three ...
3
votes
2answers
256 views

PNG in Plain TeX [duplicate]

I have been presented with graphic files in the format .png. I need to include them in a Plain TeX document. How is that possible? Is there a way to convert them to .eps?
4
votes
2answers
72 views

How to generate table of content with OPmac macro \kuk without duplicities of pages?

I'm trying to create a slideshow in TeX using Opmac. But when I use macros \kuk and \maketoc, there are duplicities in table of content. Is any possibility to generate the line in the toc only for a ...
38
votes
1answer
2k views

Why does plain TeX have a \bye command?

In plain TeX, \bye marks the end of the TeX document. Yet why is such a command even needed? TeX should be quite able to see for itself that here, the file stops, and there is nothing more to find. I ...
3
votes
3answers
479 views

Can I use (LaTeX?) packages from CTAN in plain TeX?

I have the following assumptions: TeX is a kind of language Plain TeX is the original environment for this language LaTeX (and other environments) is a set of compiled macros written using TeX ...