[net.text] n/troff. backslashes in .B[1-2] envs.

vauclair@prlb2.UUCP (Marc Vauclair) (02/22/85)

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

jeff@ISM780.UUCP (02/27/85)

The \e escape will generally produce the backslash character.

ed@mtxinu.UUCP (Ed Gould) (02/28/85)

> Does anyone know how I can get a \ in a boxed text ?
> Given a file named #t4 containing the following stuff :

Try using \e - it's the name for a printable "escape" character,
which is "\" by default.

-- 
Ed Gould		    mt Xinu, 739 Allston Way, Berkeley, CA  94710  USA
{ucbvax,decvax}!mtxinu!ed   +1 415 644 0146