From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: worg latex example "11 Styling the Frontmatter" Date: Thu, 08 Mar 2012 16:45:40 +0000 Message-ID: <87k42v82iz.fsf@gmail.com> References: <87obs7839r.fsf@ed.ac.uk> Reply-To: emacs-orgmode Mode Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5gPg-0002NF-Kv for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 11:42:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5gPI-0005sP-Ou for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 11:42:00 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:61128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5gPI-0005ry-Fq for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 11:41:36 -0500 Received: by wgbdr1 with SMTP id dr1so486698wgb.30 for ; Thu, 08 Mar 2012 08:41:34 -0800 (PST) In-Reply-To: <87obs7839r.fsf@ed.ac.uk> (Myles English's message of "Thu, 08 Mar 2012 16:29:36 +0000") 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: Myles English Cc: emacs-orgmode Mode >> On Thu, 08 Mar 2012 16:29:36 +0000, Myles English said: > Hi, I am trying to get a custom title page and abstract before the > TOC in a pdf. > Worg has an example on this page: > http://orgmode.org/worg/org-tutorials/org-latex-export.html > at the section titled "11 Styling the Frontmatter" However, the > example doesn't work for me as expected. > To reproduce: > + save the attached files (testAbs.org, title.tex) in the same > directory + open testAbs.org and do "C-c e d" to export to pdf > I would expect the Abstract and text to be shown in the final pdf > but it is absent. > If I put a character between the lines #+LATEX_HEADER > and #+BEGIN_abstract then the abstract title and text are shown as > expected. > The above is using release_7.8.03-566-gf8efc63. Am I doing > something wrong? > Thanks, > Myles So the two files are: ,--------------------------- testAbs.org ------------------------------ | #+LATEX_HEADER: \input{/home/myles/tmp/bugs/title.tex} | #+BEGIN_abstract | Here is my abstract, it is a fine abstract. | #+END_abstract | #+LATEX: \tableofcontents | #+LATEX: \listoftables | #+LATEX: \listoffigures | | * Foo | foo | | * Bar | bar | | #+BEGIN_SRC emacs-lisp :exports none | (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) | #+END_SRC `------------------------------------------------------------------------ ,------------------------------title.tex-------- | | \renewcommand\maketitle{\begin{titlepage}% | FOO | \end{titlepage}% } `----------------------------------------------- Myles