From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Alexander Subject: Org-babel and LaTeX letter Date: Mon, 5 Sep 2011 15:01:32 +0300 Message-ID: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0Xsd-0008OZ-EI for emacs-orgmode@gnu.org; Mon, 05 Sep 2011 08:02:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0XsZ-00024e-HV for emacs-orgmode@gnu.org; Mon, 05 Sep 2011 08:02:23 -0400 Received: from harley2.gnservers.com ([72.52.242.153]:41207 helo=harley.gnservers.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0XsZ-00024W-5s for emacs-orgmode@gnu.org; Mon, 05 Sep 2011 08:02:19 -0400 Received: from [86.124.222.237] (helo=[192.168.1.100]) by harley.gnservers.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1R0Xrs-0004Qs-Jm for emacs-orgmode@gnu.org; Mon, 05 Sep 2011 08:01:38 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello orgmode and latex users! I'm trying to use a latex to write a letter, and I'm using an org babel block to hold the original source. I've whittled down my latex code to one word and it still isn't working for me. I've included the code block and the pdflatex output buffer. I notice that the default style is 'article'. Is there some way to remove the article style and use a letter instead? The funny thing is, if I run pdflatex from the command line, it works fine. Though it doesn't have as many lines of diagnostic output. I think the wrapping code for babel execution of latex code is the issue. I'd be happy to install more tex files. I use MacPorts to maintain my system; perhaps I am missing a tex package that is needed? Any pointers would be helpful. -Ben ORG file ***** trial of latex #+begin_src latex :file letter.pdf Hello #+end_src BUFFER *Org PDF LaTeX Output* shows the following (first and last few lines only) This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011/MacPorts 2011_1) restricted \write18 enabled. entering extended mode (/var/folders/pC/pCO-RjsoEHGUcvQ-+Z3F2U+++TI/-Tmp-/babel-58334TCg/ latex-58334gM m.tex LaTeX2e <2009/09/24> Babel and hyphenation patterns for english, dumylang, nohyphenation, lo aded. (/opt/local/share/texmf-texlive-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class .....lines of output omitted...... ! LaTeX Error: File `wrapfig.sty' not found. Type X to quit or to proceed, or enter new name. (Default extension: sty) Enter file name: ! Emergency stop. l.13 \usepackage {soul}^^M ! ==> Fatal error occurred, no output PDF file produced! Transcript written on /var/folders/pC/pCO-RjsoEHGUcvQ-+Z3F2U+++TI/- Tmp-/babel-5 8334TCg//latex-58334gMm.log. Xander$ port list installed and texlive* texlive-basic @23152 tex/texlive-basic texlive-basic @23152 tex/texlive-basic texlive-bin @2011 tex/texlive-bin texlive-bin @2011 tex/texlive-bin texlive-common @2011 tex/texlive-common texlive-common @2011 tex/texlive-common texlive-documentation-base @23160 tex/texlive- documentation-base texlive-documentation-base @23160 tex/texlive- documentation-base texlive-generic-recommended @23088 tex/texlive-generic- recommended texlive-generic-recommended @23088 tex/texlive-generic- recommended texlive-latex @23089 tex/texlive-latex texlive-latex @23089 tex/texlive-latex texlive-latex-recommended @23089 tex/texlive-latex- recommended texlive-latex3 @19447 tex/texlive-latex3 texlive-xetex @23080 tex/texlive-xetex