From: Christian Heinrich <christian@gladbachcity.de>
To: emacs-orgmode@gnu.org
Subject: ox-latex: Export ignores org-latex-classes from 4th level on
Date: Sun, 06 Nov 2016 19:40:28 +0100 [thread overview]
Message-ID: <1478457628.3641.4.camel@gladbachcity.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 1471 bytes --]
Hello,
the ox-latex file uses org-latex-classes to help, among other things,
with exporting headlines to the right commands, such as \section,
\subsection etc.
Unfortunately, not all headlines get exported correctly; the default
"article" class, as defined in ox-latex.el (see org-latex-classes
there), does for instance not use "\paragraph" or "\subparagraph".
Here is an example file:
#+LATEX_CLASS: article
* First
** Second
*** Third
**** Fourth
***** Fifth
****** Sixth
******* Seventh
This is the final text.
When I export, I get something like this:
[...]
\subsubsection{Third}
\label{sec:orgafa785d}
\begin{enumerate}
\item Fourth
[...]
However, it should use "\paragraph{Fourth}" instead, and not a list
with \item.
It seems there is something going on with the deep subtrees, starting
at line 1929 in ox-latex.el; (for the first 3 levels, line 1893 gets
called, too).
Can anyone see whats going on here? I'm currently on master. I tried
older versions, but this bug must have been there since 7.8 (I couldn't
compile many older versions any more or I couldn't export).
Thanks
Christian
PS: I couldn't find any news about the renaming (?) of org-export-
latex-classes to org-latex-classes. There is still quite a bit of
documentation out there, such as http://orgmode.org/tmp/worg/org-tutori
als/org-latex-export.html that refers to the former but doesn't work.
Is this intended?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next reply other threads:[~2016-11-06 18:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-06 18:40 Christian Heinrich [this message]
2016-11-06 20:24 ` ox-latex: Export ignores org-latex-classes from 4th level on Nicolas Goaziou
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=1478457628.3641.4.camel@gladbachcity.de \
--to=christian@gladbachcity.de \
--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).