Skip to content
Back to formatted view

Raw Message

Message-ID: <x2wvkm34qv.fsf@blueberry.kubism.ku.dk>
Date: 2000-05-22T16:54:16Z
From: Peter Dalgaard
Subject: backslash
In-Reply-To: Helgi Tomasson's message of "Mon, 22 May 2000 16:56:43 +0000"

Helgi Tomasson <helgito at hi.is> writes:

> Hi R-people
> 
> I am trying to have R write latex-code.
> 
> "\begin{tabular}"
> 
> and
> 
> "\end{tabular}
> 
> do not produce similar results.  I would like to something like
> 
> write("\begin{tabular} ,file=. . .)
> .
> .
> .
> write("\end{tabular},file=. . .)

Hmmm. Not too clear what your problem is but if something is eating
your backslashes, chances are that you just need to double them, as in

> cat("\\help\n")
\help
>

In some rare cases you need to redouble them, but this is not one of
them, I think....

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._