emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Berthold Höllmann" <berthold.hoellmann@dnvgl.com>
To: emacs-orgmode@gnu.org
Subject: Bug: Problem with LaTeX export, footnotes in table headers, and longtabu [8.3.4 (8.3.4-31-gcb683e-elpa @ /home/berhol/.emacs.d/elpa/org-20160404/)]
Date: Tue, 12 Apr 2016 10:54:22 +0200	[thread overview]
Message-ID: <sepotvcim9.fsf@pc130799.gl.ad.germanlloyd.org> (raw)

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



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------

I am exporting a large table from org to pdf via LaTeX. The meaning of
some of the column headers are to be explained in footnotes. The table
spans more than one page, so continuation headers are generated using
longtabu. These continuation headers mangle with the footnote numbering
as can be seen in this example:

# -*- mode: org -*-
#+STARTUP: showall
#+LaTeX_CLASS_OPTIONS: [a5paper]
#+LATEX_HEADER: \usepackage[T1]{fontenc}
#+LATEX_HEADER: \usepackage[utf8x]{inputenc}
#+LATEX_HEADER: \usepackage{tabu}
#+TITLE: Multi page table test

* Multi page table

  #+ATTR_LATEX: :environment longtabu
  | *Typ[fn:test]* |
  |----------------|
  |              1 |
  |              2 |
  |              3 |
  |              4 |
  |              5 |
  |              6 |
  |    7[fn:test2] |
  |              8 |
  |              9 |
  |             10 |
  |----------------|

* Footnotes

[fn:test]
  Testing footnotes with multi page latex tables.

[fn:test2]
  Another Test

DNV GL SE, Registered Office Hamburg No. HRB 115442 • Chairman of the Supervisory Board: Remi Eriksen • Executive Board: Knut Ørbeck-Nilssen • Torsten Schramm • Björn-Olaf Borth •
The latest edition of the General Terms and Conditions of DNV GL SE is applicable.

**************************************************************************************
This e-mail and any attachments thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments. Unauthorized use, copying or further full or partial distribution of this e-mail or its contents is prohibited.
**************************************************************************************

[-- Attachment #2: org_ltxtab.tex --]
[-- Type: text/x-tex, Size: 1323 bytes --]

% Created 2016-04-12 Di 10:53
\documentclass[a5paper]{article}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{amssymb}
\usepackage{hyperref}
\usepackage{booktabs}
\tolerance=1000
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage{tabu}
\author{Berthold Höllmann}
\date{\today}
\title{Multi page table test}
\hypersetup{
 pdfauthor={Berthold Höllmann},
 pdftitle={Multi page table test},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 24.5.1 (Org mode 8.3.4)}, 
 pdflang={English}}
\begin{document}

\maketitle
\tableofcontents


\section{Multi page table}
\label{sec:orgheadline1}

\begin{longtabu}{r}
\textbf{Typ\footnotemark}\\
\hline
\endfirsthead
\multicolumn{1}{l}{Continued from previous page} \\
\hline

\textbf{Typ\footnotemark} \\

\hline
\endhead
\hline\multicolumn{1}{r}{Continued on next page} \\
\endfoot
\endlastfoot
\hline
1\\
2\\
3\\
4\\
5\\
6\\
7\footnotemark\\
8\\
9\\
10\\
\hline
\end{longtabu}
\footnotetext[1]{Testing footnotes with multi page latex tables.}\footnotetext[2]{Another Test}
\end{document}

