From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: worg latex example "11 Styling the Frontmatter" Date: Fri, 09 Mar 2012 01:29:53 +0000 Message-ID: <87zkbqo92m.fsf@gmail.com> References: <87obs7839r.fsf@ed.ac.uk> <87k42v82iz.fsf@gmail.com> Reply-To: Myles English , 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]:55680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5oae-0007Kg-82 for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 20:25:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5oab-0006EF-PX for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 20:25:51 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:57700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5oab-0006Dq-Fi for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 20:25:49 -0500 Received: by wgbdr1 with SMTP id dr1so932278wgb.30 for ; Thu, 08 Mar 2012 17:25:47 -0800 (PST) In-Reply-To: (Thomas S. Dye's message of "Thu, 08 Mar 2012 09:01:01 -1000") 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: "Thomas S. Dye" Cc: emacs-orgmode Mode >> On Thu, 08 Mar 2012 09:01:01 -1000, Thomas S Dye said: > Aloha Myles, Your example works for me with emacs -q. I had to > change the \input{} command to \input{title}, since I'm not working > at /home/myles. I saved the tex file to title.tex, put it in the > same directory as the org file, evaluated the source block > (with :results silent), and exported. I got a 2 page pdf with FOO > on the first page and a second page with all the rest. > I'm not sure what is going wrong at your end, but suspect the > \input{} command might not be picking up your .tex file. Do you see > something in the .log file produced by LaTeX? > All the best, Tom > Myles English writes: >>>> 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? Tom, Thanks very much for checking it. It does pick up the title.tex file and I don't get a log file but the testAbs.tex file (see below) shows that the abstract title is missing and the abstract text is entered as the \title{}. If I start emacs -q then execute this block, it seems to report that orgmode is a mixture of version 7.7 and 7.8. #+BEGIN_SRC emacs-lisp :exports none (add-to-list 'load-path "~/.emacs.d/plugins/org-mode/lisp") (require 'org-install) (org-version) #+END_SRC #+results: : Org-mode version 7.7 (release_7.8.03.566.gf8efc) Does that look normal? Exporting as before then gives the file below. Myles File testAbs.tex contains: % Created 2012-03-09 Fri 01:11 \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{latexsym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \input{title.tex} \providecommand{\alert}[1]{\textbf{#1}} \title{Here is my abstract, it is a fine abstract.} \author{} \date{\today} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs Org-mode version 7.7}} \begin{document} \maketitle % Org-mode is exporting headings to 3 levels. \tableofcontents \listoftables \listoffigures \section{Foo} \label{sec-1} foo \section{Bar} \label{sec-2} bar \section{src} \label{sec-3} \end{document}