emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Hsiu-Khuern Tang <hsiu-khuern.tang@hp.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: LaTeX export gives extra lines between table of contents and first section
Date: Fri, 10 Oct 2008 23:13:18 +0200	[thread overview]
Message-ID: <278A534D-0D8D-4179-9F80-FCFCE6C9BDA7@uva.nl> (raw)
In-Reply-To: <20081003010416.GY17766@hplhtang1>

Hi Hsiu,

looks like there is a bug in the LaTeX exporter when
the very first line of the file is already a headline.
I do not right now see an easy way to fix this, and Bastien
does not seem to have time.  So for the time being,
just leave the first line of a file empty - that should
help.

- Carsten

On Oct 3, 2008, at 3:04 AM, Hsiu-Khuern Tang wrote:

> I'm new to Org-Mode, and I'm getting to like it a lot!
>
> I am running Org 6.07b.  I have this simple Org file:
>
> ----------------------------------------
> * top level
>
> ** second level
>  test
> ----------------------------------------
>
> If I run M-x org-export-region-as-latex, I get this output:
>
> ----------------------------------------
> % Created 2008-10-02 Thu 17:58
> \documentclass[11pt,a4paper]{article}
> \usepackage[utf8]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage{hyperref}
>
>
> \title{* top level}
> \author{Tang Hsiu Khuern}
> \date{02 October 2008}
>
> \begin{document}
>
> \maketitle
>
> \setcounter{tocdepth}{3}
> \tableofcontents
>
>
> ** second level
>  test
> \section{second level}
>
>  test
>
> \end{document}
> ----------------------------------------
>
> As you can see, there are extra lines between \tableofcontents and  
> \section,
> which I think shouldn't be there.  If I select the whole file as the  
> region and
> run M-x org-export-region-as-latex, the extra lines get _duplicated_:
>
> ----------------------------------------
> ...
> \tableofcontents
>
>
> ** second level
>  test
>
> ** second level
>  test
> \section{second level}
> ...
> ----------------------------------------
>
> -- 
> Best,
> Hsiu-Khuern.
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  parent reply	other threads:[~2008-10-10 21:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-03  1:04 LaTeX export gives extra lines between table of contents and first section Hsiu-Khuern Tang
2008-10-03 18:13 ` Hsiu-Khuern Tang
2008-10-10 21:13 ` Carsten Dominik [this message]
2008-10-13 22:26   ` Hsiu-Khuern Tang

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=278A534D-0D8D-4179-9F80-FCFCE6C9BDA7@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=hsiu-khuern.tang@hp.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).