emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Error when running org-babel-tangle


From: Richard Stanton
Subject: Re: [O] Error when running org-babel-tangle
Date: Thu, 5 Mar 2015 20:13:12 -0800

Aha! Thanks, Chuck.

> On Mar 5, 2015, at 5:08 PM, Charles C. Berry <address@hidden> wrote:
> 
> On Thu, 5 Mar 2015, Richard Stanton wrote:
> 
>> I’m experimenting with tangling files in org-mode, and have found
>> that certain files cause org-babel-tangle to ie with an error
>> (Org-mode version 8.3beta (release_8.3beta-884-g9ed426). Here’s a
>> small example:
> 
>> 
>> ————————————
>> 
>> * Sample code
>> 
>> #+BEGIN_SRC makefile :tangle makefile-main
>> circle:
>>      @gfortran -c circle.f90
>> 
>> main: circle
>>      @gfortran -c main.f90
>>      @gfortran circle.o main.o -o main
>> 
>> clean:
>>      @rm -f *.o main
>> #+END_SRC
>> 
>> Run this block to tangle out the new files.
>> 
>> #+BEGIN_SRC emacs-lisp
>> (org-babel-tangle)
>> #+END_SRC
>> 
>> #+RESULTS:
>> | makefile-main |
>> 
>> In this block I use this header:
>> #+BEGIN_EXAMPLE
>> #+BEGIN_SRC sh :results raw
>> #+END_EXAMPLE
>> 
> 
> [rest deleted]
> 
> ===
> 
> #+BEGIN_EXAMPLE
>  ,#+BEGIN_SRC sh :results raw #+END_EXAMPLE
> 
> will work. The comma is stripped on export.
> 
> If you use org-edit-src (C-c C-c) on your original example block, it
> will format it in that way automagically.
> 
> HTH,
> 
> Chuck




reply via email to

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