From: tsd@tsdye.com (Thomas S. Dye)
To: emacs-orgmode Mode <emacs-orgmode@gnu.org>
Cc: Myles English <mylesenglish@gmail.com>
Subject: Re: worg latex example "11 Styling the Frontmatter"
Date: Thu, 08 Mar 2012 09:01:01 -1000 [thread overview]
Message-ID: <m1sjhij4sy.fsf@tsdye.com> (raw)
In-Reply-To: <87k42v82iz.fsf@gmail.com> (Myles English's message of "Thu, 08 Mar 2012 16:45:40 +0000")
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 <mylesenglish@gmail.com> 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?
>
> > 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
>
>
--
Thomas S. Dye
http://www.tsdye.com
next prev parent reply other threads:[~2012-03-08 19:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2012-03-09 1:29 ` Myles English
2012-03-09 4:20 ` Thomas S. Dye
2012-03-09 11:04 ` Myles English
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=m1sjhij4sy.fsf@tsdye.com \
--to=tsd@tsdye.com \
--cc=emacs-orgmode@gnu.org \
--cc=mylesenglish@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).