Hi Orgers,

I have been writing a large document in Org mode for pdf export with
latex. I use babel latex blocks for things like equations, and I have a
separate file as my appendix which I include in my primary org file.

Today when I introduced a babel latex block in the appendix, I noticed
that while exporting to latex/pdf, org wants to add the headline with
the latex babel block from the appendix at the end of the master org
file. I would expect no such behaviour while export.

I can replicate this bug with the two attached minimal org files. Can
someone confirm this?

Thanks,

-- 
Suvayu

Open source is the future. It sets us free.
\appendix
# Needs \usepackage{appendix}
\appendixpage
\addappheadtotoc

* This is appendix A

  Definition of psedorapidity.

  #+begin_src latex
    \begin{equation}
    \label{eq:eta}
    \eta = -\ln\Bigg[\tan\Bigg(\frac{\theta}{2}\Bigg)\Bigg]
    \end{equation}
  #+end_src
#+TITLE:     Document title
#+AUTHOR:    Suvayu Ali
#+DATE:      \today
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:4 num:t toc:t ::t |:t ^:t -:t f:t *:t <:nil
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:nil pri:nil tags:nil
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport

#+BIND: org-confirm-babel-evaluate nil
# #+BIND: org-export-latex-title-command ""

#+LaTeX_CLASS: book
#+LaTeX_CLASS_OPTIONS: [12pt,letterpaper,oneside,colorlinks]
#+LaTeX_HEADER: \usepackage{amsmath}
#+LaTeX_HEADER: \usepackage{mathtools}
#+LaTeX_HEADER: \usepackage{appendix}
# #+LaTeX_HEADER: \maketitle

* Title of part 1

** Title of chapter 1
   Some text.

* Title of part 2

** Title of chapter 3
   The Standard Model gauge group is shown in \autoref{eq:symgrp}
   #+begin_src latex
     \begin{equation}
     \label{eq:symgrp}
     SU(3) \times SU(2) \times U(1)
     \end{equation}
   #+end_src


#+INCLUDE: appendix.org :minlevel 1

\backmatter
\newpage
\addcontentsline{toc}{chapter}{\bibname}

\bibliographystyle{plain}
\bibliography{master}


# Local Variables:
# org-export-allow-BIND: t
# End:

Reply via email to