From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: Re: latex export and beamer columns Date: Thu, 26 Nov 2009 16:54:06 -0300 Message-ID: <4b0edcf3.0905c00a.1be5.1e1f@mx.google.com> References: <876394m49f.wl%ucecesf@ucl.ac.uk> <87y6lu833v.fsf@dasa3.iem.pw.edu.pl> <87k4xdb0ts.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDkQE-0008N9-5C for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 14:54:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDkQ9-0008A8-1O for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 14:54:33 -0500 Received: from [199.232.76.173] (port=51187 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDkQ8-00089w-RI for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 14:54:28 -0500 Received: from mail-yx0-f175.google.com ([209.85.210.175]:59857) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDkQ8-0005ep-Gj for emacs-orgmode@gnu.org; Thu, 26 Nov 2009 14:54:28 -0500 Received: by yxe5 with SMTP id 5so988126yxe.24 for ; Thu, 26 Nov 2009 11:54:28 -0800 (PST) In-Reply-To: <87k4xdb0ts.wl%ucecesf@ucl.ac.uk> 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: e.fraga@ucl.ac.uk Cc: =?UTF-8?B?xYF1a2Fzeg==?= Stelmach , emacs-orgmode@gnu.org Maybe a simpler notation could be used instead direct latex since we are talking about official support for beamer in org-mode. For instance ,---- | * Teste beamer: This is a Section | *** Teste beamer: This is a Subsection | ***** This is the frame title | Frame content | | ***** This is the frame title of another frame | #+\{0.4 | - This is an item | - This is an item too | #+\\0.6 | - Another item | - Another one | - One more item | \note[item]{lala} | #+\} `---- The "#+\{" comment indicates the beginning of a columns environment and the "0.4" the width (0.4\textwidth) of the first column. The "#+\\0.6" comment creates another column and the "#+\}" comment closes the columns environment. I'm not saying this is the best way, but IMHO this is better than using #+latex commands directly, since beamer support in org-mode will be official. Also, this will export nicely to standard latex and HTML. Using "#+latex:" could cause problems when exporting to standard latex and using headings as suggested in other E-mails here could me exporting to anything different from beamer unnatural. If this syntax or something similar is used, I'd like to request only two thinks in addition: 1) the items in the different columns should be exported to different itemize environments when exporting to standard latex (similarly to HTML). If they are exported to the same environment it can be confusing. 2) It would be nice if the width could be optional. If there are columns whose width is not specified then org could sum the widths that were specified and distribute the remaining among the columns whose width is not specified. For instance, in a frame with 3 columns I could specify the width of one column as 0.4 and leave the others unspecified. Org should then choose a width of 0.3 for the remaining two columns. - Darlan Cavalcante At Thu, 26 Nov 2009 18:25:19 +0000, Eric S Fraga wrote: > > At Thu, 26 Nov 2009 02:52:04 +0100, > Ɓukasz Stelmach wrote: > > > > I've just tried something simplier and IMHO more flexible (widths). > > > > --8<---------------cut here---------------start------------->8--- > > * The Title > > ** The Section > > *** The Frame > > #+latex: \begin{columns}[t] > > #+latex: \column{.5\textwidth} > > - My point > > - Your point > > #+latex: \column{.5\textwidth} > > Conclusion > > #+latex: \end{columns} > > --8<---------------cut here---------------end--------------->8--- > > > > Unfortunately the the plain list is not recognized and converted to > > itemize. When I remove the "#+latex: \begin|end" stuff then the list > > looks as it should. > > > (note that my response has probably been superseded by Carsten's > recent message regarding beamer support in org mode but this still > might be of some interest) > > > I am not sure what to say! IMO, it's not simpler although I guess it > could be more flexible. However, you say it doesn't work? > > One alternative based on your approach is to define begin and end > commands for the columns environment that avoid using "\begin" and > "\end" which org interprets. Maybe something like this: > > --8<---------------cut here---------------start------------->8--- > #+LaTeX_CLASS: beamer > > #+latex: \newcommand{\BC}{\begin{columns}[t]} > #+latex: \newcommand{\EC}{\end{columns}} > > * The main section > *** An interesting slide > \BC > #+latex: \column{0.4\textwidth} > - an item with enough text to show the width of the column > - another item > #+latex: \column{0.6\textwidth} > - an item with enough text to show the width of the column > - and yet another > \EC > --8<---------------cut here---------------end--------------->8--- > > which appears to work just fine. Whether it's simpler or not depends > on what you want. I like using org headlines to be able to hide > individual columns and to be able to move them around easily. > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode