From murdoch at stats.uwo.ca  Fri Sep 16 22:33:19 2005
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Fri, 16 Sep 2005 16:33:19 -0400
Subject: [Rd] Rd and guillemots
In-Reply-To: <Pine.LNX.4.61.0509162115380.6756@gannet.stats>
References: <D79013E40FEF254AAF0D72DFC94F274803D8C4@extas4-hba.tas.csiro.au>	<432B09A0.1090607@stats.uwo.ca>
	<Pine.LNX.4.61.0509162115380.6756@gannet.stats>
Message-ID: <432B2C0F.2050006@stats.uwo.ca>

On 9/16/2005 4:16 PM, Prof Brian Ripley wrote:
> There are two instances of this.  If I add 'go' to both it works for me.
> I guess you only had the first one (the second is used here).

Yes, that's it.  Thanks!

Duncan Murdoch

> 
> On Fri, 16 Sep 2005, Duncan Murdoch wrote:
> 
>> On 9/15/2005 7:51 PM, Mark.Bravington at csiro.au wrote:
>>> First of all, thanks to those who've set up R to work so smoothly with
>>> Miktex-- even a total Latex bunny like me got it to work instantly, so
>>> that for the first time I'm able to run my Rd files through the Latex
>>> side of RCMD CHECK.
>>>
>>> Now the question/buglet. One of my Rd files contains the following:
>>>
>>> \code{mlazy( <<objname1>>, <<objname2>>, <<etc>>)}
>>>
>>> When I run the file through RCMD (either RCMD CHECK or Rcmd Rd2dvi
>>> --pdf) the first << and >> are left alone, but the second and third
>>> pairs are converted to single guillemot characters (i.e. European
>>> quotation marks). This inconsistency seems a bit odd.
>>
>> Yes, this is the tex that gets output:
>>
>> \code{mlazy( <{}<objname1>{}>, <<objname2>>, <<etc>>)}
>>
>> This seems to happen in Rdconv.pm, around here:
>>
>>     ## avoid conversion to guillemots
>>     $c =~ s/<</<\{\}</;
>>     $c =~ s/>>/>\{\}>/;
>>
>>
>> But I don't know enough Perl syntax to tell it to replace all << by
>> <{}<, instead of just the first.  (I would have guessed appending a g
>> would work, but didn't in a quick test, i.e. $c =~ s/<</<\{\}</g; didn't
>> work.)
>>
>> Duncan Murdoch
>>
>>>
>>> Also, is there any way of getting RCMD to leave << and >> alone-- i.e.
>>> not to guillemotize them? They cause unrecognized characters on my
>>> (Windows XP, newly-installed Miktex, R-alpha of 10/9/2005) system when I
>>> run the dvi files through dvips.
>>>
>>> Thanks
>>>
>>> Mark Bravington
>>> CSIRO Mathematical & Information Sciences
>>> Marine Laboratory
>>> Castray Esplanade
>>> Hobart 7001
>>> TAS
>>>
>>> ph (+61) 3 6232 5118
>>> fax (+61) 3 6232 5012
>>> mob (+61) 438 315 623
>>>
>>> ______________________________________________
>>> R-devel at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>>
>



[Rd] Rd and guillemots
Duncan Murdoch