From ripley at stats.ox.ac.uk  Mon Aug 22 08:42:21 2005
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon, 22 Aug 2005 07:42:21 +0100 (BST)
Subject: [Rd] bizarre signif stars in Sweave latex
In-Reply-To: <20050821235504.GB32730@stat.umn.edu>
References: <mailman.9.1124618400.6983.r-devel@r-project.org>
	<20050821235504.GB32730@stat.umn.edu>
Message-ID: <Pine.LNX.4.61.0508220737470.31614@gannet.stats>

What locale is this?

My guess is that this is a UTF-8 locale.  If so, you need to tell latex 
the input is in UTF-8, which you can do in the current LaTeX release
(you need 2003/12/01).  As I recall you do this by

\usepackage[utf8]{inputenc}


On Sun, 21 Aug 2005, Charles Geyer wrote:

> OK.  I give up.  I'll ask a stupid question.
> How do I get the $!#@*$ signif stars line printed by summaries
> to not look extremely bizarre in the latex produced by Sweave?
> For example, see p. 7 of
>
>    http://www.stat.umn.edu/geyer/aster/library/aster/doc/tutor.pdf
>
> I can see what the problem is.  R emits non-ascii characters (as it
> is supposed to do), Sweave puts them in the tex file, and latex can't
> handle them.  But I don't see the solution.
>
> Hmmmm.  Well I just discovered a kludge
>
> <<foo,include=FALSE,echo=FALSE>>=
> Sys.setlocale(category = "LC_ALL", locale = "C")
> @
>
> at the beginning of the Rnw file.  But is that TRT (the Right Thing)?
>
> -- 
> Charles Geyer
> Professor, School of Statistics
> University of Minnesota
> charlie at stat.umn.edu
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] bizarre signif stars in Sweave latex
Prof Brian Ripley