all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Chris Gray <chrismgray@gmail.com>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <264BEBB1-0D8E-4132-B0BE-BA496F8AF8E5@gmail.com> (raw)
In-Reply-To: <86k4ze13c8.fsf@portan.ibr.cs.tu-bs.de>

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 <chrismgray@gmail.com>
>>> 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

  reply	other threads:[~2009-10-02 11:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-01 16:18 Org-mode version 6.31trans; Exporting src blocks to LaTeX produces .tex file that fails to compile cgray
2009-10-01 19:49 ` Eric Schulte
2009-10-02  8:30   ` Chris Gray
2009-10-02  9:36     ` Chris Gray
2009-10-02 10:04       ` Carsten Dominik
2009-10-02 10:45         ` Chris Gray
2009-10-02 11:12           ` Carsten Dominik [this message]
2009-10-02 15:11     ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=264BEBB1-0D8E-4132-B0BE-BA496F8AF8E5@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=chrismgray@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.