powered by
These functions get and set the \specials values in .dvi files.
DVIspecials(f) setDVIspecials(f, newspecials, newname=f)
DVIspecials returns all the specials from the file in a character vector.
DVIspecials
setDVIspecials is called for the side effect of patching the .dvi file; it returns NULL invisibly.
setDVIspecials
NULL
character filename of .dvi file to patch
character vector of new specials to put into the file
the name of the file to write
Duncan Murdoch
If an entry of the newspecials vector is NA, that special is removed.
newspecials
NA
patchDVI
if (FALSE) { x <- DVIspecials("test.dvi") x[1] <- "new value" setDVIspecials("test.dvi", x) }
Run the code above in your browser using DataLab