summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-04-24 01:07:31 +0000
committerwlemb <wlemb>2003-04-24 01:07:31 +0000
commitc858cdb9d53ab98c60dfc2546c1b751fbf045025 (patch)
tree8db0476177951526d8f22e8a60d3c03d7860b55b
parentd3f79db83216abfd5a5ff757d6fd114d7cc603ea (diff)
downloadgroff-c858cdb9d53ab98c60dfc2546c1b751fbf045025.tar.gz
* src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code (again).
* doc/pic.ms: Fixed.
-rw-r--r--ChangeLog1
-rw-r--r--doc/pic.ms5
-rw-r--r--src/preproc/pic/tex.cpp5
3 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index f142c7fb..02989194 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2003-04-23 Werner LEMBERG <wl@gnu.org>
* src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
+ * doc/pic.ms: Fixed.
2003-04-21 Werner LEMBERG <wl@gnu.org>
diff --git a/doc/pic.ms b/doc/pic.ms
index 42aee418..bfbc5e49 100644
--- a/doc/pic.ms
+++ b/doc/pic.ms
@@ -10,7 +10,7 @@
.\" This document was written for free use and redistribution by
.\" Eric S. Raymond <esr@thyrsus.com> in August 1995.
.\"
-.\" $Id: pic.ms,v 1.20 2003/04/21 13:32:50 wlemb Exp $
+.\" $Id: pic.ms,v 1.21 2003/04/24 01:07:32 wlemb Exp $
.\"
.\" Set a proper TeX
.ie t .ds tx T\h'-.1667m'\v'.224m'E\v'-.224m'\h'-.125m'X
@@ -2446,7 +2446,8 @@ At the beginning of each picture, `figname' is reset to the vbox name
`graph'; this command has only a meaning in \*[tx] mode. While the grammar
rules allow digits and the underscore in the value of `figname', \*[tx]
normally accepts uppercase and lowercase letters only as box names
-(\fBpic\fP doesn't use `\ecsname' to circumvent this limitation).
+(you have to use `\ecsname' if you really need to circumvent this
+limitation).
.DS
.CW
<any-expr> ::=
diff --git a/src/preproc/pic/tex.cpp b/src/preproc/pic/tex.cpp
index bc587597..8428ac90 100644
--- a/src/preproc/pic/tex.cpp
+++ b/src/preproc/pic/tex.cpp
@@ -115,12 +115,13 @@ void tex_output::start_picture(double sc, const position &ll,
might be non-zero if text from text attributes lies outside pic's
idea of the bounding box of the picture. */
printf("\\expandafter\\ifx\\csname %s\\endcsname\\relax\n"
- " \\newbox\\%s\n"
+ " \\expandafter\\newbox\\csname %s\\endcsname\n"
"\\fi\n"
"\\ifx\\graphtemp\\undefined\n"
" \\newdimen\\graphtemp\n"
"\\fi\n"
- "\\setbox\\%s=\\vtop{\\vskip 0pt\\hbox{%%\n",
+ "\\expandafter\\setbox\\csname %s\\endcsname\n"
+ " =\\vtop{\\vskip 0pt\\hbox{%%\n",
graphname, graphname, graphname);
pen_size = -2.0;
}