From mboxrd@z Thu Jan 1 00:00:00 1970 From: Austin Frank Subject: possible latex export bug Date: Thu, 02 Oct 2008 05:15:59 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0415195856==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KlKII-0003C0-07 for emacs-orgmode@gnu.org; Thu, 02 Oct 2008 05:16:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KlKIG-0003Bo-B8 for emacs-orgmode@gnu.org; Thu, 02 Oct 2008 05:16:21 -0400 Received: from [199.232.76.173] (port=57220 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlKIF-0003Bl-TG for emacs-orgmode@gnu.org; Thu, 02 Oct 2008 05:16:19 -0400 Received: from main.gmane.org ([80.91.229.2]:37498 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KlKIF-0004dq-GD for emacs-orgmode@gnu.org; Thu, 02 Oct 2008 05:16:19 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KlKIB-0006tA-Vn for emacs-orgmode@gnu.org; Thu, 02 Oct 2008 09:16:16 +0000 Received: from colossus.cvs.rochester.edu ([128.151.80.181]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Oct 2008 09:16:15 +0000 Received: from austin.frank by colossus.cvs.rochester.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Oct 2008 09:16:15 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0415195856== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable Hello! I'll start by confessing up front that I've been tinkering with different exporting functions these past few weeks, so it's possible that the bug I'm reporting here is of my own making. I can't track it down, so here I am, hat in hand, to ask a) is this reproducible? and, b) if not, any idea which functions I should look at to chase it down? If I have the following org file =2D-8<---------------cut here---------------start------------->8--- * this is a test #+begin_latex \mu #+end_latex =2D-8<---------------cut here---------------end--------------->8--- and run org-export-as-latex, I get the following output =2D-8<---------------cut here---------------start------------->8--- % normal preamble stuff % ... \begin{document} \maketitle \section*{this is a test} \mu \end{document} =2D-8<---------------cut here---------------end--------------->8--- That's the correct behavior. If I use this org file =2D-8<---------------cut here---------------start------------->8--- * this is a test #+begin_latex \begin{quote} \mu \end{quote} #+end_latex =2D-8<---------------cut here---------------end--------------->8--- and run org-export-as-latex, I get =2D-8<---------------cut here---------------start------------->8--- % normal preamble stuff % ... \begin{document} \maketitle \section*{this is a test} \begin{quote} \mu \end{quote} #+end_latex \end{document} =2D-8<---------------cut here---------------end--------------->8--- In the second example, the #+end_latex line is not removed during org-export-to-latex. Possibly related, possibly unrelated, I'm also seeing that file-local variables defined at the end of a buffer are being exported verbatim during org-export-as-latex. This only happens in cases where the #+end_latex is also erroneously exported. =2D-8<---------------cut here---------------start------------->8--- * this is a test #+begin_latex \begin{quote} \mu \end{quote} #+end_latex #+ Local Variables: #+ org-export-latex-append-header: " #+ \\usepackage{graphicx} #+ " #+ End: =2D-8<---------------cut here---------------end--------------->8--- =20=20 gives =2D-8<---------------cut here---------------start------------->8--- % normal preamble stuff % ... \begin{document} \maketitle \begin{quote} \mu \end{quote} #+end_latex #+ Local Variables: #+ org-export-latex-append-header: " #+ \\usepackage{graphicx} #+ " #+ End: \end{document} =2D-8<---------------cut here---------------end--------------->8--- This doesn't just apply to the quote environment, I've reproduced it with other #begin/end_latex blocks that contain latex environments. That is to say =2D-8<---------------cut here---------------start------------->8--- * this is a test #+begin_latex \begin{verbatim} \mu \end{verbatim} #+end_latex =2D-8<---------------cut here---------------end--------------->8--- has the same problem of including the #+end_latex tag after export. This is with Org-mode version 6.08-pre01, GNU Emacs 23.0.60.1 (powerpc-apple-darwin8.11.0, *Step 9.0) of 2008-10-01. Can anyone reproduce this? Any debugging tips? Thanks, /au =2D-=20 Austin Frank http://aufrank.net GPG Public Key (D7398C2F): http://aufrank.net/personal.asc --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAkjkkVAACgkQlHMl2/XbR4HjWgCfewf17A5CPgJlULGybo2zCBwY kTYAoLEbGzeJx0KSVL0Kv8/2QcXLjSLH =hWqH -----END PGP SIGNATURE----- --=-=-=-- --===============0415195856== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0415195856==--