Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Direc­tory tex-archive/macros/latex/contrib/tclldoc/examples

README for the parsetcl and writepdf packages:
==============================================

The parsetcl package implements basic parsing
of Tcl scripts, and is written completely in
Tcl. To generate parsetcl.tcl, run LaTeX on
parsetcl.ins. To typeset the documentation, 
run LaTeX on parsetcl.dtx. To see an example
of what it does, you can try the following 
commands in a Tcl shell:

   source parsetcl.tcl
   auto_load parray
   set tree [parsetcl::simple_parse_script [info body parray]]
   parsetcl::format_tree $tree {} {   }

The tree variable will be set to a parser tree
for the body of the parray procedure. The last 
command reformats this tree (mostly replacing 
whitespace between list elements) to make the 
structure more visible.


The writepdf package is written completely in 
Tcl and provides basic commands for writing 
well-formed PDF files. To generate writepdf.tcl, 
run LaTeX on pdf.ins. To typeset the 
documentation, run LaTeX on pdf.dtx. To see an 
example of what it does, you can try the following 
commands in a Tcl shell:

   source writepdf.tcl
   source hellopdf.tcl

This will generate a file hello.pdf that contains
a single page with the two words "Hello world!".


Lars Hellstr´┐Żm,
20 July 2003

Files

Name Size Date Notes
README.txt 1235 2003-07-20 12:43
parsetcl.dtx 43000 2003-07-20 12:43
parsetcl.ins 1459 2003-07-20 12:43
pdf.dtx 27840 2003-07-20 12:43
pdf.ins 1493 2003-07-20 12:43
Guest Book Sitemap Contact