From Rainer at krugs.de  Thu Sep  5 17:49:54 2013
From: Rainer at krugs.de (Rainer M Krug)
Date: Thu, 5 Sep 2013 17:49:54 +0200
Subject: [Rd] ASCII art in function documentation?
In-Reply-To: <CAM_vjum5a3kz9WHc=OwEocFppVFr8A4FjTqfSseGWiGekUnU6g@mail.gmail.com>
	(Sarah Goslee's message of "Thu, 5 Sep 2013 11:31:22 -0400")
References: <m238pjjr5s.fsf@krugs.de>
	<CAM_vju=9Z_kdWRvBf+r8x=4eS-q-s5Xng+aveF2WJKhuBQXGvA@mail.gmail.com>
	<m2txhzcniz.fsf@krugs.de>
	<CAM_vjum5a3kz9WHc=OwEocFppVFr8A4FjTqfSseGWiGekUnU6g@mail.gmail.com>
Message-ID: <m2hadzclp9.fsf@krugs.de>

OK - it boils down to an roxygen problem.

I will send a separate email for it.
Thanks,

Rainer


Sarah Goslee <sarah.goslee at gmail.com> writes:

> Now that I'm at the computer with my R code, I've used both
> \preformatted{}
> and \cr to force line breaks.
>
> Some combination of those may work for you.
>
> Sarah
>
>
> On Thu, Sep 5, 2013 at 11:10 AM, Rainer M Krug <Rainer at krugs.de> wrote:
>> Sarah Goslee <sarah.goslee at gmail.com> writes:
>>
>>> Untested, but did you try wrapping the whole thing in a single code block:
>>
>> Nope - also in one line.
>>
>> Rainer
>>
>>>
>>> \code{
>>> all
>>> the
>>> things
>>> }
>>>
>>> Sarah
>>>
>>> On Thu, Sep 5, 2013 at 10:10 AM, Rainer M Krug <Rainer at krugs.de> wrote:
>>>> 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
>>>>
>>>>
>>>> --
>> <#secure method=pgpmime mode=sign>
>>
>> --
>> Rainer M. Krug
>>
>> email: RMKrug<at>gmail<dot>com
>>
>
<#secure method=pgpmime mode=sign>

-- 
Rainer M. Krug

email: RMKrug<at>gmail<dot>com



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