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. 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
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
On 16-Sep-05 Duncan Murdoch wrote:> [...] > This seems to happen in Rdconv.pm, around here: > > ## avoid conversion to guillemots > $c =~ s/<</<\{\}</; > $c =~ s/>>/>\{\}>/;The name of the "continental" quotation mark ? is "guillemet". The R Development Core Team must have had some bird on the brain at the time ... Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk> Fax-to-email: +44 (0)870 094 0861 Date: 16-Sep-05 Time: 22:51:19 ------------------------------ XFMail ------------------------------
On Fri, 16 Sep 2005, Ted.Harding at nessie.mcc.ac.uk wrote:> > The name of the "continental" quotation mark ? is "guillemet". >For anyone who is still confused: Left pointing guillemet (U+00BB) http://www.mathmlcentral.com/characters/glyphs/LeftGuillemet.html Left pointing guillemot (Uria aalge) http://www.rspb.org.uk/scotland/action/disaster/index.asp Right pointing guillemet: (Unicode U+00AB) http://www.mathmlcentral.com/characters/glyphs/RightGuillemet.html Right pointing guillemot: (Uria aalge) http://www.yptenc.org.uk/docs/factsheets/animal_facts/guillemot.html -thomas
On Fri, 16 Sep 2005, Thomas Lumley wrote:> On Fri, 16 Sep 2005, Ted.Harding at nessie.mcc.ac.uk wrote: >> >> The name of the "continental" quotation mark « is "guillemet". >> > > For anyone who is still confused:It should perhaps be noted that the Postscript name for the Unicode "Left pointing guillemet" is guillemotleft, which explains some of the confusion. There does not seem to be a Postscript name for "Left pointing guillemot" -thomas