emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Bug: LaTeX block above first heading ignored by latex exporter [8.2.


From: Rob Stewart
Subject: [O] Bug: LaTeX block above first heading ignored by latex exporter [8.2.3c (release_8.2.3c-308-gc811bb @ /home/rob/sw/org-mode/lisp/)]
Date: Thu, 28 Nov 2013 09:52:41 +0000

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 have a simple orgmode document that has a #+BEGIN_LATEX .. #+END_LATEX
block before the first heading "Introduction". When this heading is not
exported, i.e. there are no headings, then the LaTeX block is properly
exported. When this heading is exported, the LaTeX block is omitted from
the exported document.

DOCUMENT:
%%%%%%%%%%%%%%%%%%%%%%%%
#+LaTeX_CLASS: article

#+TITLE: My Title
#+AUTHOR: Joe Bloggs
#+OPTIONS: H:5

#+BEGIN_LATEX
\begin{abstract}
This is my abstract.
\end{abstract}
#+END_LATEX

#+TOC: headlines 2

* Introduction                                                     :export:

Hello.
%%%%%%%%%%%%%%%%%%%%%%%%

EXPECTED:
%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[11pt]{article}
\author{Joe Bloggs}
\date{\today}
\title{My Title}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={Emacs 24.3.1 (Org mode 8.2.3c)}}
\begin{document}

\maketitle
\tableofcontents

\begin{abstract}
This is my abstract.
\end{abstract}

\setcounter{tocdepth}{2}
\tableofcontents

\section{Introduction}
\label{sec-1}

Hello.
% Emacs 24.3.1 (Org mode 8.2.3c)
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%

ACTUAL:
%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[11pt]{article}
\author{Joe Bloggs}
\date{\today}
\title{My Title}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={Emacs 24.3.1 (Org mode 8.2.3c)}}
\begin{document}

\maketitle
\tableofcontents


\section{Introduction}
\label{sec-1}

Hello.
% Emacs 24.3.1 (Org mode 8.2.3c)
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%



Emacs  : GNU Emacs 24.3.1 (i686-redhat-linux-gnu, GTK+ Version 3.8.2)
 of 2013-08-14 on buildvm-06.phx2.fedoraproject.org
Package: Org-mode version 8.2.3c (release_8.2.3c-308-gc811bb @ 
/home/rob/sw/org-mode/lisp/)

current state:
==============
(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-html-format-inlinetask-function 'ignore
 org-export-with-drawers nil
 org-export-copy-to-kill-ring t
 org-export-date-timestamp-format "%Y-%m-%d"
 org-export-with-tags 'not-in-toc
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
                      org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
                  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-latex-after-blockquotes-hook 
'(org-special-blocks-convert-latex-special-cookies)
 org-html-format-headline-function 'ignore
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-latex-classes '(("phd" "\\documentclass{hwthesis}" ("\\chapter{%s}" . 
"\\chapter*{%s}")
                      ("\\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-format-drawer-function '(lambda (name contents) contents)
 org-export-preprocess-after-blockquote-hook 
'(org-special-blocks-make-special-cookies)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-mode-hook '((lambda nil (flyspell-mode 1))
                 #[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
                 (lambda nil (org-indent-mode t)))
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-from-is-user-regexp "\\<Rob Stewart\\>"
 org-html-format-drawer-function '(lambda (name contents) contents)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
                               org-beamer-auto-fragile-frames
                               org-beamer-place-default-actions-for-lists)
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-latex-link-with-unknown-path-format "\\texttt{??}"
 org-todo-keywords '((sequence "TODO" "IN-PROGRESS" "WAITING" "DONE"))
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-export-html-after-blockquotes-hook 
'(org-special-blocks-convert-html-special-cookies)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-tangle-lang-exts '(("lisp" . "lisp") ("emacs-lisp" . "el"))
 org-babel-load-languages '((emacs-lisp . t) (sh . t) (lisp . t) (R . t))
 org-latex-format-inlinetask-function 'ignore
 org-confirm-shell-link-function 'yes-or-no-p
 )



reply via email to

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