From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: How to signal end of a section or subsection Date: Thu, 23 Jan 2014 23:20:06 +0100 Message-ID: <86vbxauyqx.fsf@somewhere.org> References: <87y5299tiy.fsf@ucl.ac.uk> <87vbxbvk9x.fsf@gmail.com> <86a9enr929.fsf@somewhere.org> <87mwinvetw.fsf@gmail.com> <86ob333yeo.fsf@somewhere.org> <87a9enueze.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello Nicolas, Nicolas Goaziou wrote: > "Sebastien Vauban" writes: > >> Is the simpler solution valid on all types of block environments? >> >> To enumerate them (extensively, AFAICT): >> >> - structureenv >> - alertblock >> - exampleblock >> - definition >> - example >> - proof >> - beamercolorbox >> - verse >> - quotation >> - quote > > The "simpler solution" is just a consequence of special blocks handling > in LaTeX export back-ends. So, it will work for any special block. OK, thanks. > You can rule out verse, example and quote, which have their own type > in Org syntax. Verse and quote give the same results in both the complex and the simple ways. However, it does not for example. The following: --8<---------------cut here---------------start------------->8--- ** =example= environment - Behaves like the theorem environment, except that the theorem style =example= is used. - A side-effect of using this theorem style is that the contents is put in an =exampleblock= instead of a =block=. *** Example :B_example: :PROPERTIES: :BEAMER_env: example :END: Contents of example *** End of example :B_ignoreheading: :PROPERTIES: :BEAMER_env: ignoreheading :END: ** =example= environment - Simpler solution: #+begin_example Contents of example #+end_example --8<---------------cut here---------------end--------------->8--- gives: --8<---------------cut here---------------start------------->8--- \begin{frame}[fragile,label=sec-6-8]{\texttt{example} environment} \begin{itemize} \item Behaves like the theorem environment, except that the theorem style \texttt{example} is used. \item A side-effect of using this theorem style is that the contents is put in an \texttt{exampleblock} instead of a \texttt{block}. \end{itemize} \begin{example}[Example] Contents of example \end{example} \end{frame} \begin{frame}[fragile,label=sec-6-9]{\texttt{example} environment} \begin{itemize} \item Simpler solution: \end{itemize} \begin{verbatim} Contents of example \end{verbatim} \end{frame} --8<---------------cut here---------------end--------------->8--- Hence, a verbatim environment in LaTeX instead of an example. Do I miss something? Or do I have something wrong somewhere? Best regards, Seb -- Sebastien Vauban