* ox-latex: Export ignores org-latex-classes from 4th level on
@ 2016-11-06 18:40 Christian Heinrich
2016-11-06 20:24 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Christian Heinrich @ 2016-11-06 18:40 UTC (permalink / raw)
To: emacs-orgmode
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ox-latex: Export ignores org-latex-classes from 4th level on
2016-11-06 18:40 ox-latex: Export ignores org-latex-classes from 4th level on Christian Heinrich
@ 2016-11-06 20:24 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2016-11-06 20:24 UTC (permalink / raw)
To: Christian Heinrich; +Cc: emacs-orgmode
Hello,
Christian Heinrich <christian@gladbachcity.de> writes:
> 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".
See `org-export-headline-levels'.
> PS: I couldn't find any news about the renaming (?) of org-export-
> latex-classes to org-latex-classes.
This probably happened with Org 8.0 release.
> There is still quite a bit of documentation out there, such as
> http://orgmode.org/tmp/worg/org-tutorials/org-latex-export.html that
> refers to the former but doesn't work. Is this intended?
Some documentation is outdated on Worg. You can help, if you want to.
See <http://orgmode.org/worg/worg-git.html> for details.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-06 20:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-06 18:40 ox-latex: Export ignores org-latex-classes from 4th level on Christian Heinrich
2016-11-06 20:24 ` Nicolas Goaziou
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).