÷ƒ’À;è TeX output 1992.09.30:1144‹ÿÿÿÿ µK… ýb´{ K… ý™´{ï-header=/home/sol/CSFAC/droms/lib/makefonts.psŸ>’½oóH docëHThe–,Ítxt“StyleŽŸ'C3’ÈêUnix(1)Ž‘'utoolsŽ¡like–$3grep“and“emacs“can't“be“used“on“.dvi“files,‘b and“electronic“display“ofŽ¡.dvi–,Ífiles“requires“a“high-function“bit--mapped“terminal.Ž©Some–text--processing“systems“accommodate“both“high--resolution“output“andŽ¡straight– зASCII‘ ÏÈtext“output.‘EWMicrosoft“Word(2)Ž‘Wcan“save“a“document“inŽ¡either–=øformatted“or“text--only“form.‘The“formatted“version“can“be“printedŽ¡on–:an“appropriate“high--function“printer,‘½fwhile“the“text--only“version“isŽ¡compatible–É+with“other“tools“and“text“editors.‘.µThe“Unix“text“processingŽ¡tools–8etroff“and“nroff“both“accept“the“same“input“files,‘{Kbut“troff“producesŽ¡high--quality–=þoutput“while“nroff“produces“ASCII‘=¸text.‘-troff“and“nroff“areŽ¡used,–èÂfor›\Åexample,“to˜produde˜hard--copy˜and˜online˜versions˜of˜the˜UnixŽ¡user's–,Ímanual,“assuring“that“both“versions“have“identical“content.Ž¦TeX–4and“LaTeX“have“no“equivalent“to“troff's“nroff.‘ onThe“txt“style“is“part“ofŽ¡a–º?package“that“can“take“standard“LaTeX“input“and“produce“ASCII‘ºtext“output.Ž¡This–$3output“will“not“be“identical“to“the“LaTeX“.dvi“file“output,‘b but“will,Ž¡instead,–,Íbe“ASCII“text“appropriately“formatted“for“an“8.5“by“11“inch“page.Ž¤$2Ž‘ YšTheoryŽ¡The– óåproblem“addressed“by“txt“is“to“restrict“LaTeX“output“so“thatŽ¤ it– ÍVsimulates“a“line“printer,‘uxwithout“rewriting“LaTeX“itself.‘ ;6AnŽŸúÒ-Ž–,Í-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-Ž“-ŽŽ¡‘,Í1.Ž‘³4Unix–,Íis“a“trademark“of“AT&T“Bell“Laboratories.ŽŸ™œ‘,Í2.Ž‘³4I–,Íassume“Microsoft“Word“is“a“trademark“of“Microsoft,“Inc.ŽŽŸ’çÊ=1ŽŽŒ‹* µK… ýb´{ K… ý£´{ëHaccompanying–Îuprogram,›ößdvi2tty“[1Ž‘,Í],˜then“produces“ASCII‘ÎKtext“output“from“theŽ¤ txt--generated–,Í.dvi“file.Ž©There–É+are“three“primary“areas“in“which“txt“must“modify“LaTeX“to“produceŽ¡ASCII‘,Íoutput:Ž¤'‘_ëó!",š cmsy10ÆŽŽŽ‘_ìëHHorizontal‘,ÍspacingŽ¦‘_ëÆŽŽŽ‘_ìëHVertical‘,ÍspacingŽ¦‘_ëÆŽŽŽ‘_ìëHSpecial‘,ÍcharactersŽ¡txt–Ö†makes“a“first“approximation“to“line--printer“output“by“substituting“theŽ¤ 12--point–v9Courier“font“for“all“the“standard“LaTeX“font“styles“and“sizes.Ž¡Using–º<12--point“Courier“is“assumed“to“be“a“good“approximation“of“a“standardŽ¡line–i6printer,‘øPboth“horizontally“and“vertically.‘Õtxt“explicitly“sets“theŽ¡LaTeX–æƒ\baselineskip“to“be“12“points“to“better“approximate“a“standard“lineŽ¡printer–,Ígenerating“66“lines“on“an“11.5“inch“long“page.Ž¦The– înext“problem“in“approximating“line“printer“output“is“to“replace“allŽ¡rubber– >ªvertical“glue“with“fixed“glue.‘1Such“rubber“glue,‘ C!included“inŽ¡commands–¡like“\section“and“the“itemize“environment,‘ >is“replaced“by“fixedŽ¡glue–(in“multiples“of“12“points.‘'«Several“other“fixed“vertical“spaces“areŽ¡modified–¹pto“be“even“multiples“of“12“points,‘™again“to“better“simulate“lineŽ¡printer‘,Íoutput.Ž¦There– ƒšare“two“types“of“special“characters“modified“by“txt:‘5theŽ¡\labelitem–H«characters“used“by“the“itemize“environment“and“footnote“marks.Ž¡Footnote– NØmarks“are“recoded“to“use“arabic“numbers“in“parentheses“withoutŽ¡superscripting–VÍ(which“is“typically“not“feasible“on“a“line“printer“or“ASCIIŽ¡terminal).‘´aThe–õº\labelitem“characters“are“redefined“to“be“``o'',‘ §õ``-'',Ž¡``*''–,Íand“``+''.Ž¤$3Ž‘ YšUsing‘,ÍtxtŽ¡Generating–8kASCII‘8&output“with“txt“requires“two“steps:‘pÕfirst,‘{Rthe“txt“styleŽ¤ must–6Nbe“included“in“the“\documentstyle“command,‘8®and“then“dvi2tty“must“be“runŽ¡on–,Íthe“.dvi“file“to“generate“the“ASCII“output.Ž¦The–Çtxt“style“specification“should“be“included“after“any“other“style“files,Ž¡so–™that“previously“defined“commands“and“parameters“are“correctly“redefinedŽ¡by–,Ítxt“for“ASCII“output.‘ YšFor“example,“the“header“to“this“document“is:ŽŸ$‘à\documentstyle[12pt,txt]{article}ŽŽŸ’çÊ=2ŽŽŒ‹À µK… ýb´{ K… ý£´{ëHA›Dýsample–E‡session“to“generate“a“file“containing“the“ASCII˜version“of“thisŽ¤ doucment–¯[is“(where“the“``%''“character“is“the“Unix“prompt“and“should“not“beŽ¡typed):Ž©$‘à%–,Ílatex“txt.texŽ¡‘à%–,Ídvi2tty“txt.dvi“>“txt.txtŽ¦4Ž‘ YšBugsŽ¦Not–±‚all“vertical“rubber“glue“has“been“removed:‘cfor“example,–¯tables,“pageŽ¡headers–¯[and“page“footers“do“not“always“appear“on“even“multiples“of“12“pointŽ¡lines.Ž©Rules–Úàaren't“correct;‘1éspecifically,‘ehorizontal“and“vertical“lines“in“arraysŽ¡are–,Ílikely“not“to“work“correctly.Ž¦The–6model“used“by“dvi2tty“to“simulate“horizontal“spaacing“is“prone“to“error,Ž¡especially–,Íwhen“horizontal“spaces“or“fills“are“used.Ž¦raggedright–æ;is“required;‘ BñTeX“and“LaTeX“won't“insert“more“than“one“spaceŽ¡between–,Íwords“when“using“the“Courier“fonts.Ž¤$5Ž‘ YšSummaryŽ¡The– )txt“style“generates“an“approximation“of“line“printer“output“fromŽ¤ LaTeX– xºinput,‘ Kµin“the“way“nroff“generates“output“from“troff“input.‘=aTheŽ¡approximation–4øassumes“an“80“column,‘766“line“per“page“printer.‘ rThe“.dvi“fileŽ¡generated–¦ by“txt“can“be“run“through“dvi2tty.‘ ÅQThe“resulting“ASCII‘¥ëoutput“isŽ¡compatible–8)with“ASCII--only“display“and“printing“devices,‘;and“can“be“furtherŽ¡processed–,Íby“tools“like“grep“and“emacs.Ž¦The– %Yapproximation“is“imperfect“and“has“several“bugs“in“the“spacing“ofŽ¡output.‘JYModifications–Òbto“both“txt,‘ûÇespecially“eliminating“remaining“rubberŽ¡space,–,Íand“dvi2tty“are“required“to“generate“better“output.Ž¤$ReferencesŽ¡[1]ŽŽ‘†gSvante–z Lindahl“and“Marcel“Mol.–_˜Dvi2tty.“Unix–z User“Manual“Entry,‘ÎRoyalŽŸ ‘†gInstitute–,Íof“Technology,“Stockholm,“1986.ŽŽŸ’çÊ=3ŽŽŒø±ƒ’À;èµK…ÕÁGóH docó!",š cmsy10ù¤ßßßß