[-- Attachment #3: org_ltxtab.pdf --]
[-- Type: application/pdf, Size: 19054 bytes --]

[-- Attachment #4: Type: text/plain, Size: 8131 bytes --]


[fn:test] becomes [1] in the first, and [2] in the continuation headers,
but [2] links to the content of [fn:test2], which becomes a reference
without target.
 

Emacs  : GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
 of 2015-04-13 on pc130799.gl.ad.germanlloyd.org
Package: Org-mode version 8.3.4 (8.3.4-31-gcb683e-elpa @ /home/berhol/.emacs.d/elpa/org-20160404/)

current state:
==============
(setq
 org-src-lang-modes '(("ipython" . python) ("ocaml" . tuareg) ("elisp" . emacs-lisp)
                      ("ditaa" . artist) ("asymptote" . asy) ("dot" . fundamental)
                      ("sqlite" . sql) ("calc" . fundamental) ("C" . c) ("cpp" . c++)
                      ("C++" . c++) ("screen" . shell-script) ("shell" . sh) ("bash" . sh))
 org-journal-mode-hook '(#[nil "\301\b\302\303\304$\207"
                           [org-journal-encrypt-on org-add-hook org-journal-encryption-hook nil
                            t]
                           5]
                         (lambda nil
                          (org-add-hook org-journal-encrypt-on
                           (quote org-journal-encryption-hook) nil t)
                          )
                         )
 org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe
                      org-babel-header-arg-expand)
 outline-minor-mode-hook '(outshine-hook-function)
 org-latex-classes '(("dnvglartcl"
                      "\\documentclass[paper=a4,%\ntwoside,%\n10pt,%\nheadings=small,footinclude=false,%\nheadinclude,%\nheadlines,%\nBCOR12mm,%\nDIV14,%\ncolhead]{dnvglartcl}\n[EXTRA]"
                      ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                      ("\\paragraph{%s}" . "\\paragraph*{%s}")
                      ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
                     ("article" "\\documentclass[11pt]{article}"
                      ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                      ("\\paragraph{%s}" . "\\paragraph*{%s}")
                      ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
                     ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}")
                      ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
                     ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}")
                      ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
                     )
 org-latex-default-packages-alist '(("" "fixltx2e" nil) ("" "graphicx" t) ("" "longtable" nil)
                                    ("" "float" nil) ("" "wrapfig" nil) ("" "rotating" nil)
                                    ("normalem" "ulem" t) ("" "amsmath" t) ("" "textcomp" t)
                                    ("" "marvosym" t) ("" "wasysym" t) ("" "amssymb" t)
                                    ("" "hyperref" nil) ("" "booktabs" t) "\\tolerance=1000")
 org-pre-cycle-hook '(org-fstree-show-entry-maybe)
 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-log-done t
 org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function
 org-confirm-shell-link-function 'yes-or-no-p
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-link-translation-function 'toc-org-unhrefify
 org-latex-pdf-process '("latexmk -C -latex=xelatex -bibtex-cond -f %f"
                         "latexmk -latex=xelatex -bibtex-cond -f %f")
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(flyspell-mode toc-org-enable org-autolist-mode
                 #[nil "\300\301\302\303\304$\207"
                   [org-add-hook change-major-mode-hook org-show-block-all append local] 5]
                 #[nil "\300\301\302\303\304$\207"
                   [org-add-hook change-major-mode-hook org-babel-show-result-all append local]
                   5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes
                 emoji-cheat-sheet-plus-display-mode org-journal-update-auto-mode-alist
                 org-bullets-mode whitespace-cleanup-mode)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-ctrl-c-ctrl-c-hook '(org-fstree-apply-maybe org-babel-hash-at-point
                          org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
                  org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-linkany/browse-function 'browse-url-firefox
 org-export-before-processing-hook '(org-impress-js-begin)
 org-babel-tangle-lang-exts '(("python" . "py") ("perl" . "pl") ("maxima" . "max")
                              ("lisp" . "lisp") ("latex" . "tex") ("java" . "java")
                              ("fortran" . "F90") ("awk" . "awk") ("asymptote" . "asy")
                              ("D" . "d") ("C++" . "cpp") ("emacs-lisp" . "el")
                              ("elisp" . "el"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 outline-mode-hook '(flyspell-mode)
 org-babel-after-execute-hook '(org-display-inline-images)
 org-latex-listings t
 org-html-format-headline-function 'org-html-format-headline-default-function
 org-babel-load-languages '((C . t) (R . t) (asymptote . t) (awk . t) (calc) (clojure)
                            (comint . t) (css . t) (ditaa . t) (dot . t) (emacs-lisp . t)
                            (fortran . t) (gnuplot . t) (haskell) (io) (java . t) (js . t)
                            (latex . t) (ledger) (lilypond) (lisp . t) (matlab . t)
                            (maxima . t) (mscgen) (ocaml) (octave . t) (org . t) (perl . t)
                            (picolisp) (plantuml) (python . t) (ref . t) (ruby) (sass) (scala)
                            (scheme) (screen) (sh . t) (shen) (sql . t) (sqlite . t))
 org-reveal-start-hook '(org-decrypt-entry)
 org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
 org-agenda-mode-hook '(desktop+--org-agenda-mode-hook)
 org-agenda-files '("~/note.org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-confirm-babel-evaluate nil
 )
-- 
Best regards
for DNV GL SE

Berthold Höllmann
-- 
Development Eng. - Structural Methods, Information Management Research & Development, Hamburg


E-mail berthold.hoellmann@dnvgl.com
Direct +49 40 36149 7374

www.dnvgl.com | www.linkedin.com/company/dnvgl

DNV GL

DNV and GL have merged to form DNV GL
We are now the world's largest ship and offshore classification
society, the leading technical advisor to the global oil and gas
industry, and a leading expert for the energy value chain including
renewables and energy efficiency. We've also taken a position as one
of the top three certification bodies in the world. Read more here:
www.dnvgl.com/merger.

             reply	other threads:[~2016-04-12  8:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-12  8:54 Berthold Höllmann [this message]
2016-04-14  8:03 ` Bug: Problem with LaTeX export, footnotes in table headers, and longtabu [8.3.4 (8.3.4-31-gcb683e-elpa @ /home/berhol/.emacs.d/elpa/org-20160404/)] Nicolas Goaziou
2016-04-14 14:02   ` Berthold Hoellmann
2016-04-16 10:11     ` Nicolas Goaziou
2016-04-17 15:42       ` Berthold Höllmann
2016-04-19 19:26         ` Nicolas Goaziou
2016-04-19 22:11           ` Berthold Höllmann
2016-04-20 21:40             ` 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=sepotvcim9.fsf@pc130799.gl.ad.germanlloyd.org \
    --to=berthold.hoellmann@dnvgl.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 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).