From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: LaTeX export \listoffigures Date: Tue, 28 Aug 2012 01:43:07 -0400 Message-ID: <2692.1346132587@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6EZz-0002IE-Av for emacs-orgmode@gnu.org; Tue, 28 Aug 2012 01:43:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6EZy-0004QJ-Af for emacs-orgmode@gnu.org; Tue, 28 Aug 2012 01:43:11 -0400 Received: from g6t0186.atlanta.hp.com ([15.193.32.63]:18607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6EZy-0004QE-5n for emacs-orgmode@gnu.org; Tue, 28 Aug 2012 01:43:10 -0400 In-Reply-To: Message from Henri-Paul Indiogine of "Mon, 27 Aug 2012 21:04:32 PDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Henri-Paul Indiogine Cc: emacs-orgmode@gnu.org Henri-Paul Indiogine 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