Add keyword `figname' to pic, specifying the name of the picture
commitc5b65117276e411ab5d6d70c94a01ce2347ad5f1
authorWerner LEMBERG <wl@gnu.org>
Mon, 21 Apr 2003 13:33:09 +0000 (21 13:33 +0000)
committerWerner LEMBERG <wl@gnu.org>
Mon, 21 Apr 2003 13:33:09 +0000 (21 13:33 +0000)
tree7ab4822b46f94c43d75c0e7053e5be41a0126a86
parent0075956457aa420bc40468a92f1a1dcd8e8f88a1
Add keyword `figname' to pic, specifying the name of the picture
box in TeX mode.  Based on a patch from William J Poser
<wjposer@unagi.cis.upenn.edu>.

* src/preproc/pic/pic.y: New token `FIGNAME'.
(macro_name): New rule of type <str>.
(placeless_element): Handle `FIGNAME'.
* src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
* src/preproc/pic/main.cpp (graphname): New global variable.
(do_picture): Initialize `graphname'.
* src/preproc/pic/pic.h: Updated.
* src/preproc/pic/tex.cpp (tex_output::start_picture): Use
`graphname'.
Simplify TeX code.
(tex_output::text): Beautify output.
* src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
`shaded' and `outlined' unconditionally.
* NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
Minor improvements.

* PROBLEMS, README.CVS: Mention that bison version 1.875b or
greater is necessary.
12 files changed:
ChangeLog
NEWS
PROBLEMS
README.CVS
doc/pic.ms
src/preproc/pic/lex.cpp
src/preproc/pic/main.cpp
src/preproc/pic/object.cpp
src/preproc/pic/pic.h
src/preproc/pic/pic.man
src/preproc/pic/pic.y
src/preproc/pic/tex.cpp