emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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/)]
@ 2013-11-28  9:52 Rob Stewart
  2013-11-28 10:49 ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Rob Stewart @ 2013-11-28  9:52 UTC (permalink / raw)
  To: emacs-orgmode


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
 )

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-11-29 19:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-28  9:52 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/)] Rob Stewart
2013-11-28 10:49 ` Nicolas Goaziou
2013-11-28 11:38   ` Rob Stewart
2013-11-29 13:52     ` Rob Stewart
2013-11-29 14:22       ` Rob Stewart
2013-11-29 17:44         ` Nicolas Goaziou
2013-11-29 18:42           ` Rob Stewart
2013-11-29 19:33             ` Nicolas Goaziou

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