Article View: net.text
Article #458n/troff. backslashes in .B[1-2] envs.
From: Marc Vauclair
Date: Fri, 22 Feb 1985 11:34
Date: Fri, 22 Feb 1985 11:34
64 lines
2409 bytes
2409 bytes
Does anyone know how I can get a \ in a boxed text ?
Given a file named #t4 containing the following stuff :
------------------------------------------------------------------------
.PP
THis is a test of a : \\
.sp 2
.B1
.sp 2
.PP
THis is a test of a : \\
.sp 2
.B2
.sp 2
-------------------------------------------------------------------------
Using the command : 'nroff -ms #t4 | col' gives the following result :
=========================================================================
THis is a test of a : \
_______________________________
| |
| |
| |
| THis is a test of a : ( |
| |
|______________________________|
=========================================================================
A possible cure is modifying the input code to the following form :
=========================================================================
.PP
THis is a test of a : \\
.sp 2
.B1
.sp 2
.PP
.eo
THis is a test of a : \\
.ec
.sp 2
.B2
.sp 2
==========================================================================
It gives the following result :
==========================================================================
THis is a test of a : \
________________________________
| |
| |
| |
| THis is a test of a : \ |
| |
|_______________________________|
==========================================================================
But this solution works properly only if there are no other \ escape in the
text on the concerned line.
Marc Vauclair
Philips Research Laboratory Brussels
{mcvax,philabs}!prlb2!vauclair
Technical Details
Message-ID:
<493@prlb2.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!mcvax!prlb2!vauclairShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site prlb2.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!mcvax!prlb2!vauclair From: vauclair@prlb2.UUCP (Marc Vauclair) Newsgroups: net.text Subject: n/troff. backslashes in .B[1-2] envs. Message-ID: <493@prlb2.UUCP> Date: Fri, 22-Feb-85 06:34:11 EST Article-I.D.: prlb2.493 Posted: Fri Feb 22 06:34:11 1985 Date-Received: Wed, 27-Feb-85 02:39:26 EST Organization: Philips Research Laboratory Brussels Lines: 59