emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Roland Donat <roland.donat@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [orgmode 7.7] - Latex export problem with footnote, macro and code block evaluation
Date: Wed, 5 Oct 2011 14:15:26 +0200	[thread overview]
Message-ID: <CAJEMt_raqgL_MnDWwz1k0WtGwNtC-ozLFPL95Fnv8RK-NQeRzQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2293 bytes --]

Hello everyone,

I am experience a very strange problem so that any help would be

I precise that I use org-mode 7.7 on Linux/Debian.

I tried to perform latex export of the following org file :

=== cut here begin ===
# -*- coding: utf-8 -*-
#+TITLE: Title
#+AUTHOR: Roland

#+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:{} f:t TeX:t author:t

#+LaTeX_CLASS: article
#+LaTeX_CLASS_OPTIONS: [a4paper,twoside,10pt]

#+LATEX_HEADER: \usepackage{booktabs}

#+MACRO: TBL src_emacs-lisp[:var v=$1[$2,$3]]{v}

#+TBLNAME: test-macro
| 1 |

#+TBLNAME: Test-latex
| A | B |
| 1 | 3 |
| 2 | 4 |

* The footnote
A footnote [fn:a: youhou!]

* The macro
The value (0,0) of table test-macro is {{{TBL(test-macro,0,0)}}}.

* The code block

#+begin_src latex :noweb yes

#+srcname: booktabs-2
#+begin_src emacs-lisp :var table='((:head) hline (:body))
(flet ((to-tab (tab)
                (mapcar (lambda (lis)
                          (if (listp lis)
                              (mapcar (lambda (el)
                                        (if (stringp el)
                                          (format "%S" el))) lis)
                            lis)) tab)
                (list :lend " \\\\" :sep " & " :hline "\\hline"))))
    (cons "table"
          ;; only use \midrule if it looks like there are column headers
          (if (equal 'hline (second table))
              (concat (to-tab (list (first table)))
                      (to-tab (cddr table)))
            (to-tab table))))))

=== cut here end ===

Unfortunately, I get the error message : org-export-latex-preprocess: Wrong
type argument: integer-or-marker-p, nil

But when I comment the content of one of the 3 headers, the export is done
just fine. The combination of a footnote, a macro call and a code block
evaluation seems to be not compatible. Sounds weird, doesn't it?

Anybody see what is happening?

Thank you in advance for your help!


[-- Attachment #2: Type: text/html, Size: 2685 bytes --]

             reply	other threads:[~2011-10-05 12:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-05 12:15 Roland Donat [this message]
2011-10-05 13:26 ` [orgmode 7.7] - Latex export problem with footnote, macro and code block evaluation Roland
2011-10-05 14:46   ` Nicolas Goaziou
2011-10-05 19:48     ` Roland Donat
2011-10-05 19:53       ` 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:

  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=CAJEMt_raqgL_MnDWwz1k0WtGwNtC-ozLFPL95Fnv8RK-NQeRzQ@mail.gmail.com \
    --to=roland.donat@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).