From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Heinrich Subject: ox-latex: Export ignores org-latex-classes from 4th level on Date: Sun, 06 Nov 2016 19:40:28 +0100 Message-ID: <1478457628.3641.4.camel@gladbachcity.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-WbKghCU1jaS5Uf0RCW+Y" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3SQ6-0008Ll-Rz for emacs-orgmode@gnu.org; Sun, 06 Nov 2016 13:43:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3SQ2-0008DO-Uj for emacs-orgmode@gnu.org; Sun, 06 Nov 2016 13:43:54 -0500 Received: from gallois.livando.com ([31.170.109.33]:46770) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3SQ2-0008Ax-LL for emacs-orgmode@gnu.org; Sun, 06 Nov 2016 13:43:50 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --=-WbKghCU1jaS5Uf0RCW+Y Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0This 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? --=-WbKghCU1jaS5Uf0RCW+Y Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIcBAABCgAGBQJYH3kcAAoJEIvOFdNRb8w82qoQAJ4FIQ1F3nRqknWTMF1HepPj hfxtL/cGo09a5nuAEY7WFCtghzBg6jEao8zU9rWe4/v53fE9MOvKyJLESjQLQh6y 3OgnlHFx8cS5Ph7GsyRKCWKcFstVktrjOcbgXxTDttJDBpIcEYRWKAc4dwYtERcz ZnihDfD9XiEGFcOtYdCugbqXV+atpXPQKbpvXu7ACryHkOg8WMqp+bOp7oOAFonw +25mhtVdmKZN+m5hhHJCR6FyH24ed1WnQ3c2HkybfViG3bgMTwkimkuTrNYgSfF+ m/uZcDvk9O8MYTprr4Bar665W/Mbz0bpqIuO2h8VQs7WZ75CxRxr0ytT4kX8gktn 5toakTusOcqjQdBPwOhM2IyW/JkvtCX9MvRjatRHNXXbwnBUn86tTqeHrTfbW3IQ /usoDCmOifWoGoufet2lwyjutwqITwmo/xAJFlkt/QYpjh4ePLWxsi7Ng9n0FPao tnoWc8oOXqnmrgS7qw0ugBTIorYfQJ0qCmIdU5Y6BBCA3dmmR0tcz7jn5qhyCpp4 GcKe4ZcvMg946O5xGHoxZaw6x4LxZ8Ud9a/ir8UgNJD9KIHO89lVM/iEdqaKq3yx dBoki/+uDhd0wYA1jVYqzwSZt+c4v92cMkh/B2Gtb9QAobIxho7WIF6O89ZIiBCq j5DbEsjXDy5smsSjfKBi =wtv7 -----END PGP SIGNATURE----- --=-WbKghCU1jaS5Uf0RCW+Y--