emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: Re: Exporting org to LaTeX to PDF: headings do not convert to sections
Date: Fri, 22 May 2009 09:17:56 +0100	[thread overview]
Message-ID: <87ws89blfv.fsf@eeepc.chemeng.ucl.ac.uk> (raw)
In-Reply-To: 14B4D147-56B5-42F4-A2D0-05AABE808E54@gmail.com

Carsten Dominik <carsten.dominik@gmail.com> writes:
> On May 21, 2009, at 10:14 PM, Alan E. Davis wrote:
>> I don't understand why  I  do not see "section" or "subsection", and
>> the sections often come out with bare stars.  Is this also because
>> the number of levels has been exceeded?
>
> No, this must be a different bug, which I cannot reproduce.  Example
> file???

Carsten,

I have been having this problem the past two days but had avoided
posting until I determined it wasn't my fault.  For the following org
file:

#----------------------------------------------- cut here
#+TITLE:     t.org
#+AUTHOR:    Eric S Fraga
#+EMAIL:     e.fraga@ucl.ac.uk
#+DATE:      2009-05-11 Mon
#+DESCRIPTION: 
#+KEYWORDS: 
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 

* Testing embedded aligned equations

  \begin{eqnarray}
    x &=& a_i + b_j + c_{k} \\
    y &=& \sqrt{x}
  \end{eqnarray}

  \begin{eqnarray*}
    x &=& a_i + b_j + c_{k} \\
    y &=& \sqrt{x}
  \end{eqnarray*}
*** This is a subsection
with not very much text
*** but another
which might have had more text in an ideal world.
#----------------------------------------------- cut here

exporting to latex works fine if you export the whole file.  If,
however, you select a region, such as the region starting from the 
         "*** This is a subsection"
line to the end of the file, the latex export doesn't convert the
leading *s to sections, putting the *s directly into the latex:

,----
| ...
| \setcounter{tocdepth}{3}
| \tableofcontents
| \vspace*{1cm}
| \textbf{*} This is a subsection
| with not very much text
| \textbf{*} but another
| which might have had more text in an ideal world.
| 
| \end{document}
`----

hope this helps.

  reply	other threads:[~2009-05-22  8:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-21 13:50 Exporting org to LaTeX to PDF: headings do not convert to sections Alan E. Davis
2009-05-21 14:27 ` Carsten Dominik
2009-05-21 14:52   ` Carsten Dominik
2009-05-21 20:14     ` Alan E. Davis
2009-05-21 22:44       ` Carsten Dominik
2009-05-22  8:17         ` Eric S Fraga [this message]
2009-05-23  6:26           ` Carsten Dominik
2009-05-23 22:39             ` Alan E. Davis
2009-05-22  1:38       ` Mark Elston

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=87ws89blfv.fsf@eeepc.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /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).