emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] New LaTeX exporter and source code blocks


From: Nicolas Goaziou
Subject: Re: [O] New LaTeX exporter and source code blocks
Date: Sat, 05 May 2012 22:58:37 +0200

address@hidden (Thomas S. Dye) writes:

> The new LaTeX exporter doesn't properly handle source code blocks with
> :exports results.  The following snippet exports correctly with the old
> exporter. 
>
> ---- Org-mode source ----
> #+name: ACM-categories
> #+header: :var c=categories
> #+header: :results latex 
> #+header: :exports results
> #+BEGIN_SRC emacs-lisp
>   (defun category-record (r)
>     (format "\\category{%s}{%s}{%s}[%s]" 
>             (first r) (second r) (third r) (fourth r)))
>   (let ( (i (mapcar (lambda (row)
>             (category-record row))
>           (cdr (cdr c)))))
>      (mapconcat 'identity i "\n")
> )
> #+END_SRC
> #+RESULTS: ACM-categories
> #+BEGIN_LaTeX
> \category{H.4}{Information Systems Applications}{Miscellaneous}[]
> \category{D.2.8}{Software Engineering}{Metrics}[complexity measures, 
> performance measures]
> #+END_LaTeX
> -------------------------
>
> ---- LaTeX output ----
> \#+name: ACM-categories
> \#+header: :var c=categories
> \#+header: :results latex 
> \#+header: :exports results
> ----------------------

This is a known bug: affiliated keywords are left over if the block
disappears. It will be solved once org-element.el is merged into master
(see commit dec32064a72be7a20bbddcc1f8544a604619ad7b).

> Also, the new exporter seems to skip over #+BEGIN_LaTeX ... #+END_LaTeX
> blocks.

This is now fixed. Thank you.


Regards,

-- 
Nicolas Goaziou



reply via email to

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