emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: New LaTeX exporter and source code blocks
Date: Sat, 05 May 2012 22:58:37 +0200	[thread overview]
Message-ID: <87lil6e45e.fsf@gmail.com> (raw)
In-Reply-To: <m1y5p69zg4.fsf@tsdye.com> (Thomas S. Dye's message of "Sat, 05 May 2012 09:53:47 -1000")

tsd@tsdye.com (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	other threads:[~2012-05-05 21:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-05 19:53 New LaTeX exporter and source code blocks Thomas S. Dye
2012-05-05 20:58 ` Nicolas Goaziou [this message]
2012-05-05 21:32   ` Thomas S. Dye
2012-05-05 21:37     ` Nicolas Goaziou
2012-05-05 22:55       ` Thomas S. Dye
2012-05-06  6:31         ` Nicolas Goaziou
2012-05-06 17:53           ` Thomas S. Dye
2012-05-06 18:17             ` Nicolas Goaziou

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87lil6e45e.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tsd@tsdye.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).