From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: porting guide from old to new beamer export? Date: Tue, 1 Sep 2015 09:06:53 +0200 Message-ID: <20150901070653.GP1373@chitra.no-ip.org> References: <87h9ng752c.wl-MarkoSchuetz@web.de> <20150831000359.GF1373@chitra.no-ip.org> <20150831205036.GN1373@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWffs-0001um-O1 for emacs-orgmode@gnu.org; Tue, 01 Sep 2015 03:08:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWffn-0000Wt-Ow for emacs-orgmode@gnu.org; Tue, 01 Sep 2015 03:08:08 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:33517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWffn-0000R3-Hz for emacs-orgmode@gnu.org; Tue, 01 Sep 2015 03:08:03 -0400 Received: by wicmc4 with SMTP id mc4so21957649wic.0 for ; Tue, 01 Sep 2015 00:06:56 -0700 (PDT) Received: from chitra.no-ip.org (5072840E.static.ziggozakelijk.nl. [80.114.132.14]) by smtp.gmail.com with ESMTPSA id mc18sm1163488wic.23.2015.09.01.00.06.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Sep 2015 00:06:55 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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 On Tue, Sep 01, 2015 at 12:19:32AM +0000, Marko Schütz-Schmuck wrote: > Suvayu Ali gmail.com> writes: > > > > > On Mon, Aug 31, 2015 at 05:23:52PM +0000, Marko Schütz-Schmuck wrote: > > > > > > Thanks for the link. I had used all of the documentation that are referenced > > > on that page. > > > > > > I have uploaded a typical file with slides to http://pastebin.com/L2ss0hXG > > > and http://pastebin.com/D61eSkDq. > > > > > > When I publish this to PDF with the new exporter the LaTeX file that is > > > generated does not use any frames http://pastebin.com/8jN6XeuE > > > > I think you are doing one of two things wrong. Either your > > org-latex-classes is incorrectly setup, or you are simply exporting to > > latex instead of beamer (C-c C-e l b). E.g. I get the following as the > > first frame: > > Thanks, that helps a lot! > > I did not have an option to export to beamer. I wasn't aware that I had to > require ox-beamer explicitly. Okay good. > Now I notice that the new exporter makes frame titles like this > > \begin{frame}[label=sec-8]{proving \hoareTriple{V}\{\(\textmath{merge}\)\}\{P\}} > > where the old one generated this > > \begin{frame} > \frametitle{proving \hoareTriple{V}{\(\textmath{merge}\)}{P}} > \label{sec-8} > > The new exporter escaped some { and } that should not be escaped. The new exporter tries to preserve special characters whenever it doesn't recognise a latex snippet. To ensure they are not escaped as special characters, you should use export snippets. Try: @@latex:\hoareTriple{V}{@@\(\textmath{merge}\)@@latex:}{P}@@ See the help string for org-export-snippet-translation-alist. Hope this helps, -- Suvayu Open source is the future. It sets us free.