From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Latex error "too deeply nested" only for #+INCLUDE statements Date: Mon, 15 Oct 2012 17:24:04 -0400 Message-ID: <4192.1350336244@alphaville.americas.hpqcorp.net> References: <10695.1350325486@alphaville> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNs8u-0003Hc-Gl for emacs-orgmode@gnu.org; Mon, 15 Oct 2012 17:24:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNs8s-0000Ed-Vr for emacs-orgmode@gnu.org; Mon, 15 Oct 2012 17:24:08 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:31475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNs8s-0000EG-PH for emacs-orgmode@gnu.org; Mon, 15 Oct 2012 17:24:06 -0400 In-Reply-To: Message from Percival du Chat Gris of "Mon\, 15 Oct 2012 15\:04\:06 EDT." 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Percival du Chat Gris Cc: emacs-orgmode@gnu.org Percival du Chat Gris wrote: >=20 > ! LaTeX Error: Too deeply nested. >=20 > And that repeats over and over again. >=20 OK - Seb probably got it right then: if you have too many (too many =3D 5) nested itemize environments, latex complains as above. > =C2=A0 >=20 > What is the exact output? >=20 > Unfortunately there isn't any output. I meant the error output as you showed above.=20 >=20 > What version of org/emacs? >=20 > Org-mode:=C2=A0 Version=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : 7.9.2= -1 > Emacs: Version=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : 23.3.a-3 >=20 OK. > Are you using the new exporter or the old exporter? >=20 > How would I be able to tell? C-c C-e p invokes the old exporter. To use the new exporter, see for example this thread: http://thread.gmane.org/gmane.emacs.orgmode/60236/focus=3D61566 > If the error is produced by latex, export to latex and look at the .t= ex > file. =C2=A0If the error is produced by org, it > would help to have a backtrace. >=20 > Well ... I presume the error is produced by Latex, because I can get the = same thing if I run LaTex Export.tex, but if I replace all the > #+INCLUDE references with the contents of the files themselves, in the .o= rg file, it works, so I think it's an .org problem, in > producing the .tex files, not (necessarily) a LaTex problem. >=20 I would strip down the contents of the files to just the headers: it's the structure that matters here, not the details. Then I would ask the exporter to export to latex and compare the tex files by opening them in two side-by= -side windows in emacs: the differences should be telling. > I think (not being an expert) it seems that, with the stub-based file (Ex= port.tex), the single * in each of the #+INCLUDEed files > becomes a subsection, as opposed to an actual section (as it did in Expor= t-1.tex), since a section of the diff file between the .tex > files produced looks something like: >=20 > diff Export.tex Export-1.tex > [...] > 1144a1132,1133 > > \subsection{Dynamic Interactions} > > \label{sec-7-5} > 1146,1147d1134 > < \item Dynamic Interactions\\ > < \label{sec-1-1-4-5-1-6-5-1-10-5-1-4-5-1-4-5-1-5}% The differences *are* telling: In one case, you have a subsection at level 2, in the other an item at level (almost) infinity :-) > 1154c1141 > < \label{sec-1-1-4-5-1-6-5-1-10-5-1-4-5-1-4-5-1-5-1}% > --- > > \label{sec-7-5-1}% > 1157c1144 > < \label{sec-1-1-4-5-1-6-5-1-10-5-1-4-5-1-4-5-1-5-2}% > --- > > \label{sec-7-5-2}% > 1160c1147 > < \label{sec-1-1-4-5-1-6-5-1-10-5-1-4-5-1-4-5-1-5-3}% > --- > > \label{sec-7-5-3}% > 1163c1150 > < \label{sec-1-1-4-5-1-6-5-1-10-5-1-4-5-1-4-5-1-5-4}% > --- > > \label{sec-7-5-4}% > 1166c1153 > [...] >=20 > I attach a tarball with a simple example where the new exporter with >=20=20=20=20 > Org-mode version 7.9.2 (release_7.9.2-432-g545166 @ /home/nick/elisp/= org-mode/lisp/) > GNU Emacs 24.2.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.4) o= f 2012-09-21 >=20 > Thank you, I will try it, and see if that will clear up the issue. > =C2=A0 >=20 > does the right thing. BTW, I think the old exporter mishandles my simple example (and slightly modified variants) in various ways. I would recommend that you try the new exporter at this point. Nick