From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Ragged Left in Beamer Export? Date: Thu, 15 May 2014 12:21:07 +0200 Message-ID: <87r43vcpgs.fsf@hornfels.zedat.fu-berlin.de> References: <8738gbe9ad.fsf@hornfels.zedat.fu-berlin.de> <87d2ffpexg.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wksn8-0003as-V5 for emacs-orgmode@gnu.org; Thu, 15 May 2014 06:21:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wksn2-0004IW-6k for emacs-orgmode@gnu.org; Thu, 15 May 2014 06:21:34 -0400 Received: from plane.gmane.org ([80.91.229.3]:39269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wksn1-0004Hn-W5 for emacs-orgmode@gnu.org; Thu, 15 May 2014 06:21:28 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wksmt-0003nK-Bz for emacs-orgmode@gnu.org; Thu, 15 May 2014 12:21:19 +0200 Received: from hornfels.zedat.fu-berlin.de ([160.45.11.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 May 2014 12:21:19 +0200 Received: from loris.bennett by hornfels.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 May 2014 12:21:19 +0200 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 Eric S Fraga writes: > On Thursday, 15 May 2014 at 10:27, Loris Bennett wrote: >> Hi, >> >> I am trying the following: >> >> >> #+BEGIN_QUOTE >> "Getting ragged-left text in a Beamer presentation exported from Org does not >> seem as easy as I expected." >> #+END_QUOTE >> >> #+BEGIN_LaTeX >> \begin{raggedleft} >> From "Loris' Adventures in Orgland" >> \end{raggedleft} >> #+END_LaTeX >> >> >> This seems to get exported to the latex file OK, but the text after the >> quote is justified left in the final Beamer PDF. >> >> What am I doing wrong? > > The ragged left only takes place when a paragraph ends so simply put > "\par" before the end: > > #+begin_src org > ,#+BEGIN_LaTeX > \begin{raggedleft} > From "Loris' Adventures in Orgland" > \par\end{raggedleft} > ,#+END_LaTeX > #+end_src > > Your code might look better this way, by the way: > > #+begin_src org > ,#+latex: \begin{raggedleft} > From "Loris' Adventures in Orgland" > ,#+latex: \par\end{raddedleft} > #+end_src > > as you can then use org syntax on the text elements. > > HTH, > eric Thanks, Eric, that did the trick. The hint regarding #+LaTeX: is also useful - I had forgotten about that possibility and your point about being able to use Org syntax on the text is a good one. I tried searching for some relevant documentation on "#+LaTeX:", but failed to find anything other that the Easy Template (Google's "verbatim" search seems to use a different definition of "verbatim" to mine). Maybe it should be mentioned in the manual somewhere in the chapter "Embedded LaTeX". Cheers, Loris -- This signature is currently under construction.