From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Formatting issue when exporting with LaTeX/Beamer Date: Fri, 07 Mar 2014 17:06:42 -0500 Message-ID: <87txb98xzh.fsf@alphaville.bos.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WM2v4-00055p-17 for emacs-orgmode@gnu.org; Fri, 07 Mar 2014 17:07:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WM2uy-0002Ow-0B for emacs-orgmode@gnu.org; Fri, 07 Mar 2014 17:07:05 -0500 Received: from plane.gmane.org ([80.91.229.3]:48004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WM2ux-0002Or-QM for emacs-orgmode@gnu.org; Fri, 07 Mar 2014 17:06:59 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WM2us-0001Ti-QW for emacs-orgmode@gnu.org; Fri, 07 Mar 2014 23:06:54 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2014 23:06:54 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2014 23:06:54 +0100 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: emacs-orgmode@gnu.org "Elasady, Summer" writes: > Hello- > > Thanks in advance for any help/advice. I am new to LaTeX and Beamer > and did not find any documentation on this specific issue. > The first piece of advice I have is: don't post screenshots - they are useless. I can't cut and paste from the screenshot to try to reproduce the problem, so I would have to type the damn thing in (or as in this case, hunt around in the links you provided to find something that I can work with). Why are you making life difficult for the people whose help you are seeking? Just include your org file directly in the email - see below for an example. > I am trying to export to Beamer to create presentations out of my > OrgMode documents and I’m running into a strange formatting issue. The > headers are being printed out before any of the content. So my export > will show all the headers in order, followed by all the content in > order, instead of exporting header/content, header2/content2, etc. > What version of emacs/org are you using? I can't reproduce this ordering problem, although I do have troubles producing the code listings. Versions: Org-mode version 8.2.5h (release_8.2.5h-682-g080f1d @ /home/nick/elisp/org-mode/lisp/) GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.4) of 2014-02-28 Here is the org file I used: --8<---------------cut here---------------start------------->8--- #+MACRO: BEAMERMODE presentation +MACRO: BEAMERTHEME Antibes +MACRO: #BEAMERCOLORTHEME lily +MACRO: BEAMERSUBJECT RMRF +MACRO: #BEAMERINSTITUTE Miskatonic University, Astrology Dept. +TITLE: #Presentation with Org-Mode and Beamer +AUTHOR: Someone * My presentation ** Overview 1. Introduction 2. Main part 3. Questions ** Some interesting stuff *** an important point - subpoint a - subpoint b * Another slide ** Graphics *** a picture #+begin_src ditaa :file blue.png +---------+ | cBLU | | +----+ | |cPNK| +----+----+ #+end_src #+RESULTS: [[file:blue.png]] *** another picture #+LaTeX:\includegraphics{emacs.png} * And another ** More interesting stuff *** some C++ code #+begin_LaTeX \begin{lstlisting}[language=c++] for (int i = 1; i != 10; ++i) std::cout << i << ": hello, world!" << std::endl; \end{lstlisting} #+end_LaTeX *** and some Python #+begin_LaTeX \begin{lstlisting}[language=python] for i in range(1,10): print i, "hello, world!" \end{lstlisting} #+end_LaTeX --8<---------------cut here---------------end--------------->8--- If I get rid of the code listings, everything works as expected for me. With the code listings I get this error - no idea why: ,---- | (/usr/share/texlive/texmf-dist/tex/latex/listings/lstlang1.sty) | (/usr/share/texlive/texmf-dist/tex/latex/listings/lstlang1.sty) | (/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty) Overfull | \hbox (40.77774pt too wide) in paragraph at lines 82--82 | [][]\T1/cmss/m/n/10.95 stlistinglocklocknd some | Python-stlist-ingstlist-in-gloc k-lock-eamer@frameslideAnd | | Package Listings Warning: Text dropped after begin of listing on input | line 82. | | | ) | ! Emergency stop. | <*> .../nick/src/org/latex/beamer-presentation.tex | | ! ==> Fatal error occurred, no output PDF file produced! `---- Nick