Re: [Rd] vignette typesetting issue

From: Dirk Eddelbuettel <edd_at_debian.org>
Date: Tue, 01 Mar 2011 17:36:47 -0600

On 2 March 2011 at 12:10, robin hankin wrote:
| Hi
|
| I am preparing a vignette, and I am finding that LaTeX ties (that is,
| the tilde symbol, "~", used to tell LaTeX not to make a newline
| in the output), are appearing as actual tildes. This is not desired behaviour
| for me. Thus the PDF includes things like this:
|
|
| ". . . taken directly from~Oakley (1999)....".
|
| [this typeset as "taken directly from~\cite{oakley1999}..."].
|
| I do not want the tilde to appear in the PDF file.
| I do not want to remove the tilde symbols because then latex would
| be free to make a line break between "from" and "Oakley", which
| is poor form.
|
| The issue does not arise on my Mac, and I expect that it is down
| to some latex setting or style file.
|
| Does anyone recognize this problem?
|
| Can anyone advise?

Yes. It's on Debian / Ubuntu, correct? I have the same issue, and word is that it should get fixed upstream at some point. It only bites when you call via texi2dvi though, ie when Sweaving. So for Rcpp, and directly in the inst/doc/Makefile, we do the following test for my username -- in which case we use pdflatex and no ugly tilde symbols creep into whitespace -- or else use tools::texi2dvi() :

ifneq (,$(findstring edd,$(whoami)))

	pdflatex Rcpp-modules.tex
	pdflatex Rcpp-modules.tex
else
	$(RSCRIPT) -e "tools::texi2dvi( 'Rcpp-modules.tex', pdf = TRUE, clean = TRUE )"
endif

Hth, Dirk

-- 
Dirk Eddelbuettel | edd@debian.org | http://dirk.eddelbuettel.com

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 01 Mar 2011 - 23:42:37 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Mar 2011 - 04:50:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive