From Rainer at krugs.de  Thu Sep  5 16:10:07 2013
From: Rainer at krugs.de (Rainer M Krug)
Date: Thu, 5 Sep 2013 16:10:07 +0200
Subject: [Rd] ASCII art in function documentation?
Message-ID: <m238pjjr5s.fsf@krugs.de>

Hi

I want to include ascii art in a function documentation which should
look as follow:

,----
| +------+------+------+
| | 1/16 | 1/16 | 1/16 |
| +------+------+------+
| | 1/16 | 8/16 | 1/16 |
| +------+------+------+
| | 1/16 | 1/16 | 1/16 |
| +------+------+------+
`----


to keep the monospaced font even in html, I decided to use \code{}:

,----
| \code{+------+------+------+}
| 
| \code{| 1/16 | 1/16 | 1/16 |}
| 
| \code{+------+------+------+}
| 
| \code{| 1/16 | 8/16 | 1/16 |}
| 
| \code{+------+------+------+}
| 
| \code{| 1/16 | 1/16 | 1/16 |}
| 
| \code{+------+------+------+}
`----

But the result was an empty line between each text:

,----
|      '+------+------+------+'
| 
|      '| 1/16 | 1/16 | 1/16 |'
| 
|      '+------+------+------+'
| 
|      '| 1/16 | 8/16 | 1/16 |'
| 
|      '+------+------+------+'
| 
|      '| 1/16 | 1/16 | 1/16 |'
| 
|      '+------+------+------+'
`----

and when no empty lines were included obviously put everything behind
each other.

My question:

Is there a way that I can achieve the ASCII art as shown above? Is there
a way of having a \linebreak which does not insert a new line?

Thanks,

Rainer


-- 
Rainer M. Krug

email: RMKrug<at>gmail<dot>com



[Rd] ASCII art in function documentation?
Rainer M Krug