| 1 |
This file is public domain. |
| 2 |
Originally written 1995, Geoffrey Tobin. |
| 3 |
The author has expressed the hope that any modification will retain enough content to remain useful. He would also appreciate being acknowledged as the original author in the documentation. |
| 4 |
This declaration added 2008/11/14 by Clea F. Rees with the permission of Geoffrey Tobin. |
| 5 |
|
| 6 |
``dtl.doc'' |
| 7 |
Wed 8 March 1995 |
| 8 |
Geoffrey Tobin |
| 9 |
|
| 10 |
Correspondence between DTL and DVI files. |
| 11 |
----------------------------------------- |
| 12 |
|
| 13 |
DTL variety sequences-6, version 0.6.0 |
| 14 |
-------------------------------------- |
| 15 |
|
| 16 |
Note: `DTL' stands for `Device-Independent Text Language', and is an |
| 17 |
ASCII text representation of a DVI file. |
| 18 |
|
| 19 |
References for DVI file structure: |
| 20 |
---------------------------------- |
| 21 |
|
| 22 |
In this distribution: |
| 23 |
|
| 24 |
dvi.doc |
| 25 |
|
| 26 |
In the TeX archives: |
| 27 |
|
| 28 |
CTAN: dviware/driv-standard/level-0/dvistd0.tex |
| 29 |
|
| 30 |
"The DVI Driver Standard, Level 0", |
| 31 |
by The TUG DVI Driver Standards Committee (now defunct) |
| 32 |
chaired by Joachim Schrod. |
| 33 |
Appendix A, "Device-Independent File Format", |
| 34 |
section A.2, "Summary of DVI commands". |
| 35 |
|
| 36 |
DTL Commands |
| 37 |
------------ |
| 38 |
|
| 39 |
variety <variety-name> Specifies name of DTL file type. |
| 40 |
|
| 41 |
Naturally, `variety' has no DVI equivalent. |
| 42 |
|
| 43 |
The other DTL commands correspond one-to-one with DVI commands, but I |
| 44 |
have used briefer names (except for `special') than those used in the |
| 45 |
DVI standards document. |
| 46 |
|
| 47 |
DTL : DVI |
| 48 |
|
| 49 |
(text) : series of set_char commands, for printable ASCII text |
| 50 |
\( : literal ASCII left parenthesis in (text) |
| 51 |
\) : literal ASCII right parenthesis in (text) |
| 52 |
\\ : literal ASCII backslash in (text) |
| 53 |
\" : literal ASCII double quote in (text) |
| 54 |
\XY : set_char for character with hexadecimal code XY, |
| 55 |
not in parentheses, but by itself for readability |
| 56 |
s1, s2, s2, s3 : set, with (1,2,3,4)-byte charcodes |
| 57 |
sr : set_rule |
| 58 |
p1, p2, p2, p3 : put, with (1,2,3,4)-byte charcodes |
| 59 |
pr : put_rule |
| 60 |
nop : nop (do nothing) |
| 61 |
bop : bop (beginning of page) |
| 62 |
eop : eop (end of page) |
| 63 |
[ : push |
| 64 |
] : pop |
| 65 |
r1, r2, r3, r4 : right, with (1,2,3,4)-byte argument |
| 66 |
w0, w1, w2, w3, w4 : as in DVI |
| 67 |
x0, x1, x2, x3, x4 : as in DVI |
| 68 |
d1, d2, d3, d4 : down, with (1,2,3,4)-byte argument |
| 69 |
y0, y1, y2, y3, y4 : as in DVI |
| 70 |
z0, z1, z2, z3, z4 : as in DVI |
| 71 |
fn : fnt_num (set current font to font number in 0 to 63) |
| 72 |
f1, f2, f3, f4 : fnt (set current font to (1,2,3,4)-byte font number) |
| 73 |
special : xxx (special commands with (1,2,3,4)-byte string length) |
| 74 |
fd : fnt_def (assign a number to a named font) |
| 75 |
pre : preamble |
| 76 |
post : post (begin postamble) |
| 77 |
post_post : post_post (end postamble) |
| 78 |
opcode : undefined DVI command (250 to 255) |
| 79 |
|
| 80 |
--------------- |
| 81 |
EOF ``dtl.doc'' |
| 82 |
--------------- |