emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* worg latex example "11 Styling the Frontmatter"
@ 2012-03-08 16:29 Myles English
  2012-03-08 16:45 ` Myles English
  0 siblings, 1 reply; 8+ messages in thread
From: Myles English @ 2012-03-08 16:29 UTC (permalink / raw)
  To: emacs-orgmode Mode

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

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


[-- Attachment #2: testAbs.org --]
[-- Type: text/plain, Size: 622 bytes --]

#+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

#+RESULTS:
: org-export-latex-no-toc

(add-to-list 'load-path
	     "~/.emacs.d/plugins/org-mode/lisp")
(require 'org-install)

[-- Attachment #3: title.tex --]
[-- Type: text/plain, Size: 67 bytes --]

\renewcommand\maketitle{\begin{titlepage}%
FOO
\end{titlepage}%
}


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-03-09 11:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-08 16:29 worg latex example "11 Styling the Frontmatter" Myles English
2012-03-08 16:45 ` Myles English
2012-03-08 18:39   ` Nick Dokos
2012-03-09  1:32     ` Myles English
2012-03-08 19:01   ` Thomas S. Dye
2012-03-09  1:29     ` Myles English
2012-03-09  4:20       ` Thomas S. Dye
2012-03-09 11:04         ` Myles English

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).