emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Org Babel and R issue with pdf latex export


From: Ben Ward
Subject: [Orgmode] Re: Org Babel and R issue with pdf latex export
Date: Mon, 28 Feb 2011 07:07:24 +0000

On Sun, 2011-02-27 at 21:35 -0800, Dan Davison wrote:
> Ben Ward <address@hidden> writes:
> 
> > Hi,
> >
> > I recently installed emacs, org-mode fresh on a new install of Arch
> > Linux. Before I had it working on Ubuntu.
> >
> > I've installed everything as before and used the same .emacs file I had,
> > but if I use org to write out some R script and export to pdf via latex,
> > then I get an empty pdf document, with only the title and Contents
> > heading. However if I export to anything else such as html it works, and
> > shows me code and results.
> 
> Hi Ben,
> 
> Are you sure this problem concerns babel/R? What happens when you export
> an Org document to pdf without any babel stuff?
> 
> Can you provide an example Org file that you are having trouble
> exporting to pdf? The problem is probably in your local configuration,
> so if no-one can jump to the solution then start from a minimal working
> config and try to find the part of your .emacs which is causing the
> problem.
> 
> Dan
> 
Hi, I've tried exporting an org file that has no code in it to PDF and
it works without any trouble. 

The file I'm trying to export is:
#+TITLE: Test
#+AUTHOR: Ben J. Ward
#+LATEX_CLASS: article
#+BABEL: :session *R* :results output
\pagebreak

Test:

#+begin_src R :exports both
x<-c(1,2,3,4,5)
y<-c(5,10,15,20)
x
y
xy<-(x*y)
xy
#+end_src

I can include my .emacs although it's lengthy.

I uninstalled all of my emacs stuff, and installed it from the vanilla
downloads on their respective sites, and I'm still getting the same
result. I'm considering removing all my tex stuff and installing the
vanilla texlive too.

Thanks,
Ben W.

> 
> > I've tried even installing a version of org
> > mode from source, using the build system my distro has, so as it's made
> > and installed to exactly the right place, but I still don't have any
> > luck. The texlive version I'm using is from my distro's package manager.
> > Using C-c C-c to evaluate on the fly works. I had an issue getting org
> > and babel to work with R on Windows 7 as well, but it was because
> > certain tex packages were missing and I recieved a message when I tried
> > to export, but nothing comes up here. 
> >
> > Would the recent change:
> > Org-babel is now inside org, remove (require 'org-babel-init) 
> >   and alike from your .emacs.
> >   Look at http://orgmode.org/Changes.html#ob-configuration-changes 
> >   for overview of the settings.
> > Be causing the entire issue?
> >
> > The .tex file I get out is thus:
> > % Created 2011-02-28 Mon 03:47
> > \documentclass[11pt]{article}
> > \usepackage[utf8]{inputenc}
> > \usepackage[T1]{fontenc}
> > \usepackage{fixltx2e}
> > \usepackage{graphicx}
> > \usepackage{longtable}
> > \usepackage{float}
> > \usepackage{wrapfig}
> > \usepackage{soul}
> > \usepackage{textcomp}
> > \usepackage{marvosym}
> > \usepackage{wasysym}
> > \usepackage{latexsym}
> > \usepackage{amssymb}
> > \usepackage{hyperref}
> > \tolerance=1000
> > \providecommand{\alert}[1]{\textbf{#1}}
> > \begin{document}
> >
> >
> >
> > \title{Test}
> > \author{Ben J. Ward}
> > \date{28 February 2011}
> > \maketitle
> >
> > \setcounter{tocdepth}{3}
> > \tableofcontents
> > \vspace*{1cm}
> >
> > \end{document}
> >
> > Thanks,
> > Ben W.
> > (Apologies if this has been sent twice, first time an error occured)
> >
> >
> > _______________________________________________
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]