固河镇中心小学 开展听评课积极参与县教学能手...
百度 要在优化为民服务上抓好贯彻落实,发挥自身优势,打造特色品牌,进一步增强社会服务工作成效。
Plain TeX is Knuth's original default format for TeX documents.
938 questions
4
votes
2
answers
117
views
Figures inserted in plain TeX via \special{psfile=...} not showing up
I'm trying to typeset some old plain TeX documents, created decades ago with the now-obsolete Mac implementation TeXtures, which incorporate eps illustrations via the TeXtures instruction \special{...
6
votes
1
answer
181
views
In \tt, why do \char92 and \char'134 output the backlash '\', while \char"5c outputs 'Πc'?
\tt
\char`\\ \char92 \char'134 \char "5c
\bye
outputs
\\\Πc
Why does it change using hexadecimal notation? Thanks in advance.
2
votes
3
answers
181
views
Why \magstep0 break \ifcase structure in the definition of itself?
This is in LuaTeX, Version 1.22.0 (TeX Live 2026/dev/Arch Linux)
This is happened in a macro with \afterassignment
and then assign \magstep0 to a count register.
A shortest description:
\newcount\...
5
votes
1
answer
136
views
Package clash fontspec,mathastext,amssymb,amsfonts,plain,showframe
I'm using xeLaTeX, but display equations I need in plain TeX format, for this, trying with:
\documentclass{article}
\usepackage[no-math]{fontspec}%
\usepackage[italic]{mathastext}
\usepackage{amssymb,...
2
votes
0
answers
75
views
What's the purpose of \pdfsetmatrix?
I've been reading the pdfTeX manual recently, and I came across the primitive \pdfsetmatrix. At first I thought that its purpose is to solve a problem similar to the one \pdfcolorstack solves.
That is,...
5
votes
1
answer
113
views
Understanding \pdfstartlink options
I am going through the pdfTeX manual and after unravelling the usage of \pdfstartlink, I see that the following is a possible usage:
\pdfstartlink goto named <general text> <general text>
(...
6
votes
1
answer
191
views
Adobe Acrobat not displaying inline image
I've been playing around with pdfTeX primitives lately, and I'm trying to insert an inline image (of a smiley).
I have the following code:
\pdfcompresslevel=0
\catcode`@=11
\nopagenumbers
\...
3
votes
2
answers
156
views
Multiple delimiters for a macro
I would like to write a macro which (essentially) picks up a word (a maximal contiguous string of letters).
For example,
\long\def\Word #1.{#1.\write1{#1}}
writes #1 to a file numbered 1, but leaves ...
4
votes
2
answers
180
views
Source code of books written in Plain TeX
In the book 'A Beginner's Book to TeX' by Raymond Seroul and Silvio Levy
it is mentioned that it was typeset using TeX, so I searched for its source code, but I couldn't find it.
Are there any books ...
8
votes
3
answers
260
views
Plain TeX changing catcodes to make a verbatim environment
I am using plain TeX (LuaTeX) to make a series of macros which will let me write inline code segments. These macros would handle special characters and allow for them to be displayed as they are ...
2
votes
2
answers
104
views
Restore \baselineskip preceding a formatted paragraph between a TeX group
I would like to create a \quote command in Plain TeX that starts a paragraph, writes the text, and finally ends the paragraph. For example:
\def\lip{Lorem ipsum dolor sit amet, consectetur adipiscing ...
2
votes
1
answer
77
views
Plain TeX line break box issues with tikz
I am trying to create a macro that will be used for a code snippet. Ideally this macro would place the text in a box centered horizontally on a page and the text would be left aligned with a gray ...
1
vote
1
answer
87
views
Plain loops with counters
Major update
The following code has some weird behaviour:
%&pdftex
\input tugboat.sty
\enablemetacode % comment me!
\everyverbatim{\enablemetacode}
\input protcode.tex
\setprotcode\tenrm
\...
2
votes
1
answer
196
views
How to prevent incorrect numeric values
Please, I really do not want whys and woes.
This example does not work!
How may I implement in this example a routine which prevents the user to insert incorrect values?
A day may not have a value ...
8
votes
4
answers
1k
views
What's the best TeX system for font magic?
Long time lurker, first time poster.
After a roughly twenty-year hiatus, I've returned to TeX to write a fiction book. The TeX landscape has changed considerably over that time.
Plain TeX suits most ...