summaryrefslogtreecommitdiff
path: root/src/preproc/pic
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 /src/preproc/pic
parentd3f79db83216abfd5a5ff757d6fd114d7cc603ea (diff)
downloadgroff-c858cdb9d53ab98c60dfc2546c1b751fbf045025.tar.gz
* src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code (again).
* doc/pic.ms: Fixed.
Diffstat (limited to 'src/preproc/pic')
-rw-r--r--src/preproc/pic/tex.cpp5
1 files changed, 3 insertions, 2 deletions
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;
}