emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Henri-Paul Indiogine <hindiogine@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: LaTeX export \listoffigures
Date: Tue, 28 Aug 2012 01:43:07 -0400	[thread overview]
Message-ID: <2692.1346132587@alphaville> (raw)
In-Reply-To: Message from Henri-Paul Indiogine <hindiogine@gmail.com> of "Mon, 27 Aug 2012 21:04:32 PDT." <CAG_r7O4Kh5997uL8sFssd6oNXJChSRopqv8c1ZWG5UXW=5ptJw@mail.gmail.com>

Henri-Paul Indiogine <hindiogine@gmail.com> wrote:

> Greetings!
> 
> I am using orgmode with export to LaTeX to write my dissertation.   My
> thanks to all codes and contributors.  Without org-mode it would take
> me even more time.
> 
> I am wondering how to have the LaTeX command \listoffigures
> automatically added by the export function.
> 
> I have the following from the top of the org file:
> 
> #+TAGS: noexport(n) chp(c) sec(s) subsec(b) temp(t) app(a)
> #+LaTeX_CLASS: book
> #+LaTeX_header: \usepackage[margin=2.5cm]{geometry}
> #+LaTeX_header: \usepackage{appendix}
> #+LANGUAGE: en
> #+DESCRIPTION: Doctoral dissertation at Texas A&M University
> #+TODO: VOID(v) STRT(s) COMP(c) REVD(r) DONE(d)
> #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t
> #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:nil pri:nil tags:nil
> #+EXPORT_SELECT_TAGS: export
> #+EXPORT_EXCLUDE_TAGS: noexport
> 
> So, I know how to add packages in the preamble.  However,
> \listoffigures does not go in the preamble but soon after
> \begin{document} and \tableofcontents
> 
> It seems that the "book" LaTeX class automatically adds
> \tableofcontents.  How can I tweak that to add \listoffigures and
> maybe \listoftables ?
> 

No, it's the exporter itself that adds the \tableofcontents - or not:
with

 #+OPTIONS: toc:nil 

\tableofcontents will not be generated.

In any case, in the same way that you can add something to the preamble
with #+LaTeX_header, you can add something to the document with
#+LATEX. The trick is to add it first thing so that it goes right after
the \tableofcontents:

--8<---------------cut here---------------start------------->8---
#+LATEX: \listoffigures

* foo
foo "a b c" bar
--8<---------------cut here---------------end--------------->8---

should work.

Nick

  reply	other threads:[~2012-08-28  5:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-28  4:04 LaTeX export \listoffigures Henri-Paul Indiogine
2012-08-28  5:43 ` Nick Dokos [this message]
2012-08-28  6:53   ` Henri-Paul Indiogine

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=2692.1346132587@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=hindiogine@gmail.com \
    /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).