From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Org-mode version 6.31trans; Exporting src blocks to LaTeX produces .tex file that fails to compile Date: Fri, 2 Oct 2009 13:12:13 +0200 Message-ID: <264BEBB1-0D8E-4132-B0BE-BA496F8AF8E5@gmail.com> References: <86my4bf5q5.fsf@portan.ibr.cs.tu-bs.de> <86iqeyfba3.fsf@portan.ibr.cs.tu-bs.de> <86ocoq16j4.fsf@portan.ibr.cs.tu-bs.de> <4A6BE426-248D-409A-A84B-BD531A3D9566@gmail.com> <86k4ze13c8.fsf@portan.ibr.cs.tu-bs.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mtg3l-0001FV-TY for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 07:12:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mtg3h-0001Bp-BG for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 07:12:25 -0400 Received: from [199.232.76.173] (port=49715 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mtg3g-0001BK-DY for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 07:12:20 -0400 Received: from mx20.gnu.org ([199.232.41.8]:55416) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mtg3e-0003Y9-Rn for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 07:12:19 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mtg3d-0007X1-DL for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 07:12:17 -0400 Received: by ewy4 with SMTP id 4so895741ewy.31 for ; Fri, 02 Oct 2009 04:12:16 -0700 (PDT) In-Reply-To: <86k4ze13c8.fsf@portan.ibr.cs.tu-bs.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Chris Gray Cc: emacs-orgmode@gnu.org I have applied the patch, thanks. - Carsten On Oct 2, 2009, at 12:45 PM, Chris Gray wrote: > Carsten Dominik wrote: > >> Hi Chris, > >> the error was on my side - I did not remove the backend-specific >> markers after selecting the content. This is now again done >> correctly, so your patch should not be needed. But maybe you >> want it in anyway, with an empty configuration variable? > > Famous last words, but I don't see how it can hurt. :) > > Cheers, > Chris > >> - Carsten > >> On Oct 2, 2009, at 11:36 AM, Chris Gray wrote: > >>> Hi, > >>> The problem was with my org-special-blocks contrib package. The >>> attached patch fixes it. Sorry for the noise. > >>> Cheers, >>> Chris > >>> commit 4d327b5f1e80ea0e493aa70d09c53042216a1390 >>> Author: Chris Gray >>> Date: Fri Oct 2 11:31:21 2009 +0200 > >>> Added a variable to ignore some blocks. > >>> Modified contrib/lisp/org-special-blocks.el >>> diff --git a/contrib/lisp/org-special-blocks.el b/contrib/lisp/org- >>> special-blocks.el >>> index b8ce4d5..af50b30 100644 >>> --- a/contrib/lisp/org-special-blocks.el >>>>>> b/contrib/lisp/org-special-blocks.el >>> @@ -40,17 +40,23 @@ >>> ;; user to add this class to his or her stylesheet if this div is to >>> ;; mean anything. > >>>> (defvar org-special-blocks-ignore-regexp "^\\(LaTeX\\|HTML\\)$" >>>> "A regexp indicating the names of blocks that should be ignored >>>> by org-special-blocks. These blocks will presumably be >>>> interpreted by other mechanisms.") > >>> (defun org-special-blocks-make-special-cookies () >>> "Adds special cookies when #+begin_foo and #+end_foo tokens are >>> seen. This is run after a few special cases are taken care of." >>> (when (or htmlp latexp) >>> (goto-char (point-min)) >>> (while (re-search-forward "^#\\+\\(begin\\|end\\)_\\(.*\\)$" nil >>> t) >>> - (replace-match >>> - (if (equal (downcase (match-string 1)) "begin") >>> - (concat "ORG-" (match-string 2) "-START") >>> - (concat "ORG-" (match-string 2) "-END")) >>> - t t)))) >>>> (unless (string-match-p org-special-blocks-ignore-regexp >>> (match-string 2)) >>>> (replace-match >>>> (if (equal (downcase (match-string 1)) "begin") >>>> (concat "ORG-" (match-string 2) "-START") >>>> (concat "ORG-" (match-string 2) "-END")) >>>> t t))))) > >>> (add-hook 'org-export-preprocess-after-blockquote-hook >>> 'org-special-blocks-make-special-cookies) > > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode