summaryrefslogtreecommitdiff
path: root/src/preproc/pic
diff options
context:
space:
mode:
authorwlemb <wlemb>2003-04-25 16:15:13 +0000
committerwlemb <wlemb>2003-04-25 16:15:13 +0000
commit8a6a523dc13b887c2367aa2d4121b74335eacc00 (patch)
treec0fae1d974e921582da454036e7239304a2f16c1 /src/preproc/pic
parentc858cdb9d53ab98c60dfc2546c1b751fbf045025 (diff)
downloadgroff-8a6a523dc13b887c2367aa2d4121b74335eacc00.tar.gz
* src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
Use a loose DTD. * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a vbox with positive height and zero depth if in TeX mode. * NEWS: Document glyph name changes for grodvi and grolj4.
Diffstat (limited to 'src/preproc/pic')
-rw-r--r--src/preproc/pic/pic.man32
1 files changed, 28 insertions, 4 deletions
diff --git a/src/preproc/pic/pic.man b/src/preproc/pic/pic.man
index 40dc6c7b..e25b5d7a 100644
--- a/src/preproc/pic/pic.man
+++ b/src/preproc/pic/pic.man
@@ -25,8 +25,14 @@ the original English.
.el .TP "\\$1"
..
.
-.ie t .ds tx T\h'-.1667m'\v'.224m'E\v'-.224m'\h'-.125m'X
-.el .ds tx TeX
+.ie t \{\
+. ds tx T\h'-.1667m'\v'.224m'E\v'-.224m'\h'-.125m'X
+. ds lx L\h'-0.36m'\v'-0.22v'\s-2A\s0\h'-0.15m'\v'0.22v'\*(tx
+.\}
+.el \{\
+. ds tx TeX
+. ds lx LaTeX
+.\}
.
.ie \n(.g .ds ic \/
.el .ds ic \^
@@ -243,8 +249,9 @@ You must yourself print that vbox using, for example, the command
\ecenterline{\ebox\egraph}
.RE
.LP
-Actually, since the vbox has a height of zero this will produce
-slightly more vertical space above the picture than below it;
+Actually, since the vbox has a height of zero (it is defined with
+\evtop) this will produce slightly more vertical space above the
+picture than below it;
.RS
.LP
.B
@@ -253,6 +260,23 @@ slightly more vertical space above the picture than below it;
.LP
would avoid this.
.LP
+To make the vbox having a positive height and a depth of zero
+(as used e.g.\& by \*(lx's
+.BR \%graphics.sty ),
+define the following macro in your document:
+.RS
+.LP
+.B \edef\egpicbox#1{%
+.br
+.B " \eexpandafter\esetbox\ecsname #1\eendcsname"
+.br
+.B " \evbox{\eexpandafter\eunvbox\ecsname #1\eendcsname\ekern 0pt}"
+.RE
+.LP
+Now you can simply say
+.B \egpicbox{graph}
+instead of \ebox\egraph.
+.LP
You must use a \*(tx driver that supports the
.B tpic
specials, version 2.