emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: jack song <goodhei8@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: funny problem for table of contents when publishing org-latex with #+INCLUDE other.org
Date: Sat, 12 Nov 2011 15:28:25 -0500	[thread overview]
Message-ID: <CAAPtUcVAfR4F8pkYW=cfkhVcCpmS+cdZcz3OnHC0jzHEoqpr3w@mail.gmail.com> (raw)

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

Hi, All

I got a funny (or strange) problem when I published to latex with #+INCLUDE
other org file

problem: if there is no any * first line in the index.org file before the
#+INCLUDE otherfile.org, there will be no table of contents. Other wise it
works.

For example, there are one index file and other files (all are org files),
like index.org and chapter1.org

a, No table of contents in latex file, IF index.org is below,
"""
#+LaTeX_CLASS: book

#+TITLE: some title

#+BEGIN_abstract
This note describes measurement of something.
#+end_abstract

#+LATEX: \tableofcontents
#+LATEX: \listoftables
#+LATEX: \listoffigures

#+INCLUDE: chapter1.org
"""

b, there is a table of content, IF I simply change "#+INCLUDE: chapter1.org"
to
* first line , anything
#+INCLUDE: chapter1.org

Please help to correct if it is a bug. Thanks a lot.

PS, I have org 7.7 on windows 7.
in .emacs file, there is
(defun org-export-latex-no-toc (depth)
    (when depth
      (format "%% Org-mode is exporting headings to %s levels.\n"
              depth)))
  (setq org-export-latex-format-toc-function 'org-export-latex-no-toc)

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

             reply	other threads:[~2011-11-12 20:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-12 20:28 jack song [this message]
2012-01-13 15:36 ` funny problem for table of contents when publishing org-latex with #+INCLUDE other.org tg

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='CAAPtUcVAfR4F8pkYW=cfkhVcCpmS+cdZcz3OnHC0jzHEoqpr3w@mail.gmail.com' \
    --to=goodhei8@gmail.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).